 HOWTO: Cross-Compile Gnaural for Win32 from Debian
To cross compile Gnaural on Debian, follow these steps:

    * Remove automake1.4 if you have it (that is currently Debian's default automake, but you'll need newer):

 apt-get remove automake1.4

    * Get the standard packages required to compile gnaural:

 apt-get install autoconf autotools-dev automake1.9 libgtk2.0-dev libportaudio0

    * Get the MinGW32 cross-compiler tools:

 apt-get install mingw32 mingw32-binutils mingw32-runtime

    * Get Tor Lillqvist's GTK+ Win32 development libs -- download everything with "-dev" in the name from here: 

 http://www.gimp.org/~tml/gimp/win32/downloads.html

    * Unzip all of Tor's GTK+ dev-libs in to a folder called "lib_gtkwin32"

    * Download and unzip Gnaural's tarball, version gnaural-0.2.20051127 or later. Using gnaural-0.2.20051127.tar.gz for this example, type:

tar -xzf gnaural-0.2.20051127.tar.gz

    * cd to the src directory and edit the file src/Makefile.am to point the variable "mingwdir" to the lib_gtkwin32 folder you created. After your edit, it should look something like this:

   mingwdir = ../../../../lib_gtkwin32

    * In project root directory, type:

  ./autogen.sh --host=i586-mingw32msvc --target=i586-mingw32msvc --build=`./config.guess`

    * And finally, type:

 make

    * If all went well, you now have a Win32 executable named "gnaural.exe" in your src directory. You will probably want to strip it:

i586-mingw32msvc-strip src/gnaural.exe

    * Then to test it:

 wine src/gnaural.exe -d 


NOTE: to do the last step (testing the executable), you will also need to have WINE installed, and also (installed via WINE) the standard Win32 GTK+ runtime libs. To get WINE:

 http://winehq.org/

To get the Win32 GTK+ runtime libs:

 http://prdownloads.sourceforge.net/gaim/gtk-runtime-2.6.9-rev-a.exe?download



Special thanks to Tor Lillqvist and the other developers responsible for porting GTK+ to Windows, to the developers of MinGW for making cross-compiling Win32 executables from within Linux easy, to the developers of Glade, and also to Allin Cottrell for writing the helpful document "Building GTK apps for MS Windows on Linux", found here:

 http://ricardo.ecn.wfu.edu/~cottrell/cross-gtk/


Creation date: 2005-12-04 15:46 Update date: 2005-12-08 23:15 
