ERROR: libx264 version must be >= 0.115.

下载新的ffmpeg 0.85后,用以下方式configure,发现总是会有version的问题。

但是x264已经装好最新版。原因出自哪里?

./configure --prefix=/usr --enable-gpl --disable-shared --enable-libfaac --enable-libx264 --enable-nonfree --enable-memalign-hack --enable-debug --disable-ffplay --disable-ffprobe --disable-ffserver
ERROR: libx264 version must be >= 0.115.

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
[email protected] 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.

 

我们看config.log.  搜索libx264。在文件的最后几行,发现如下问题。

4786 check_cpp_condition x264.h X264_BUILD >= 115
4787 check_cpp
4788 BEGIN /tmp/ffconf.vX3JYltC.c
4789     1   #include
4790     2   #if !(X264_BUILD >= 115)
4791     3   #error "unsatisfied condition: X264_BUILD >= 115"
4792     4   #endif
4793 END /tmp/ffconf.vX3JYltC.c
4794 gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99 -fomit-f
     rame-pointer -pthread -E -o /tmp/ffconf.mADGeqyU.o /tmp/ffconf.vX3JYltC.c
4795 In file included from /tmp/ffconf.vX3JYltC.c:1:
4796 /usr/local/include/x264.h:36:4: warning: #warning You must include stdint.h or inttypes.h before x264.h
4797 /tmp/ffconf.vX3JYltC.c:3:2: error: #error "unsatisfied condition: X264_BUILD >= 115"
4798 ERROR: libx264 version must be >= 0.115.

 

原来,它检查的是usr/local/include下的x264.h文件。

而我的x264.h是安装在usr/include目录下了。 于是复制一份过来,问题解决了。

 

ffmpeg 0.80以后的版本好像需要0.116版本的x264

 

 

 

你可能感兴趣的:(ffmpeg)