[FFmpeg-user] Compile ffmpeg libx264 not found

AS as-2008 at live.cn
Tue Jun 25 16:50:35 CEST 2013


Thank you for providing such a good open source player library!
I encountered some problems when compiling ffmpeg. "ERROR: libx264 not found".
I'm sure I have installed x264, Here are the steps of compiling ffmpeg:
1, x264
    . / Configure - enable-static
    make
    make install
    Successfully compile x264
2, ffmpeg
    .
 / Configure - enable-gpl - enable-nonfree - enable-pthreads - 
enable-libfaac - enable-libmp3lame - enable-libtheora - enable-libx264 -
 enable-libxvid - enable-x11grab - enable-libopencore-amrnb - enable-libopencore-amrwb - enable-version3 - disable-optimizations - disable-asm
    Prompt "ERROR: libx264 not found"
    Here is my part of the config.log file
check_lib x264.h x264_encoder_encode-lx264
check_header x264.h
check_cpp
BEGIN / tmp/ffconf.jBthI3eR.c
    1 # include <x264.h>
    2 int x;
END / tmp/ffconf.jBthI3eR.c
gcc-D_ISOC99_SOURCE-D_FILE_OFFSET_BITS
 = 64-D_LARGEFILE_SOURCE-D_POSIX_C_SOURCE = 200112-D_XOPEN_SOURCE = 
600-std = c99-pthread-E-o / tmp/ffconf.Dtuy8sIF.o / 
tmp/ffconf.jBthI3eR.c
In file included from / tmp/ffconf.jBthI3eR.c: 1:0:
/ Usr/local/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.jBthI3eR.c
    1 extern int x264_encoder_encode ();
    2 int main (void) {x264_encoder_encode ();}
END / tmp/ffconf.jBthI3eR.c
gcc-D_ISOC99_SOURCE-D_FILE_OFFSET_BITS
 = 64-D_LARGEFILE_SOURCE-D_POSIX_C_SOURCE = 200112-D_XOPEN_SOURCE = 
600-std = c99-pthread-c-o / tmp/ffconf.Dtuy8sIF.o / 
tmp/ffconf.jBthI3eR.c
gcc-Wl,
 - as-needed-o / tmp/ffconf.L9ZLav6h / 
tmp/ffconf.Dtuy8sIF.o-lx264-ltheoraenc-ltheoradec-logg-lopencore-amrwb-lopencore-amrnb-lmp3lame-lfaac-lm-pthread
 - lz-lrt
/ Usr/local/lib/libx264.a (opencl.o): In function `x264_opencl_load_library ':
opencl.c: (. text +0 x411): undefined reference to `dlopen '
opencl.c: (. text +0 x42b): undefined reference to `dlsym '
opencl.c: (. text +0 x448): undefined reference to `dlsym '
opencl.c: (. text +0 x465): undefined reference to `dlsym '
opencl.c: (. text +0 x482): undefined reference to `dlsym '
opencl.c: (. text +0 x49f): undefined reference to `dlsym '
/ Usr/local/lib/libx264.a (opencl.o): opencl.c: (. Text +0 x4bc): more undefined references to `dlsym 'follow
/ Usr/local/lib/libx264.a (opencl.o): In function `x264_opencl_load_library ':
opencl.c: (. text +0 x73e): undefined reference to `dlclose '
/ Usr/local/lib/libx264.a (opencl.o): In function `x264_opencl_close_library ':
opencl.c: (. text +0 x7b2): undefined reference to `dlclose '
/ Usr/local/lib/libx264.a (opencl.o): In function `x264_opencl_lookahead_init ':
opencl.c: (. text +0 x149c): undefined reference to `dlopen '
opencl.c: (. text +0 x14b8): undefined reference to `dlsym '
opencl.c: (. text +0 x14cc): undefined reference to `dlsym '
opencl.c: (. text +0 x14e0): undefined reference to `dlsym '
opencl.c: (. text +0 x14f4): undefined reference to `dlsym '
opencl.c: (. text +0 x15cb): undefined reference to `dlclose '
collect2: ld returned 1 exit status
ERROR: libx264 not found
looking forward to hear from you at earliest.Wait for your soonest reply.
Your sincerely!
 		 	   		  


More information about the ffmpeg-user mailing list