[MPlayer-cygwin] [PATCH] 1st real attempt at fixing that SDL config.mak issue

Diego Biurrun diego at biurrun.de
Thu Nov 14 21:50:10 CET 2002


Sycotic Smith writes:
 > > > +    _ld_sdl=`$_sdlconfig --libs | cut -d " " -f 1,4,6 | sed 
 > > > s/no-cygwin/cygwin/`
 > > > +    _inc_sdl=`$_sdlconfig --cflags | cut -d " " -f 2,6,7 | sed 
 > > > s/no-cygwin/cygwin/`
 > 
 > These numbers give the right fields from the output for my system.
 > 
 > > OK, how about this, does it work for you guys?
 > > 
 > > --- configure   12 Nov 2002 01:56:21 -0000      1.603
 > > +++ configure   13 Nov 2002 23:39:03 -0000
 > > @@ -2869,8 +2873,13 @@
 > >   fi
 > >   if test "$_sdl" = yes ; then
 > >     _def_sdl='#define HAVE_SDL 1'
 > > -  _ld_sdl=`$_sdlconfig --libs`
 > > -  _inc_sdl=`$_sdlconfig --cflags`
 > > +  if cygwin ; then
 > > +    _ld_sdl=`$_sdlconfig --libs | cut -d " " -f 1,4,6 | sed 
 > > s/no-cygwin/cygwin/`
 > > +    _inc_sdl=`$_sdlconfig --cflags | cut -d " " -f 1,5,6 | sed 
 > > s/no-cygwin/cygwin/`
 > > +  else
 > > +    _ld_sdl=`$_sdlconfig --libs`
 > > +    _inc_sdl=`$_sdlconfig --cflags`
 > > +  fi
 > >     _vosrc="$_vosrc vo_sdl.c"
 > >     _vomodules="sdl $_vomodules"
 > >     _aosrc="$_aosrc ao_sdl.c"
 > 
 > This doesn't work for me.  When you installed your SDL, did you use
 > prefix=/usr/ or none at all?

None at all.  I grabbed libsdl1.2.5.tar.gz for Linux, installed nasm
and directx-devel headers as advised on libsdl.org and then did

./configure
make
make install

 > Default location seems to be /usr/local/ which is where mine sits.
 > When I use your numbers from above, it gives the wrong fields from
 > the output.  I think this will be the dilema we run into for this
 > issue... "Which is correct?" "This one works for me," and "That one
 > breaks my build," seem to be responses from us all.  Anyone else
 > out there able to shed some light on the situation?  I do
 > understand nothing will be commited from this thread until this can
 > be resolved.

OK, then let's compare our sdl installations, which versions did you
install, any special parameters?

Diego



More information about the MPlayer-cygwin mailing list