SDL on Cygwin

Reini Urban rurban@x-ray.at
Mon Oct 25 15:20:00 GMT 2004


Yaakov Selkowitz schrieb:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> OK, I know we've been through this before, but there's now a new version
> of SDL (1.2.7), with a new development:  it builds OOTB on Cygwin, all I
> had to do was reautotool.
> 
> There are problems however:
> 
> 1) when building on Cygwin, the default is to call -mno-cygwin.  This of
> course will make it difficult to build other libraries, e.g. SDL_image
> which wants other (cygwin-dependent) libraries like libjpeg, etc.
> 
> 2) by default a /usr/lib/libSDLmain.a is built, and sdl-config spits out
> - -Dmain=SDLmain and -lSDLmain, but this is only a static library.  This
> makes it impossible to build a shared library which is dependent on libSDL.
> 
> Ideas, anyone?

http://www.libsdl.org/extras/win32/cygwin/
http://www.libsdl.org/pipermail/sdl/2002-February/042594.html
(but this is outdated. relies on pexports. our method from the FAQ will 
work better)

I'll try to make a package out of it.
   I didn't get it to work with the MS DX90SDK, because this conflicts
   with our w32api - with mingw it works fine.
But with the directx-devel package it works fine.
Just autoreconf and removing the mingw lines from configure.in
cd ${srcdir}
     ./autogen.sh
     automake -c -a
     libtoolize -c -f
LDFLAGS="-Wl,--enable-runtime-pseudo-reloc"

I'll try to put my main.c and SDL_Image fixes into a package and ITP it 
then. Fixed to build in .build

Problems with this version:
libtool still wants to create an exe instead of the cygSDL.dll but I had 
that before. (need to build png and jpeg stubs probably)
With my bash debugger I can easily fix that now.
But everything else builds just fine.
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SDL-1.2.7-dev.patch
URL: <http://cygwin.com/pipermail/cygwin/attachments/20041025/c61e1524/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list