From: David B. <dav...@gm...> - 2010-10-31 21:33:27
|
Hi Brendan et al, I've gotten most all the issues worked out to create the win32 crossbuild of the current tuxmath that uses t4k_common. It would be helpful if a few folks could test out the process and see how it works, as well as testing the result win32 build. 1. I've posted a couple of t4k_common tarballs on our alioth site, the latest being 0.0.3. There were a few things that created errors with static linking that were not problems when t4k_common was used as a shared library. Mainly, there were still some duplicated variables in tuxmath and t4k_common, plus the pkg-config file for t4k_common needed more detailed info about dependencies. 2. I've written a basic t4k_common.mk file for use in mingw-cross-env. This file has been added to both the tuxmath and t4k_common repos. To build t4k_common as part of mingw-cross-env, we just place a copy of this file in e.g. /opt/mingw-cross-env/src, then go to the main mingw-cross-env dir (e.g. /opt/mingw-cross-env) and run "make t4k_common", which should build t4k_common and all dependencies. 3. In the tuxmath repo, there is a buildw32 directory that has some scripts that can be used to do the build. To set up the mingw-cross-env installation, just run "./setup_ming-cross-env.sh". You may want to edit $MINGW_DIR in the script to the location of your choice. The script basically does everything in #2 above. After that, you can run "./tmwin.sh" which should cross-build tuxmath and create an executable installer. (At the moment, there is an unrelated error from a missing "el.po" file that I didn't get pushed yet. That should be fixed as soon as I get home). If interested, I would recommend looking at the individual commands in the scripts to get a better feel for what is going on. The resulting build appears to work fine, including SDL_Pango (a first for us on Windows), but there is one serious bug in the form of a deadlock that appears if the player makes the "Hall of Fame". I haven't tested network play on Windows yet, but it is supposed to be supported. Regards, David |