[FFmpeg-user] Static compile with embeded 3rd party libraries.

James Darnley james.darnley at gmail.com
Thu Aug 25 20:01:03 CEST 2011


On 25/08/2011, Tim Nicholson <tim.nicholson at bbc.co.uk> wrote:
> Having been building ffmpeg statically for a while to avoid conflicts
> with distro versions by using:-
>
> "... --enable-static --disable-shared ..."
>
> I want to go one step further and end up with a portable executable that
> also includes all the third party libs such as lame faac etc. Googling
> around suggests adding in:-
>
> "--extra-libs=-static --extra-cflags=--static"
>
> However when I do this configure fails with an error saying it cannot
> find the third party libs.
>
> "gcc -o /tmp/ffconf.kNbWfR0S /tmp/ffconf.htm52E9X.o -lfaac -lm -pthread
> -static
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld:
> cannot find -lfaac
> collect2: ld returned 1 exit status
> ERROR: libfaac not found"
>
> I am obviously missing a bit, as it links to them fine without the extra
> two options. Can anyone assist in pointing me in the right direction?

Do you have a static libfaac?


More information about the ffmpeg-user mailing list