您当前的位置: 首页 > 

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

configure:13747: error: You requested FFmpeg (h264, h263, theora, mp4v-es) but not found...die

柳鲲鹏 发布时间:2020-02-20 13:56:53 ,浏览量:0

config.log中错误如下:

/* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char avcodec_alloc_frame ();
| int
| main ()
| {
| return avcodec_alloc_frame ();
|   ;
|   return 0;
| }
configure:13725: result: no
configure:13747: error: You requested FFmpeg (h264, h263, theora, mp4v-es) but not found...die

这个错误看起来很奇怪,我so都有,怎么报错?原因是使用的库太新了。需要老的库。多老的库?2.8

http://ffmpeg.org/releases/ffmpeg-2.8.15.tar.bz2

 

如果还出错:

  • configure时增加参数:
LIBS="-lswresample -lavutil -lyuv -ljpeg " \
  • 机器上有别的版本的ffmpg编译库,删除
  • 编译错误。参考:

https://blog.csdn.net/quantum7/article/details/104411123

  • 如果是实在没有办法了,干脆编辑configure,have_ffmpeg=no改为yes
关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0544s