[Ffmpeg-devel] Compiling with --enable-pthreads on mingw32
Ahmad Zaidee bin Abu
zaidee
Fri Dec 16 16:43:47 CET 2005
Hello expert,
I configure ffmpeg check out from cvs today with pthreads support.
./configure --enable-shared --enable-memalign-hack --enable-mp3lame --enable-pthreads --extra-cflags=-I/usr/local/include --extra-ldflags="-L/usr/local/lib"
When compiled, error as below appears.
gcc -shared -Wl,-soname,avcodec.dll.51 -Wl,--output-def,avcodec.def -o avcodec.dll bitstream.o utils.o mem.o allcodecs.o mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o mpegaudio.o ac3enc.o mjpeg.o resample.o resample2.o dsputil.o motion_est.o imgconvert.o imgresample.o mpeg12.o mpegaudiodec.o pcm.o simple_idct.o ratecontrol.o adpcm.o eval.o error_resilience.o fft.o mdct.o raw.o golomb.o cabac.o dpcm.o adx.o faandct.o parser.o g726.o vp3dsp.o h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o opt.o aasc.o alac.o asv1.o cinepak.o cook.o cljr.o cyuv.o dvbsubdec.o dvbsub.o dvdsub.o dvdsubenc.o dv.o 8bps.o ffv1.o flac.o flicvideo.o 4xm.o fraps.o h261.o h264.o huffyuv.o idcinvideo.o indeo2.o indeo3.o interplayvideo.o lcl.o loco.o mace.o msrle.o msvideo1.o png.o qdm2.o qdrw.o qpeg.o qtrle.o ra144.o ra288.o roqvideo.o rpza.o rv10.o shorten.o smc.o snow.o sonic.o svq1.o truemotion1.o truemotion2.o tscc.o ulti.o vc9.o vcr1.o vmdav.o vorbis.o vp3.o vqavideo.o wmadec.o wnv1.o ws-snd1.o xan.o xl.o bmp.o pthread.o w32thread.o mp3lameaudio.o i386/fdct_mmx.o i386/cputest.o i386/dsputil_mmx.o i386/mpegvideo_mmx.o i386/idct_mmx.o i386/motion_est_mmx.o i386/simple_idct_mmx.o i386/fft_sse.o i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o -lm -lmp3lame -lpthread -L../libavutil -lavutil
w32thread.o(.text+0x70): In function `avcodec_thread_free':
C:/msys/1.0/home/Fazdliana/ffmpeg-cvs-2005-12-16/libavcodec/w32thread.c:61: multiple definition of `avcodec_thread_free'
pthread.o(.text+0x100):C:/msys/1.0/home/Fazdliana/ffmpeg-cvs-2005-12-16/libavcodec/pthread.c:84: first defined here
w32thread.o(.text+0x160): In function `avcodec_thread_execute':
C:/msys/1.0/home/Fazdliana/ffmpeg-cvs-2005-12-16/libavcodec/w32thread.c:77: multiple definition of `avcodec_thread_execute'
pthread.o(.text+0x1c0):C:/msys/1.0/home/Fazdliana/ffmpeg-cvs-2005-12-16/libavcodec/pthread.c:104: first defined here
w32thread.o(.text+0x250): In function `avcodec_thread_init':
C:/msys/1.0/home/Fazdliana/ffmpeg-cvs-2005-12-16/libavcodec/w32thread.c:102: multiple definition of `avcodec_thread_init'
pthread.o(.text+0x260):C:/msys/1.0/home/Fazdliana/ffmpeg-cvs-2005-12-16/libavcodec/pthread.c:132: first defined here
collect2: ld returned 1 exit status
make[1]: *** [avcodec.dll] Error 1
make[1]: Leaving directory `/home/Fazdliana/ffmpeg-cvs-2005-12-16/libavcodec'
make: *** [lib] Error 2
Is there any bug which cause the problem?
My mingw32 is on Windows platform with Minimal System (MSYS).
I was able to compile it when i edit config.mak and edit HAVE_W32THREADS=no
Thanks.
_____________________________________
Ahmad Zaidee Abu
Senior Assistant Reseacher
Dip., Bach. Eng. (Tele), MIEEE.
Multimedia Communication Unit
Telekom Research & Development
UPM-MTDC Inc. Center One
Serdang, Selangor
Tel: +603 89441862
Fax: +603 89441822
The information contained in this Internet message is confidential
and intended only for the use of the individual or entity
identified. If the reader of this message is not the intended
recipient, any dissemination, distribution or copying of the
information contained in this Internet message is strictly
prohibited. If you received this message in error, please notify
the sender immediately.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 6116 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20051216/80f65cc5/attachment.bin>
More information about the ffmpeg-devel
mailing list