[Ffmpeg-devel] How to build ffmpeg with cygwin statically linkmp3lame and xv

Víctor Paesa wzrlpy
Fri Apr 29 23:57:19 CEST 2005


Hi,

It seems that even './configure --disable-share' still builds the shared 
libraries, and they are preferred by ld.

I found a quick & dirty solution: remove the shared libraries (or move them 
out of the linker path)

The complete commands I used were:

cd ~/src/lame-3.96.1
make distclean
./configure --disable-share --enable-nasm --disable-gtktest 
--disable-analyzer-hooks --disable-mp3x --disable-brhist 
--enable-expopt=full
make
make install

# Quick & dirty solution: remove the shared libraries
rm /usr/local/lib/libmp3lame.la /usr/local/lib/libmp3lame.dll.a

cd ~/src/FFMpeg-20050426
./configure --enable-pthreads --enable-faac --enable-vorbis --enable-libogg 
--enable-mp3lame --enable-a52 --enable-pp --enable-gpl 
--extra-cflags="-march=pentium4 -mcpu=pentium4 -I/usr/local/include/" 
--extra-ldflags="-L/usr/local/lib" --disable-v4l --disable-dv1394 
--disable-ffplay --disable-ffserver --disable-vhook
make

# Now cygcheck shows no dependancy of ffmpeg on cygmp3lame-0.dll
cygcheck ./ffmpeg.exe
.\ffmpeg.exe
  C:\cygwin\bin\cygwin1.dll
    C:\WINDOWS\System32\ADVAPI32.DLL
      C:\WINDOWS\System32\ntdll.dll
      C:\WINDOWS\System32\KERNEL32.dll
      C:\WINDOWS\System32\RPCRT4.dll
  C:\cygwin\bin\cygz.dll

I have not tried with xvid, but probably it will work the same way too.

Regards,
V?ctor Paesa






More information about the ffmpeg-devel mailing list