[SDL] SDL in cygwin fails to ./configure

Forest Hale havoc at ghdigital.com
Tue Sep 13 20:31:08 PDT 2011


On 09/11/2011 11:19 AM, David Demelier wrote:
> But I think you needed to install SDL twice isn't it ? One for the linux host and one cross compiled for mingw cross-compile tools right?
>
> Cheers,

You may be thinking about this incorrectly - when doing a cross-compile you must make sure that the appropriately crafted cross-compile scripts are used for everything, for example I had to build SDL 
in the cross-compile target and then copy sdl-config to i686-w64-mingw32-sdl-config in the appropriate bin directory and use SDL_CONFIG=i686-w64-mingw32-sdl-config when configuring/making stuff to 
make it use the right one.

You do not want a conflict between sdl-config on the host and the target, it won't work (they use different CFLAGS and LIBS and such, which is the whole point).

-- 
LordHavoc
Author of DarkPlaces Quake1 engine - http://icculus.org/twilight/darkplaces
Co-designer of Nexuiz - http://alientrap.org/nexuiz
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass
"A game is a series of interesting choices." - Sid Meier




More information about the SDL mailing list