Tag Archives: minidlna

[Solved] Minidlna Error: checking for avformat_open_input in -lavformat -lavcodec -lavutil -lz… no

I have installed FFmpeg, but when I configured minidlna1.3.0, I found an error when I executed. /configure and found an error
checking for avformat_open_input in -lavformat -lavcodec -lavutil -lz… no
configure: error: Could not find libavformat – part of ffmpeg
Opening the configuration results file config.log reveals various errors.
For example.
libavformat/rtmpproto.c:1077: undefined reference to ‘inflateInit_’
libavcodec/vaapi_encode_h264.c:871: Undefined reference to ‘vaQueryVendorString’.

So the configure file needs to be modified

as_ac_Lib=`$as_echo "ac_cv_lib_avformat -lavcodec -lavutil -lz''_av_open_input_file" | $as_tr_sh`
modify to
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"
modify to
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

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