[Tux4kids-commits] r1637 - tuxmath/people/dbruce

David Bruce dbruce-guest at alioth.debian.org
Sat Nov 7 22:46:24 UTC 2009


Author: dbruce-guest
Date: 2009-11-07 22:46:24 +0000 (Sat, 07 Nov 2009)
New Revision: 1637

Modified:
   tuxmath/people/dbruce/Crossbuild_notes
Log:
work on crossbuild notes

Modified: tuxmath/people/dbruce/Crossbuild_notes
===================================================================
--- tuxmath/people/dbruce/Crossbuild_notes	2009-11-07 17:07:21 UTC (rev 1636)
+++ tuxmath/people/dbruce/Crossbuild_notes	2009-11-07 22:46:24 UTC (rev 1637)
@@ -18,6 +18,8 @@
 
 The script is interactive and easy-to-follow. You should enable C++ support because at least one dependent lib needs it.
 
+Basically, the script uses the host system's compiler to build the cross-compiler from source.
+
 The build system can go in a location of your choosing.  I used /usr/local/mingw32.  This required suitable adjustment of my system's file permissions to give my ordinary account privileges to write there.
 
 2. Adjust cross-configure.sh and cross-make.sh scripts to have correct prefix and host processor architecture (TODO - provide link)
@@ -27,3 +29,35 @@
   - unpack.
   - copy cross-configure.sh and cross-make.sh into source directory.
   - ./cross-configure.sh; ./cross-make.sh; ./cross-make.sh install
+
+4. Install SDL_image and its dependencies (zlib, libpng, libjpeg, and libtiff)
+
+  - zlib: -----------------------------------------------
+
+  - get zlib from http://www.zlib.net.  As of this writing, the most current version is zlib-1.2.3
+  - our cross-configure.sh and cross-make.sh scripts don't work because the configure script doesn't accept cross-compile options
+  - http://tinc-vpn.org/examples/cross-compiling-windows-binary/ had some useful info on cross-compiling zlib.
+  - mainly, we use the following script which sets environmental variables to use the cross-compiler:
+
+  (put this into a script called e.g. "mingw"- remember to make it executable)
+  #!/bin/sh
+  export CC=i586-pc-mingw32-gcc
+  export CXX=i586-pc-mingw32-g++
+  export CPP=i586-pc-mingw32-cpp
+  export RANLIB=i586-pc-mingw32-ranlib
+  export PATH="/usr/i586-pc-mingw32/bin:$PATH"
+  exec "$@"
+  EOF
+
+  - then build with "mingw make" from within the zlib source directory.
+  - (note that "mingw ./configure" failed due to not detecting mmap, but "mingw make" succeeded)
+  - "make mingw install" works but puts things under /usr/local rather than /usr/local/mingw32 - I fixed it by hand.
+
+  - libpng: ---------------------------------------------------------------------
+
+  - get libpng from http://www.libpng.org - current version is 1.2.40.
+  - unpack.
+  - copy cross-configure.sh and cross-make.sh into source directory.
+  - ./cross-configure.sh; ./cross-make.sh; ./cross-make.sh install
+  - the "make" step generated a warning about zlib not having been built as a shared lib - will have to see if this
+    is a problem.




More information about the Tux4kids-commits mailing list