已经安装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