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