[MPlayer-cygwin] Not sure what's causing this..MinGW Compilation problems.

Corey Hickey bugfood-ml at fatooh.org
Thu Mar 23 07:59:42 CET 2006


Marc Schulz wrote:
> I'm attempting to compile mencoder. I have downloaded all the necessary 
> files from cvs. I also downloaded the libavcodec stuff and moved the 3 
> folders into the right dir. I use the following configure file 
> unsuccessfully:
> 
> ./configure                        \
>     --prefix=/usr                  \
>     --language=all                 \
>     --disable-win32                \
>     --disable-gui                  \
>     --disable-png                  \
>     --disable-real                 \
>     --disable-qtx                  \
>     --disable-jpeg                 \
>     --disable-gif                  \
>     --disable-tga                  \
>     --disable-mad                  \
>     --disable-freetype             \
>     --disable-sdl                  \
>     --disable-menu                 \
>     --disable-directx              \
>     --disable-gl                   \
>     --disable-win32waveout         \
>     --disable-ftp                  \
>     --disable-network              \
>     --disable-winsock2             \
>     --disable-liblzo               \
>     --disable-tv                   \
>     --disable-dvb                  \
>     --disable-vidix                \
>     --disable-pthreads             \
>     --disable-edl                  \
>     --disable-internal-matroska    \
>     --disable-mpdvdkit             \
>     --disable-internal-faad        \
>     --disable-faac                 \
>     --disable-libmpeg2             \
>     --disable-libdts               \
>     --disable-liba52               \
>     --disable-mp3lib               \
>     --disable-theora               \
>     --disable-speex                \
>     --disable-internal-tremor      \
>     --disable-twolame              \
>     --disable-md5sum               \
>     --disable-pnm                  \
>     --disable-x264                 \
>     --disable-vorbis               \
>     --enable-largefiles            \
>     --enable-runtime-cpudetection  \
>     --enable-static="-mconsole -lwinmm"
> 
> It produces the following error:
> 
> c:\MinGW\bin\ar.exe: creating libaf.a
> ranlib libaf.a
> make[1]: Leaving directory `/home/ChronoCross/main/libaf'
> windres -o osdep/mplayer-rc.o osdep/mplayer.rc
> gcc -I../libvo -I../../libvo  -fno-PIC -O4 -march=i486 -mtune=i686 -pipe 
> -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64  -I.            -I./libavutil -I./libavcodec   -o 
> mplayer.exe mplayer.o m_property.o mp_msg.o asxparser.o codec-cfg.o 
> cpudetect.o edl.o find_sub.o m_config.o m_option.o m_struct.o 
> parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o 
> vobsub.o  unrarlib.o mixer.o parser-mpcmd.o subopt-helper.o  
> osdep/mplayer-rc.o libvo/libvo.a libao2/libao2.a    
> libmpcodecs/libmpcodecs.a   libaf/libaf.a libmpdemux/libmpdemux.a 
> input/libinput.a postproc/libswscale.a osdep/libosdep.a  
> libavcodec/libavcodec.a  libavformat/libavformat.a  
> libavutil/libavutil.a  libavcodec/libpostproc/libpostproc.a       
> -lmp3lame  -lxvidcore   -static -mconsole -lwinmm 
> -lz                     -static -mconsole -lwinmm                        
> -static -mconsole -lwinmm -liconv  -lm 
> libavcodec/libavcodec.a(xvid_rc.o):xvid_rc.c:(.text+0x1e): undefined 
> reference to `mkstemp'
> libavcodec/libavcodec.a(xvid_rc.o):xvid_rc.c:(.text+0x284): undefined 
> reference to `mkstemp'
> make: *** [mplayer.exe] Error 1
> 
> Only compiling xvid and libavcodec.
> 
> Doesn't work when just using ./compile with no params. Thanks in advance.

Please test the attached libavcodec patch. For reference, I wrote it for 
this thread:

http://www1.mplayerhq.hu/pipermail/mplayer-users/2006-March/059088.html

-Corey
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: av_tempfile3.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cygwin/attachments/20060322/a5b0edba/attachment.txt>


More information about the MPlayer-cygwin mailing list