Getting error while installing FFMPEG packages, undefined reference to x264 encoder open 146.
# ./configure --enable-shared --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libx264
# make
# make
...
....
ffmpeg_opt.c:234: warning: ‘allow_unused’ may be used uninitialized in this function
CC ffmpeg_filter.o
LD ffmpeg_g
libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_146'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1
Solution :
Find the installed packages and remove it,
# rpm -qa | grep x264
x264-0.0.0-0.4.20101111.el6.rf.x86_64
remove libx264 by rpm,
# rpm -e x264-0.0.0-0.4.20101111.el6.rf.x86_64
you need to ensure the below packages are installed in your system, If you could not found install it.
# yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc
Then, install x264 devel and x264 package,
# yum install x264-devel x264
Now, download the x264 package by git and install,
# cd /usr/local/src
# git clone git://git.videolan.org/x264.git
# cd x264
# ./configure --enable-shared --disable-asm
# make && make install
# git clone git://git.videolan.org/x264.git
# cd x264
# ./configure --enable-shared --disable-asm
# make && make install
Now, you can try to configure the FFMPEG again.
Comments (0)