[Libav-user] linker error after compiling encoding_decoding.c

Geek.Song ffmpeg at gmail.com
Sat Sep 28 10:16:26 CEST 2013


On Sat, Sep 28, 2013 at 3:51 PM, satya gowtham kudupudi <
satyagowtham.k at gmail.com> wrote:

> On ubuntu i've installed ffmpeg as per
> http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide I'm trying to
> compile
> http://www.ffmpeg.org/doxygen/2.0/doc_2examples_2decoding_encoding_8c-example.html
> ;
> changed int main<http://www.ffmpeg.org/doxygen/2.0/main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627>
> (int argc, char **argv) to int libavcodec_example(int argc, char **argv);
> included it in my application; called  libavcodec_example(int argc, char
> **argv)
>
> g++ -D__STDC_CONSTANT_MACROS    -o
> dist/Debug/GNU-Linux-x86/remotedevicecontroller
> build/Debug/GNU-Linux-x86/libavcodec-example.o
> build/Debug/GNU-Linux-x86/main.o build/Debug/GNU-Linux-x86/test-echo.o
> /usr/local/ffmpeg_build/lib/libavdevice.a
> /usr/local/ffmpeg_build/lib/libavfilter.a
> /usr/local/ffmpeg_build/lib/libavcodec.a
> /usr/local/ffmpeg_build/lib/libavutil.a
> /usr/local/ffmpeg_build/lib/libswscale.a
> /usr/local/ffmpeg_build/lib/libavformat.a -lxml2 -lpthread -lssl -lcrypto
> -lwebsockets
>
>

Please change your link order to :

libavformat.a libavcodec.a xxxx libavutils.a .....

-- 
-----------------------------------------------------------------------------------------
My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130928/fc0aadad/attachment.html>


More information about the Libav-user mailing list