本文介绍了未定义的引用“x264_encoder_open_125”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu 12.04上安装ffmpeg

While installing ffmpeg on Ubuntu 12.04

我收到以下错误

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

我在追踪在
上给出的说明

有没有人想到这个错误?

Do anyone have idea about this error?

推荐答案

这是一个已经通过包管理系统安装了x264的人的典型问题。您可以通过至少两种方式解决此问题:

This is a typical problem for people who already have x264 installed through the package management system. You can solve this in at least 2 ways:


  1. 通过软件包管理系统从系统中卸载已存在的x264:

  1. Uninstall the already existing x264 from your system, through the package management system:

# apt-get remove x264

不要卸载x264软件包,但,然后,告诉它使用新编译的x264库,通过指定目录您编译的x264库使用上述 LD_LIBRARY_PATH 环境变量:

Don't uninstall the x264 package, but compile your new x264 and then compile your ffmpeg, telling it to use that newly compiled x264 library, by specifying that directory where your compiled x264 library is, using the mentioned LD_LIBRARY_PATH environment variable:

LD_LIBRARY_PATH=/path/to/my/compiled/x264/library ./configure --enable-libx264 ...


可以在这些链接上找到更多信息:

More info can be found on these links:



  • problem with --enable-libx264 option in ffmpeg
  • Compiling FFmpeg

这篇关于未定义的引用“x264_encoder_open_125”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 20:21