Well, I finally got my game cross-compiled and running on a windoze box.
[Ugh… it was quite a learning process too…]
I’ve created the following DLL’s using the mingw32 cross-compiler under
linux(x86): (yes, the ones that I happened to need)
imglib.dll (imglib, soon to be named libSDLimg)
png.dll (png 1.0.3)
sdlnet.dll (libSDLnet)
sdlttf.dll (ttflib, soon to be named libSDLttf)
ttf.dll (freetype 1.2)
z.dll (zlib 1.1.3)
Here is the URL:
http://www.slothmud.org/~hayward/SDL
dlls_and_defs.tgz
[ This file also includes the def’s I created by hand for each package,
[ This is used when creating a dll under mingw32. I found a great page
[ that describes creating dll’s:
[ http://www.geocities.com/Tokyo/Towers/6162/win32/dll/make.html
mingw32_libs.tgz
[ (put them in /usr/local/cross-tools/i386-mingw32/lib)
[ This file includes the “.a” files for the following libs:
[ zlib 1.1.3, libSDLttf, libSDLnet, libSDLimg, libpng 1.0.3
mingw32_includes.tgz
[ (put them in /usr/local/cross-tools/i386-mingw32/include)
[ This file has the header files for the following libs:
[ zlib 1.1.3, libSDLttf, libSDLnet, libSDLimg, libpng 1.0.3
mingw32_freetype.tgz
[ untar this to: /usr/local/cross-tools/i386-mingw32
[ For linking: -L/usr/local/cross-tools/i386-mingw32/freetype/lib
[ For compiling: -I/usr/local/cross-tools/i386-mingw32/freetype/include
good luck!
I’m working on a cross-compiling FAQ as well. Thats enough for tonight,
I’m tired… :)–
Brian
P.S. Sam, feel free to mirror these on your site, or put a link up on
your mingw32 page.