在 Ubuntu 12.04 上安装 ffmpeg
我收到以下错误
libavcodec/libavcodec.a(libx264.o): In function `X264_init':
/root/ffmpeg/libavcodec/libx264.c:492: undefined reference to `x264_encoder_open_125'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1
我正在按照在
http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
有人知道这个错误吗?
最佳答案
对于已经通过包管理系统安装了 x264 的人来说,这是一个典型的问题。您至少可以通过两种方式解决此问题:
# apt-get remove x264
和 compile your new x264 from source
LD_LIBRARY_PATH
环境变量:LD_LIBRARY_PATH=/path/to/my/compiled/x264/library ./configure --enable-libx264 ...
可以在这些链接上找到更多信息:
关于ffmpeg - 未定义对 `x264_encoder_open_125' 的引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11838456/