Tuxmath colleagues,
I've worked on getting the Windows crossbuild set up on my own Debian machine,
as well as putting the needed scripts into subversion so others can do this
as well. There are still some rough edges, but I am now able to generate an
executable win32 installer from source.
Main changes/additions:
1. cross-configure.sh and cross-make.sh (from Yves Combe) added to svn.
2. configure.in hacked a little to get SDLmain and mingw32 linked in when
building for Windows.
3. Corrected a couple of typos I had introduced in Makefile.am
4. Corrected Windows Start menu items that said "Tuxpaint" instead
of "Tuxmath".
5. Updated docs, particularly with addition of crossbuild directions in
docs/INSTALL.txt.
To build and install for Linux:
./autogen.sh
./configure
make
make install
To build Windows installer:
- need to have build environment set up:
apt-get install mingw32 nsis
/usr/local/cross-tools/i586-mingw32msvc/lib containing all SDL libs,
libs needed by SDL_image (jpeg, png, etc.) and libgw32c.a
/usr/local/cross-tools/i586-mingw32msvc/include containing all SDL *.h
~/tuxmath_dll containing all dll to be packaged with windows executable
(SDL.dll, SDL_image.dll, SDL_mixer.dll, jpeg.dll, ogg.dll,
vorbisfile.dll, libpng12.dll, smpeg.dll, zlib1.dll, libtiff.dll, vorbis.dll)
If all is set up you can run:
./autogen.sh
./cross-configure.sh --with-sdl-prefix
./cross-make.sh
cp src/tuxmath.exe mingw32/tuxmath.exe
./cross-make.sh nsis
This should create tuxmath-0.98-win32-installer.exe in trunk
--
David Bruce
|