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

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

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

目录
相关文章
|
10月前
QSoundEffect(qaudio): Error decoding source
QSoundEffect(qaudio): Error decoding source
195 0
|
安全 Python
python库ffmpeg的错误解决方法:“Couldn‘t find ffmpeg or avconv - defaulting to ffmpeg, but may not work“
简介:python库ffmpeg的错误解决方法:“Couldn‘t find ffmpeg or avconv - defaulting to ffmpeg, but may not work“
python库ffmpeg的错误解决方法:“Couldn‘t find ffmpeg or avconv - defaulting to ffmpeg, but may not work“
|
Unix Linux 异构计算
成功解决 ERROR: An error occurred while performing the step: “Building kernel modules“. See /var/log/nv
成功解决 ERROR: An error occurred while performing the step: “Building kernel modules“. See /var/log/nv
成功解决 ERROR: An error occurred while performing the step: “Building kernel modules“. See  /var/log/nv
|
PyTorch 算法框架/工具
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
174 0
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
|
缓存 PHP
Composer报错: require(): Failed opening required ‘.../markbaker/matrix/.../functions/adjoint.php‘
Composer报错: require(): Failed opening required ‘.../markbaker/matrix/.../functions/adjoint.php‘
224 0
configure: error: libacl not found
configure: error: libacl not found
67 0
|
编解码
configure: error: You requested G729 audio codec but not found...die
configure: error: You requested G729 audio codec but not found...die
66 0
configure: error: You requested LIBYUV but not found...die
configure: error: You requested LIBYUV but not found...die
77 0
ERROR: libx264 not found
ERROR: libx264 not found
141 0
解决办法:configure: error: You requested SRTP (requires libsrtp) but not found...die
解决办法:configure: error: You requested SRTP (requires libsrtp) but not found...die
122 0