Ola Mogstad wrote:
> Hello,
> 
> I am developing an application that uses libavcodec, libavformat, and
> libswscale, which compiles a runs fine by simply using the system header
> files ( #include <ffmpeg/avcodec.h>, etc) and system libraries
> ( -lavcodec, etc ). FFMPEG was configured as follows:  
> 
>       --enable-gpl --enable-libx264 --enable-shared --enable-swscale
> 
> Now, in order to make my application easy to install for other users, I
> want to include the necessary ffmpeg library bits in my tarball and have
> them load dynamically. This is how I've tried to accomplish this:
> 
> - Created an ffmpeg/ folder in my application folder
> - Copied libavcodec.so.51, libavformat.so.52, and libswscale.so.0 into
> the folder, then renamed them to *.so.
> - Copied avcodec.h, avformat.h, and swscale.h into the folder. It also
> seemed like I needed avio.h, so it was also put there.
> 
> In my application, the libraries are used with:
> 
>       #include "avcodec.h"
>       #include "avformat.h"
>       #include "swscale.h"
> 
> And the application is compiled with these flags, among others:
> 
>       -Iffmpeg/ -Lffmpeg/ -lavcodec -lavformat -lswscale
> 
> So, these are the steps that I have used in order to accomplish this.
> However, as I try to compile my application I get an "undefined
> reference to..." on all functions used, as far as I can tell - i.e. a
> linker error (see below for full output). I've tried playing around with
> this and even tried to load things statically, without success. 
> 
> What step am I missing here? I appreciate any input that you might have.
> 
> Cheers,
> Ola
> 
> --- Output from compilation ---
> 
[snip]

You should have retained the gcc command in the output.

> /tmp/ccXY3PX5.o: In function `GXLinuxDecoder::CloseDecoder()':

C++, right?

[snip]

Greetings?
-- 
Michel Bardiaux
http://www.mediaxim.com/
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to