Make win32 fails?

Hey Sam, I’m using SDL 0.9.9 and trying to use Xmingw32 to cross compile
my latest project over to Win32 to see how it works.

I’ve cleaned out the Linux/Unix-specific code out (“gettimeofday()”, just
as I predicted :slight_smile: ) and got CygWin to compile the C source.

When it tries to link, however, it complains about a lot of SDL_xxx functions
missing. Of course, this is because I don’t have Win32 versions of these
objects.

In at least two documents, you state:

make win32 ; make

Well, when >I< try to “make win32” in my SDL directory, I get:

5/home/kendrick/SDL>make win32
make: *** No rule to make target win32'. Stop. 6/home/kendrick/SDL>make Win32 make: *** No rule to make targetWin32’. Stop.
7/home/kendrick/SDL>

I even did a “find . -name [Mm]akefile -exec grep -l win32 {} ;” and
came up with nothing containing a “win32” rule.

Any ideas? Thanks!

-bill!

make win32 ; make

Well, when >I< try to “make win32” in my SDL directory, I get:

5/home/kendrick/SDL>make win32
make: *** No rule to make target `win32’. Stop.

You need to do ‘make spotless’ unless it’s a freshly unpacked source tree.

The win32 code is currently broken. I’m working on it now and should have
it back up to snuff in a few days. :slight_smile:

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

make win32 ; make

Well, when >I< try to “make win32” in my SDL directory, I get:

5/home/kendrick/SDL>make win32
make: *** No rule to make target `win32’. Stop.

You need to do ‘make spotless’ unless it’s a freshly unpacked source tree.

Hey! That dood it. :slight_smile:

The win32 code is currently broken. I’m working on it now and should have
it back up to snuff in a few days. :slight_smile:

I’m using 0.9.9… I’ll see if that dies or not. If so, I’ll just wait
for the next release.

Thanks!

-bill!

Sam said:

The win32 code is currently broken. I’m working on it now and should have
it back up to snuff in a few days. :slight_smile:

Ok, I’ve compiled SDL for Win32, and recompiled “mixer” for Win32 and
copied “libmixer.a” over to where my Win32 SDL objects are.

Now I get this… is this what you mean by broken? Or is this something
I can fix?

36/home/kendrick/warlords2000>make
cc -I/usr/local/include -O2 -Wall -o warlords2000
warlords2000.o readGIF.o
-L/home/kendrick/SDL/lib -lmixer -lSDL -lm
/usr/win32/bin/…/lib/gcc-lib/i586-mingw32/egcs-2.91.57/…/…/…/…/i586-mingw32/lib/libmingw32.a(main.o)(.text+0x7b): undefined reference to `WinMain at 16’
collect2: ld returned 1 exit status
make: *** [warlords2000] Error 1

Thanks!

-bill!

I said:

36/home/kendrick/warlords2000>make
cc -I/usr/local/include -O2 -Wall -o warlords2000
warlords2000.o readGIF.o
-L/home/kendrick/SDL/lib -lmixer -lSDL -lm
/usr/win32/bin/…/lib/gcc-lib/i586-mingw32/egcs-2.91.57/…/…/…/…/i586-mingw32/lib/libmingw32.a(main.o)(.text+0x7b): undefined reference to `WinMain at 16’
collect2: ld returned 1 exit status
make: *** [warlords2000] Error 1

Eep! Nevermind! I just added “-lmingw32” and “-mwindows” to my lib. stuff
and it compiled. Now to try running the thing! :slight_smile:

-bill!

I’m just not shutting up here…

Eep! Nevermind! I just added “-lmingw32” and “-mwindows” to my lib. stuff
and it compiled. Now to try running the thing! :slight_smile:

Well, it runs… it dies, but it runs. It loads a number of the game’s
bitmaps (GIF’s) but then dies in the middle with stdout.txt (empty) and
stderr.txt (“gfx/paddle2_1.gif”, which I assume was what it was trying to
load at the time it died).

I was in Win95 with 16bpp using SDL 0.9.9. I tried copying one of the other
bitmaps (one which DID load) and using it instead of the file in question,
but it didn’t help.

Is this what you mean by “doesn’t work right w/ Win32?” :wink:

Thx!

-bill!
(I’m done e-mailing for today… I promise)