[FFmpeg-devel] mingw compile problems latest trunk

Gonzalo Garramuño ggarra
Tue Jan 1 06:31:35 CET 2008

I updated and I'm trying to recompile ffmpeg under mingw32.  I removed 
all references to all the av* libraries in /usr/local/bin and 

libavutil and libavcodec compiled fine, but I got some linking errors 
when linking avformat.

The problem appears to be the wrong order of -lavutil, which is listed 
before -lavcodec, instead of after.

gcc -shared -Wl,--output-def,avformat-52.def 
-Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base 
-L/usr/local/lib -Wl,--warn-common 
-Wl,-Bsymbolic -o avformat-52.dll allformats.o .... (snip) ... 
-L"/z/code/PD/libraries/ffmpeg-trunk"/libavutil -lavutil 
-L"/z/code/PD/libraries/ffmpeg-trunk"/libavcodec -lavcodec -lz -lm 
-lvorbisenc -lvorbis -logg  -lws2_32

z:/code/PD/libraries/ffmpeg-trunk/libavcodec/libavcodec.a(cscd.o): In 
function `decode_frame':
z:/code/PD/libraries/ffmpeg-trunk/libavcodec/cscd.c:161: undefined 
reference to `lzo1x_decode'
(and many others)

Gonzalo Garramu?o
ggarra at advancedsl.com.ar

AMD4400 - ASUS48N-E
Xubuntu Gutsy

More information about the ffmpeg-devel mailing list