DLNA Library version number is libdlna-0.2.4
Run ./configure Error:
------------------------------
Error, can ' t Findlibavformat!
--------------------------------------------
View Config.log File:
----------------------------------------------------------
...
/usr/local/lib/libavformat.a (RTP.O): In function ' Ff_rtp_get_payload_type ':
/home/won/downloads/ffmpeg/libavformat/rtp.c:99:undefined reference to ' Av_opt_get_int '
/home/won/downloads/ffmpeg/libavformat/rtp.c:109:undefined reference to ' Av_opt_flag_is_set '
/usr/local/lib/libavformat.a (RTP.O): In function ' ff_rtp_codec_id ':
/home/won/downloads/ffmpeg/libavformat/rtp.c:148:undefined reference to ' av_strcasecmp '
collect2:ldreturned 1 Exit status
Error, can ' t Findlibavformat!
------------------------------------
Use the Pkg-config command to check the link cflags for the shared library used by the Avformat library:
-------------------------------------------------------------
$ pkg-config Libavformat--libs
-pthread-l/usr/local/lib-lavformat-lavcodec-lswresample-lavutil-lrt-lm
-------------------------------------------------------------
about the Pkg-config command I was just in touch with the method of how it works, to be able to see How to use Pkg-config
Changes Configure (add these libraries to the red ones):
-------------------------------------------------------------
...
Echolog "Checking for Libavformat ..."
Check_liblibavformat/avformat.h Av_register_all-lavformat-pthread-lavformat-lavcodec-lswresample-lavutil- LRT-LM| | Die "Error, can ' t find Libavformat!"
Echolog "Checking for Libavcodec ..."
---------------------------------------------------------------
Run again ./configure , problem solving.
Run Make the error message:
--------------------------------------------------------------
...
GCC test-libdlna.c-w-wall-wno-unused-but-set-variable-d_largefile_source-d_file_offset_bits=64-d_reentrant-o3- Isrc-lsrc-ldlna-lavformat-pthread-lavcodec-lswresample-lavutil-lrt-lm-o Test-libdlna
src/libdlna.so:undefined reference to ' Av_close_input_file '
src/libdlna.so:undefined reference to ' Av_find_stream_info '
collect2:ldreturned 1 Exit status
Make: ***[test-libdlna] Error 1
--------------------------------------------------------------
Solution:undefined reference to ' av_close_input_file ' cause analysis
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
DLNA it Error, can& #39; t Findlibavformat! Solution