Building the sources using Jhbuild
First, follow the instructions to install Jhbuild. Then download the archive jhbuild.mingw.gtk-2.16.tgz and extract it to a directory of your choice.
tar xzf jhbuild.mingw.gtk-2.16.tgz
You will get a new subdirectory jhbuild.mingw.gtk-2.16. Make this directory your working directory
cd jhbuild.mingw.gtk-2.16
and call
./cross-build-gtk-dbg
to build a debug version or
./cross-build-gtk-rls
to build a release version of GTK+. These are simple shell scripts which call jhbuild with a suitable jhbuildrc file. Any arguments will be passed to jhbuild.
The dowloads and builds will be done in the subdirectory checkout.dbg or checkout.rls depending on the shell script called. The resulting files for installation will be placed in target.dbg or target.rls, respectively.
After successfull completion of the build process you can copy the target directory to your windows system. Before you can use the cross compiled GTK+ you have to do one additional step on the target platform. So boot your windows box, change to the target directory and type
bin\gdk-pixbuf-query-loaders.exe > etc\gtk-2.0\gdk-pixbuf.loaders
Optionally, if you prefer a more Windows-like look & feel, copy the gtkrc-file of the MS-Windows-theme to your home directory:
copy share\themes\MS-Windows\gtk-2.0\gtkrc %HOME%\.gtkrc-2.0
Now you're ready for take off! Type:
bin\gtk-demo.exe
For any comments on the jhbuild script and the moduleset please contact me.