[FFmpeg-user] Static compile with embeded 3rd party libraries.
Tim Nicholson
tim.nicholson at bbc.co.uk
Thu Aug 25 18:28:25 CEST 2011
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?
--
Tim
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
More information about the ffmpeg-user
mailing list