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
ffmpeg-user@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.

 

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

4786 check_cpp_condition x264.h X264_BUILD >= 115
4787 check_cpp
4788 BEGIN /tmp/ffconf.vX3JYltC.c
4789     1   #include <x264.h>
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

 

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值