[FFmpeg-user] "ERROR: libx264 not found" Ubuntu 11.10

Andreas Grehn andreas.grehn at gmail.com
Sun Feb 19 22:37:46 CET 2012

I've followed the guide for installing ffmpeg on Ubuntu 11.10 located here:

When I get to this part all hell breaks loose.
root at kameraserver:~/ffmpeg# ./configure --enable-gpl --enable-libfaac
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree
--enable-postproc --enable-version3 --enable-x11grab
ERROR: libx264 not found
If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

As instructed the complete config.log is available here

x264 seems to be installed, I guess, I have no experience of checkinstall
but I can't see any errors.
The result of checkinstall is at this location http://pastebin.com/mCiZHQ8f.

With some reading of the configure.log for ffmpeg I tried to put x264.h in
/usr/include. That resulted in config.log ending with a request to find
x264_config.h, I promptly copied that aswell and now it ends with the
following error.
check_lib x264.h x264_encoder_encode -lx264
check_header x264.h
BEGIN /tmp/ffconf.4KTJhgCU.c
    1 #include <x264.h>
    2 int x;
END /tmp/ffconf.4KTJhgCU.c
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99 -fomit-frame-pointer
-pthread -E -o /tmp/ffconf.l7QVcEji.o /tmp/ffconf.4KTJhgCU.c
In file included from /tmp/ffconf.4KTJhgCU.c:1:0:
/usr/include/x264.h:36:4: warning: #warning You must include stdint.h or
inttypes.h before x264.h [-Wcpp]
check_func x264_encoder_encode -lx264
check_ld cc -lx264
BEGIN /tmp/ffconf.4KTJhgCU.c
    1 extern int x264_encoder_encode();
    2 int main(void){ x264_encoder_encode(); }
END /tmp/ffconf.4KTJhgCU.c
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99 -fomit-frame-pointer
-pthread -c -o /tmp/ffconf.l7QVcEji.o /tmp/ffconf.4KTJhgCU.c
gcc -Wl,--as-needed -o /tmp/ffconf.QuRwmCOy /tmp/ffconf.l7QVcEji.o -lx264
-lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lopencore-amrwb
-lopencore-amrnb -lmp3lame -lfaac -lm -pthread -lz
/usr/bin/ld: cannot find -lx264
collect2: ld returned 1 exit status
ERROR: libx264 not found

The warning about stdint.h I have absolutely no clue as to how to solve,
hence this message.

I have some Linux knowledge and I have some c/c++ experience but this is
way out of my comfort zone.

More information about the ffmpeg-user mailing list