[FFmpeg-user] Installing on Ubuntu Error: libx264 not found

Joel jlopez at intelecom.org
Tue May 21 20:37:00 CEST 2013


Hi,

I've been using this guide:
https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide

I copy and paste the blocks of test and all seems to go well until the
ffmpeg part.  I get this error:

"ERROR: libx264 not found"

Any ideas on what could be going wrong?

Here's the tail of my log file as well.

Thanks,
Joel


gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
-I/home/jlopez/ffmpeg_build/include -std=c99 -fomit-frame-pointer -pthread
-I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/opus -c -o
/tmp/ffconf.PhBG0nPG.o /tmp/ffconf.r04RgI12.c
/tmp/ffconf.r04RgI12.c: In function 'check_vpx_codec_vp9_cx':
/tmp/ffconf.r04RgI12.c:3:51: error: 'vpx_codec_vp9_cx' undeclared (first use
in this function)
/tmp/ffconf.r04RgI12.c:3:51: note: each undeclared identifier is reported
only once for each function it appears in
check_lib x264.h x264_encoder_encode -lx264
check_header x264.h
check_cpp
BEGIN /tmp/ffconf.r04RgI12.c
    1   #include <x264.h>
    2   int x;
END /tmp/ffconf.r04RgI12.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
-I/home/jlopez/ffmpeg_build/include -std=c99 -fomit-frame-pointer -pthread
-I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/opus -E -o
/tmp/ffconf.PhBG0nPG.o /tmp/ffconf.r04RgI12.c
In file included from /tmp/ffconf.r04RgI12.c:1:0:
/home/jlopez/ffmpeg_build/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
check_cc
BEGIN /tmp/ffconf.r04RgI12.c
    1   extern int x264_encoder_encode();
    2   int main(void){ x264_encoder_encode(); }
END /tmp/ffconf.r04RgI12.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
-I/home/jlopez/ffmpeg_build/include -std=c99 -fomit-frame-pointer -pthread
-I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/opus -c -o
/tmp/ffconf.PhBG0nPG.o /tmp/ffconf.r04RgI12.c
gcc -L/home/jlopez/ffmpeg_build/lib -Wl,--as-needed -o /tmp/ffconf.oKYu26Qf
/tmp/ffconf.PhBG0nPG.o -lx264 -lvpx -lvpx -lvorbisenc -lvorbis -logg
-ltheoraenc -ltheoradec -logg -lopus -lmp3lame -lfdk-aac -lfaac -lass -lm
-pthread -lz
/home/jlopez/ffmpeg_build/lib/libx264.a(opencl.o): In function
`x264_opencl_load_library':
opencl.c:(.text+0x46f): undefined reference to `dlopen'
opencl.c:(.text+0x488): undefined reference to `dlsym'
opencl.c:(.text+0x4a2): undefined reference to `dlsym'
opencl.c:(.text+0x4bc): undefined reference to `dlsym'
opencl.c:(.text+0x4d6): undefined reference to `dlsym'
opencl.c:(.text+0x4f0): undefined reference to `dlsym'
/home/jlopez/ffmpeg_build/lib/libx264.a(opencl.o):opencl.c:(.text+0x50a):
more undefined references to `dlsym' follow
/home/jlopez/ffmpeg_build/lib/libx264.a(opencl.o): In function
`x264_opencl_load_library':
opencl.c:(.text+0x774): undefined reference to `dlclose'
/home/jlopez/ffmpeg_build/lib/libx264.a(opencl.o): In function
`x264_opencl_close_library':
opencl.c:(.text+0x831): undefined reference to `dlclose'
/home/jlopez/ffmpeg_build/lib/libx264.a(opencl.o): In function
`x264_opencl_lookahead_init':
opencl.c:(.text+0x13d3): undefined reference to `dlopen'
opencl.c:(.text+0x13ec): undefined reference to `dlsym'
opencl.c:(.text+0x13fc): undefined reference to `dlsym'
opencl.c:(.text+0x140e): undefined reference to `dlsym'
opencl.c:(.text+0x141e): undefined reference to `dlsym'
opencl.c:(.text+0x147c): undefined reference to `dlclose'
opencl.c:(.text+0x148c): undefined reference to `dlclose'
opencl.c:(.text+0x1b7b): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
ERROR: libx264 not found



More information about the ffmpeg-user mailing list