linux - 当我尝试安装 yuvmotionfps 时,无法识别的命令行选项 '-march'

标签 linux makefile

当我尝试安装 yuvmotionfps-1.6 ( http://jcornet.free.fr/linux/yuvmotionfps.html ) 时。 我在运行 make 时遇到以下错误,看起来 (gcc: error: unrecognized command line option '-march') 就是问题所在。

如何解决这个问题?

这是我的安装过程的输出(我截断了一些看似不必要的输出):

sudo ./configure

.....................
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating yuvmotionfps/Makefile
config.status: creating utils/Makefile
config.status: creating utils/altivec/Makefile
config.status: creating utils/mmxsse/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing mjpegtools-config.h commands
config.status: creating mjpegtools-config.h (prefix MJPEGTOOLS for config.h)
config.status: mjpegtools-config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: 
configure:  MJPEG tools 1.7.0 build configuration :
configure: 
configure:   - X86 Optimizations:
configure:     - MMX/3DNow!/SSE enabled      : true
configure:   - arch/cpu compiler flags       : Your  does not even support "i386" for '-march' and '-mcpu'.
configure:   - video4linux recording/playback: true
configure:   - software MJPEG playback       : true
configure:   - MPEG Z/Alpha                  : false
configure:   - Quicktime playback/recording  : false
configure:   - PNG input support             : true
configure:   - AVI MJPEG playback/recording  : true (always)
configure:   - libDV (digital video) support : false 
configure:   - Gtk+ support for glav         : true
configure: 

sudo sh autogen.sh

libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
utils/Makefile.am:14: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
utils/altivec/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
utils/mmxsse/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
yuvmotionfps/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')

sudo make

................
make[1]: Entering directory `/home/simon/Applications/yuvmotionfps-1.6'
Making all in utils
make[2]: Entering directory `/home/simon/Applications/yuvmotionfps-1.6/utils'
Making all in mmxsse
make[3]: Entering directory `/home/simon/Applications/yuvmotionfps-1.6/utils/mmxsse'
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../utils    Your  does not even support "i386" for '-march' and '-mcpu'. -g -O2 -pthread -Wall -Wunused -MT build_sub22_mests.lo -MD -MP -MF .deps/build_sub22_mests.Tpo -c -o build_sub22_mests.lo build_sub22_mests.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../utils Your does not even support i386 for -march and -mcpu. -g -O2 -pthread -Wall -Wunused -MT build_sub22_mests.lo -MD -MP -MF .deps/build_sub22_mests.Tpo -c build_sub22_mests.c  -fPIC -DPIC -o .libs/build_sub22_mests.o
gcc: error: Your: No such file or directory
gcc: error: does: No such file or directory
gcc: error: not: No such file or directory
gcc: error: even: No such file or directory
gcc: error: support: No such file or directory
gcc: error: i386: No such file or directory
gcc: error: for: No such file or directory
gcc: error: and: No such file or directory
gcc: error: unrecognized command line option '-march'
gcc: error: unrecognized command line option '-mcpu.'
make[3]: *** [build_sub22_mests.lo] Error 1
make[3]: Leaving directory `/home/simon/Applications/yuvmotionfps-1.6/utils/mmxsse'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/simon/Applications/yuvmotionfps-1.6/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/simon/Applications/yuvmotionfps-1.6'
make: *** [all] Error 2

sudo make install

Making install in utils
make[1]: Entering directory `/home/simon/Applications/yuvmotionfps-1.6/utils'
Making install in mmxsse
make[2]: Entering directory `/home/simon/Applications/yuvmotionfps-1.6/utils/mmxsse'
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../utils    Your  does not even support "i386" for '-march' and '-mcpu'. -g -O2 -pthread -Wall -Wunused -MT build_sub22_mests.lo -MD -MP -MF .deps/build_sub22_mests.Tpo -c -o build_sub22_mests.lo build_sub22_mests.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../utils Your does not even support i386 for -march and -mcpu. -g -O2 -pthread -Wall -Wunused -MT build_sub22_mests.lo -MD -MP -MF .deps/build_sub22_mests.Tpo -c build_sub22_mests.c  -fPIC -DPIC -o .libs/build_sub22_mests.o
gcc: error: Your: No such file or directory
gcc: error: does: No such file or directory
gcc: error: not: No such file or directory
gcc: error: even: No such file or directory
gcc: error: support: No such file or directory
gcc: error: i386: No such file or directory
gcc: error: for: No such file or directory
gcc: error: and: No such file or directory
gcc: error: unrecognized command line option '-march'
gcc: error: unrecognized command line option '-mcpu.'
make[2]: *** [build_sub22_mests.lo] Error 1
make[2]: Leaving directory `/home/simon/Applications/yuvmotionfps-1.6/utils/mmxsse'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/simon/Applications/yuvmotionfps-1.6/utils'
make: *** [install-recursive] Error 1

最佳答案

由于某种原因,运行 autogen.sh 时,以下错误消息似乎出现在 makefile 中:

CFLAGS='您甚至不支持“-march”和“-mcpu”的“i386”。 -g -O2 -pthread -Wall -Wunused'

我从所有 makefile 中删除了句子'Your does not support "i386"for '-march' and '-mcpu'.。这导致编译成功。

关于linux - 当我尝试安装 yuvmotionfps 时,无法识别的命令行选项 '-march',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26746761/

相关文章:

linux - 删除输出linux中的字母

linux - 什么是meta-open嵌入式meta-linaro?

c++ - .cpp 和 .c 文件的替换引用

android - LOCAL_SHARED_LIBRARIES 和 LOCAL_REQUIRED_MODULES 之间的区别?

linux - SO_PEERCRED 与 SCM_CREDENTIALS - 为什么两者都有?

linux - 阻止访问者访问 .xml 文件但允许 Flash 打开它们

Python 应用程序目录选择

c - 我的 makefile 有什么问题?

找不到 linux/modversions.h

c++ - 如何将字符串从 make 文件传递​​到 C++ 程序