[Ffmpeg-devel] [PATCH] cygwin, link error

Marcus Engene ffmpeg
Tue Mar 21 13:15:50 CET 2006


Hi,

ffmpeg cvs today, cygwin updated today.

Perhaps I've done something silly again.
Compilation gets upset that libz isn't after the things using it.

Attached patch on libavformat/Makefile
fixes the compilation. Is it ok?

Best regards,
Marcus

./configure --enable-shared --enable-gpl --enable-memalign-hack
 
gcc -shared -Wl,-soname,libavformat.so.50 -Wl,--warn-common -o
libavformat.so utils.o cutils.o os_support.o allformats.o mpeg.o
mpegts.o mpegtsenc.o ffm.o crc.o img.o img2.o raw.o rm.o avienc.o
avidec.o wav.o mmf.o swf.o au.o gif.o mov.o mpjpeg.o dv.o
yuv4mpeg.o 4xm.o flvdec.o psxstr.o idroq.o ipmovie.o nut.o
wc3movie.o mp3.o westwood.o segafilm.o idcin.o flic.o
sierravmd.o matroska.o sol.o electronicarts.o nsvdec.o asf.o
ogg2.o oggparsevorbis.o oggparsetheora.o oggparseflac.o daud.o
aiff.o voc.o tta.o mm.o avs.o flvenc.o movenc.o asf-enc.o
adtsenc.o pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o framehook.o
audio.o avio.o aviobuf.o file.o udp.o tcp.o http.o rtsp.o
rtp.o rtpproto.o -lz -L../libavutil -lavutil -lavcodec
-L../libavcodec
../libavcodec/libavcodec.a(lcl.o): In function `decode_frame':
/3pp/ffmpeg/libavcodec/lcl.c:280: undefined reference to `_inflateReset'
/3pp/ffmpeg/libavcodec/lcl.c:304: undefined reference to `_inflateReset'
../libavcodec/libavcodec.a(lcl.o): In function `encode_frame':
/3pp/ffmpeg/libavcodec/lcl.c:578: undefined reference to `_deflateReset'
../libavcodec/libavcodec.a(lcl.o): In function `encode_init':
/3pp/ffmpeg/libavcodec/lcl.c:825: undefined reference to `_deflateInit_'
../libavcodec/libavcodec.a(tscc.o): In function `decode_frame':
/3pp/ffmpeg/libavcodec/tscc.c:208: undefined reference to `_inflateReset'
../libavcodec/libavcodec.a(zmbv.o): In function `decode_frame':
/3pp/ffmpeg/libavcodec/zmbv.c:477: undefined reference to `_inflateReset'
collect2: ld returned 1 exit status
make[1]: *** [libavformat.so] Error 1
make[1]: Leaving directory `/3pp/ffmpeg/libavformat'
make: *** [lib] Error 2

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060321/10cab21a/attachment.txt>



More information about the ffmpeg-devel mailing list