DLNA it Error, can& #39; t Findlibavformat! Solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.