On Tuesday 11 March 2008 08:00:32 Vladimir Eremeev wrote:
> luigi <[EMAIL PROTECTED]> writes:
> > Hi I'm trying to link STATICALLY a program to libavcodec, libavformat and
> > libswscale. Compilation seems ok, but when g++ arrives at the linking
> > stage I get a lot of error messages:
> >
> > myprog.cpp:68: undefined reference to `av_find_stream_info'
>
> When linking statically, the order of libraries matters.
> I have found the following in my archives:
> -lavcodec -lpthread -lavformat -lavcodec -lavutil -lm -lz
>
> Here is some more information.
>
> http://users.actcom.co.il/~choo/lupg/tutorials/libraries/unix-c-libraries.h
>tml
>
>
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
Thank you VERY much! That was the trick!
I had to include -lavcodec more than once and I had to include all the
libraries which were required by libavcodec (ogg, vorbis, lame, etc)
something like this :
....
-lavcodec -lavformat -lavcodec -lavutil -lm -lz -lxvidcore -logg
-lvorbis \
-lmp3lame -ltheora -la52 -lfaac -lfaad -lvorbisenc
....
luigi
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user