[SDL] MinGW developement libraries of SDL_ttf 2.0?

Eric Lilja mindcooler at gmail.com
Sun Nov 12 13:14:17 PST 2006


Torsten Giebl skrev:
> Hello !
> 
> 
>> No, just cygwin I'm afraid.
> 
> 
> With cygwin it is even easier. Try it.

Easy? Not really, I can't even make it pass the configure stage.
First I simply tried:
$ ./configure
Then it couldn't find sdl-config
There is no such thing in the mingw-developement libraries of SDL but 
there is i386-mingw32msvc-sdl-config* in the bin-directory. So I created 
a symbolic link and told configure where to find it:
$ ./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11
Now I got past that, but the next error was:
Error: SDL.h: No such file or directory
So, I told configure where the SDL includes are:
./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11 CFLAGS='-I 
/home/hivemind/SDL-1.2.11/include/'
Now it wanted to link it with -lmingw32 -lSDLmain -lSDL  -mwindows but 
couldn't find them. I edited sdl-config and removed lmingw32 (I don't 
have it) and -mwindows (shouldn't be needed right?) and told configure 
where the libraries are:
./configure --with-sdl-prefix=/home/hivemind/SDL-1.2.11 CFLAGS='-I 
/home/hivemind/SDL-1.2.11/include/' LDFLAGS='-L 
/home/hivemind/SDL-1.2.11/lib'
Now the error was: 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):(.text+0xab): 
undefined reference to `_WinMain at 16'

Please help!

/ E





More information about the SDL mailing list