Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为ubuntu构建ffmpeg未找到工作的C编译器_Ffmpeg_X264_Libx264 - Fatal编程技术网

为ubuntu构建ffmpeg未找到工作的C编译器

为ubuntu构建ffmpeg未找到工作的C编译器,ffmpeg,x264,libx264,Ffmpeg,X264,Libx264,我正在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

我正在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> 

不确定我犯了什么错误。有人能告诉我该怎么办吗?

您误用了--extra-cflags和--extra-ldflags选项,所以C编译器会给您错误信息(您可以查看config.log文件中的确切错误)。这是传递给GCC(C编译器)的附加标志,与YASM(汇编程序)无关。使用YASM需要做的就是将它放在$PATH目录之一,即它应该在shell/console中使用simple
YASM--version

从任何当前工作目录运行,只需为YASM的路径提供--extracflag就行了
No working C compiler found.