我正在 ubuntu 上构建 ffmpeg。我可以构建 yasm-1.2.0,接下来我尝试构建 x264。 x264 至少需要 yasm-1.2.0,因此我尝试了以下命令来构建 x264。
./configure --prefix=<myprefix> --bindir=<mybindir> --extracflgs=<Include directory of yasm-1.2.0> --extra-ldflags=<libdirectory of yasm-1.2.0>
我收到以下错误:
No working C compiler found.
不确定我犯了什么错误。有人可以告诉我我该怎么办吗?
最佳答案
您滥用了 --extra-cflags 和 --extra-ldflags 选项,因此 C 编译器会给出错误(您可以在 config.log 文件中查看确切的错误)。这是传递给 GCC(C 编译器)的附加标志,与 YASM(汇编器)无关。使用 YASM 所需要做的就是将其放在 $PATH 目录之一中,即它应该使用简单的 yasm --version
从任何当前工作目录在 shell/console 中运行。
关于ffmpeg - 为 ubuntu 构建 ffmpeg 未找到可用的 C 编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21375067/