minidlna编译发现checking for avformat_open_input in -lavformat -lavcodec -lavutil -lz... no解决方法

已经安装FFmpeg 但是在配置minidlna1.3.0 执行./configure时发现报错

checking for avformat_open_input in -lavformat -lavcodec -lavutil -lz... no

configure: error: Could not find libavformat - part of ffmpeg

打开配置结果文件config.log发现各种错误:

比如:

libavformat/rtmpproto.c:1077:对‘inflateInit_’未定义的引用

libavcodec/vaapi_encode_h264.c:871:对‘vaQueryVendorString’未定义的引用

因此需要修改configure文件

as_ac_Lib=`$as_echo "ac_cv_lib_avformat -lavcodec -lavutil -lz''_av_open_input_file" | $as_tr_sh`修改为

as_ac_Lib=`$as_echo "ac_cv_lib_avformat -lavcodec -lavutil -lz -lm -lbz2 -lswresample -llzma -lX11 -lva -lva-x11 -lva-drm''_avformat_open_input" | $as_tr_sh`

LIBS="-lavformat -lavcodec -lavutil -lz  $LIBS"修改为

LIBS=" -lpthread -lavformat -lavcodec -lavutil -lz  -lm -lbz2 -lswresample -llzma -lX11 -lva -lva-x11 -lva-drm $LIBS"

if test x"$ac_cv_lib_avformat__lavcodec__lavutil__lz___av_open_input_file" != x"yes" &&
   test x"$ac_cv_lib_avformat__lavcodec__lavutil__lz___avformat_open_input" != x"yes"; then

修改为

if eval test \"x\$"$as_ac_Lib"\" != x"yes"; then

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值