我正在尝试编译和安装x264 H.264 / AVC编码器。
我已经安装了gcc
。但是当我运行以下命令时,我会收到“找不到可用的C编译器”错误:
./configure --enable-shared --enable-static
What can I do?
The config log said:
/bin/gcc conftest.c -Wall -I. -I$(SRCPATH) -falign-loops=16 -mdynamic-no-pic -o conftest
clang: error: unknown argument: '-falign-loops=16' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
gcc
命令来检查你的 gcc 是否可用,例如是否在你的路径中了吗? - Søren Debois/usr/bin/gcc --version
;很有可能是伪装成clang
。我得到的是:Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
。我倾向于使用GCC 4.8.2,但那是我自己构建的。 - Jonathan Leffler