[MPlayer-cygwin] ffmpeg link error

Wright Wang wright.Wang at utstar.com
Mon Apr 21 10:43:22 CEST 2008


I downloaded the latest ffmpeg and try to build it in Cygwin by using
mingw32ce. But I met a link error in the end:

 

arm-wince-mingw32ce-gcc -shared -Wl,-soname,libavcodec.so.51
-L"/usr/src/ffmpeg"/libavutil -Wl,--warn-common
-Wl,-rpath-link,"/usr/src/ffmpeg"/libavcodec
-Wl,-rpath-link,"/usr/src/ffmpeg"/libavformat
-Wl,-rpath-link,"/usr/src/ffmpeg"/libavutil -Wl,-Bsymbolic -o
libavcodec/libavcodec.so.51 libavcodec/allcodecs.o
libavcodec/audioconvert.o libavcodec/bitstream.o
libavcodec/bitstream_filter.o libavcodec/dsputil.o libavcodec/eval.o
libavcodec/faanidct.o libavcodec/imgconvert.o libavcodec/jrevdct.o
libavcodec/opt.o libavcodec/parser.o libavcodec/raw.o
libavcodec/resample.o libavcodec/resample2.o libavcodec/simple_idct.o
libavcodec/utils.o libavcodec/imgresample.o libavcodec/h263dec.o
libavcodec/h263.o libavcodec/mpeg12data.o libavcodec/mpegvideo.o
libavcodec/error_resilience.o libavcodec/h263_parser.o libavcodec/h264.o
libavcodec/h264idct.o libavcodec/h264pred.o libavcodec/h264_parser.o
libavcodec/cabac.o libavcodec/golomb.o libavcodec/mpeg4video_parser.o
libavcodec/armv4l/dsputil_arm.o libavcodec/armv4l/mpegvideo_arm.o
libavcodec/armv4l/jrevdct_arm.o libavcodec/armv4l/simple_idct_arm.o
libavcodec/armv4l/dsputil_arm_s.o libavutil/libavutil.so -lavutil -lm

libavutil/libavutil.so: In function `DllMainCRTStartup':

/home/pedro/cegcc/0.51/src/mingw/dllcrt1.c:60: multiple definition of
`DllMainCRTStartup'

/usr/mingw32ce/bin/../lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-
wince-mingw32ce/lib/dllcrt3.o:/home/pedro/cegcc/0.51/src/mingw/dllcrt1.c
:60: first defined here

/usr/mingw32ce/bin/../lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-
wince-mingw32ce/bin/ld: cannot find -lavutil

collect2: ld returned 1 exit status

make: *** [libavcodec/libavcodec.so.51] Error 1

 

Could any experts tell me how to resolve it? Thanks.




More information about the MPlayer-cygwin mailing list