Go to: http://blog.sina.com.cn/s/blog_54b5ea250100r53o.html
Integration of FFMPEG/x264: Error: libx264 not found -- the following problem occurs when FFMPEG/x264 is integrated: Error: libx264 not found to view config. log, details: check_lib x264.h x26_encoder_encode-lx264 check_header x264.h check_cpp begin/tmp/ffconf. isuazglg. c 1 # include <x264.h> 2 int X; end/tmp/ffconf. isuazglg. c gcc-d_isoc99_source-d_posix_c_source = 200112-d_file_offset_bits = 64-d_largefil e_source-u1_strict_ansi _-I/D/mingw/msys/1.0/in Clude-STD = c99-fno-common-FOM it-frame-pointer-e-o/tmp/ffconf. clhydyvc. o/tmp/ffconf. isuazglg. c:/docume ~ 1/IBM/locals ~ 1/temp/ffconf. isuazglg. c: 1: 18: Fatal error: x264.h: No Su ch file or directory ^ m compilation terminated. ^ m error: libx264 not found: the actual cause is that FFMPEG configure cannot find the x264.h file of the x264 make install. View the result of xforwardingmake install: install-D/usr/local/bin install-D/usr/local/include install-D/usr/local/lib/pkgconfig install- M 644 x264.h/usr/local/include install-M 644 x1__config.h/usr/local/include install-M 644 libx264.a/usr/local/lib install-M 644 x264.pc/usr/local /lib/pkgconfig install x264.exe/usr/local/bin ranlib/usr/local/lib/libx264.a install-M 755 Libx264-115.dll/usr/local/bin install-M 644 libx264.dll. a/usr/local/lib. Therefore, you only need to add an extra include/link path When configuring configure to solve the problem, that is, add a switch: -- extra-cflags =-I/usr/local/include -- extra-ldflags =-L/usr/local/lib. This parameter needs to be modified based on the actual configuration of your x264 compilation and installation. Finally, the configure command for FFMPEG ischanged to: $. /configure -- enable-memalign-hack -- enable-ffserver -- enable-Network -- enable-protocols -- enable-muxers -- disable-yasm -- enable-shared -- enable-w32threads -- enable-libx264 -- enable-GPL -- extra-cflags =-I/usr/local/include -- extra-ldflags =-L/usr/local/lib run, everything is correct!