Hello folks!
I just subscribed to this mailing list because I would
like to use SDL in Win32 and I’m having trouble
getting it to work.
I downloaded an installed the Native Win32 EGCS
compiler Mingw32 and it seems to work.
Then I got GNUmake on Win32 and that seems
to work too. (I have renamed the make command
to gmake if that is relevant…)
I also downloaded SDL-0.9.9 binary for Win32
(It’s called Win32 (GCC) on your download page,
filename: SDL-0_9_9-win32.tar.gz)
I don’t know if this is the right file. I would like my
application to run using native Windows (i.e. not
DirectX or similar).
I noticed that all libraries are called .a and I’m not
sure if this will work on Win.
I can’t get any of the demos to work. When compiling
the water-demo I get this error:
cc -I…/…/SDL-0.9.9/include -c water.c -o water.o
process_begin: CreateProcess((null), cc
-I…/…/SDL-0.9.9/include -c water.c -o water.o, …) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [water.o] Error 2
I think it looks strange that there’s a cc command as an argument
to a CreateProcess function…
I also tried to hack up a small makefile which looks like this:
SDL := …/…/…/SDL-0.9.9
MING := …/…/…/Mingw32
SDLINCLUDE := -I$(SDL)/include
SDLLIB := -L$(SDL)/lib
MINGLIB := -L$(MING)/i386-mingw32/lib
SDLLIB := $(SDLLIB) $(MINGLIB) -lmingw32 -lSDL
OPTIMIZE = -O2 -funroll-loops -fomit-frame-pointer -ffast-math
test:
gcc -o test test.cpp $(SDLLIB) $(SDLINCLUDE) $(OPTIMIZE)
And the file test.cpp just looks like this:
#include <stdio.h>
#include <SDL.h>
int main()
{
puts(“Hello World!”);
exit(1);
}
When executing gmake I get this error:
gcc -o test test.cpp -L…/…/…/SDL-0.9.9/lib
-L…/…/…/Mingw32/i386-mingw32/lib
-lmingw32 -lSDL -I…/…/…/SDL-0.9.9/include -O2 -funroll-loops
-fomit-frame-pointer -ffast-math
libSDL.a(winmain.o) : error LNK2001: unresolved external symbol
___imp__iob
libSDL.a(load.o) : error LNK2001: unresolved external symbol ___imp__iob
libSDL.a(winmain.o) : error LNK2001: unresolved external symbol
_RunMain__FiPPc
test.exe : fatal error LNK1120: 2 unresolved externals
gcc: Internal compiler error: program ld got fatal signal 127
gmake: *** [test] Error 1
Can you tell me which trivial thing I forgot to do? :)—
Why I choose SDL and some practical stuff…
I am most likely going to do a very small commercial
game project. I would like to use SDL because:
- The game must run on Win32 and I don’t like to
be limited to one OS (certainly not an MS one) - I prefer
portable applications… - I would like to avoid buying commercial development tools.
- I would like to use something I am familiar with already
because of a tight deadline. (here I mean the GCC/EGCS
compiler)
However I would like to see SDL work and run before I
commit to using it.
On a more practical note - if I’m going to release this game
commercially it must fit on a single floppy disk - including
graphics etc. So I don’t think there’s room for the
SDL source-code on the disk. Since it’s under LGPL
and LGPL says that the source-code should be as
easily accessible as the binary files, I would like to
know if you think it’s acceptable if I put a textfile
on the floppy disk telling that the game has been developed
using SDL and including a link to your web-page.
Thanks in advance for any help!
Cheers
?NOQ of the Sun / Johnny Andersen
Hardcore Processing
val it = ("?NOQ of the Sun", “Johnny Andersen”,
[“anoq at vip.cybercity.dk”, “anoq at berlin-consortium.org”,
“anoq at diku.dk”], “http://users.cybercity.dk/~ccc25861/”)
: cyberspacename * meatspacename * email list * homepage URL