[MPlayer-cygwin] Build problems

Sascha Sommer saschasommer at freenet.de
Mon Sep 13 15:38:29 CEST 2004


On Thursday 09 September 2004 19:05, Alex Birkett wrote:
> I am having some problems building mplayer against cygwin. The same
> problem occurs if I build the latest sources from the CVS or the
> MPlayer-1.0pre5 release. Here is the output from make:
>
> cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=pentium3
> -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI
> TS=64 -D__CYGWIN__  -Ilibmpdemux -Iloader -Ilibvo
> -I/usr/include/freetype2    -I/usr/X11R6/include       -o mplayer.exe
> mplayer.o mp_msg.o cpudetect.o codec-cfg
> .o spudec.o playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o
> sub_cc.o find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o
> unrarlib.o mixer.o pa
> rser-mpcmd.o osdep/mplayer-rc.o libvo/libvo.a libao2/libao2.a
> vidix/libvidix.a  libmpcodecs/libmpcodecs.a mp3lib/libMP3.a
> liba52/liba52.a libmpeg2/libmpeg2.a
> libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a
> postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit
> libavcodec/libavcodec.a          -lpng
> -lz -lz -ljpeg     -lfreetype -lz -ltermcap   -lwinmm  -lungif
> -lfontconfig    libfaad2/libfaad2.a    -lGL      -L/usr/X11R6/lib -lXext
> -lX11           -L/us
> r/lib -lesd -laudiofile -lm        -liconv -lintl -lm
> libvo/libvo.a(vo_winvidix.o)(.text+0x82):vo_winvidix.c: undefined
> reference to `_GetDeviceCaps at 8'
> libvo/libvo.a(vo_winvidix.o)(.text+0x281):vo_winvidix.c: undefined
> reference to `_CreateSolidBrush at 4'
> libvo/libvo.a(vo_winvidix.o)(.text+0x31d):vo_winvidix.c: undefined
> reference to `_CreateSolidBrush at 4'
> collect2: ld returned 1 exit status
> make: *** [mplayer.exe] Error 1
>
> The functions CreateSolidBrush and GetDeviceCaps are implemented in
> libgdi32.a but I am not sure how to make mplayer link against it.
>
> Has anyone seen this before? Any ideas?
>

It is caused by the fact, that you don't have the directx headers installed.
In this case -lgdi32 does not get added to the ld flags.
This is a bug in the configure script, but I recommend you to install
the directx headers, nevertheless. As directx gives the best performance on
windows most of the time. You can download them from 
http://www.mplayerhq.hu/MPlayer/releases/win32-beta/contrib/dx7headers.tgz

Sascha




More information about the MPlayer-cygwin mailing list