[Ffmpeg-devel] Re: Problems linking libraries into ffmpeg

Diamond Software diamondsw
Sat May 13 22:26:46 CEST 2006

> When I go to make ffmpeg, my current method is this (using CVS  
> code, and all other support libraries already built):
> CFLAGS="-I`pwd`/faac/include/ -I`pwd`/faad/include/ -I`pwd`/ 
> lame-3.96.1/include/" \
> CPPFLAGS="-I`pwd`/faac/include/ -I`pwd`/faad/include/ -I`pwd`/ 
> lame-3.96.1/include/" \
> LDFLAGS="-L`pwd`/faac/libfaac/.libs/ -L`pwd`/faad/libfaad/.libs/ - 
> L`pwd`/lame-3.96.1/libmp3lame/.libs/" \
> ./configure --enable-static --disable-shared --disable-mmx --enable- 
> gpl \
> --disable-vhook --disable-ffplay --disable-ffserver --enable- 
> pthreads \
> --enable-a52 --enable-amr_nb --enable-amr_wb --enable-faac --enable- 
> faad \
> --extra-cflags=-DHAVE_LRINTF --enable-mp3lame && make

Fixed with the very long and ugly:

./configure --enable-static --disable-shared --disable-mmx --enable- 
gpl \
--disable-vhook --disable-ffplay --disable-ffserver --enable-pthreads \
--enable-a52 --enable-amr_nb --enable-amr_wb --enable-faac --enable- 
faad \
--enable-mp3lame \
--extra-cflags="-DHAVE_LRINTF -I`pwd`/faac/include/ -I`pwd`/faad/ 
include/ -I`pwd`/lame-3.96.1/include/" \
--extra-ldflags="-L`pwd`/faac/libfaac/.libs/ -L`pwd`/faad/ 
libfaad/.libs/ -L`pwd`/lame-3.96.1/libmp3lame/.libs/" > configure.out

While the configure file does keep the contents of the $LDFLAGS  
variable for Linux, for most other platforms (including Darwin/OS X)  
it just overwrites it completely. Not good.

However, even after solving this, I appear to still have linking issues:

ffmpeg $ ./ffmpeg
dyld: Library not loaded: /usr/local/lib/libfaac.0.dylib
   Referenced from: /Users/jochs/Documents/Development/Tivo/ffmpeg/./ 
   Reason: image not found
Trace/BPT trap

What part of "--enable-static --disable-shared" is it (or am I) not  
understanding here? I don't want any library dependencies when done;  
I want a standalone binary if at all possible.

  - Joshua Ochs

More information about the ffmpeg-devel mailing list