Hi,
I'm doing the Fedora MinGW project[1], where we are building up a cross-compiler and comprehensive set of libraries so we can build Windows software from Fedora.
Mostly inkscape "just works". Install the dependent libraries such as gtkmm etc. from our yum repo[2], then:
PKG_CONFIG_PATH=/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig \ ./configure --host=i686-pc-mingw32 \ --enable-lcms=no \ --without-gnome-vfs make
With this command and the patches below I built 'inkscape.exe', and did some limited testing, and it appears to run under Wine >= 1.1.6. (Note that at no point is MS Windows required).
The patches and specfile we use are in our development repository[3], and also attached to this email.
(a) mingw32-inkscape-20081027-no-gc-version-check-when-crosscompiling.patch
You cannot run programs when cross-compiling (not even if you have Wine). This first patch disables a test for the version of libgc which relied on running a test program.
(b) mingw32-inkscape-20081027-extra-win32-objects.patch
I'm not quite sure why, but a load of Win32 source files are apparently missing from the Makefile.am's. It should be safe to add these for all platforms, as long as the sources files themselves are surrounded by #ifdef WIN32 ... #endif.
(c) mingw32-inkscape-20081027-no-is-os-vista.patch
The code uses a function called 'is_os_vista' that doesn't seem to exist. Maybe this was added to a new version of some dependency?
(d) mingw32-inkscape-20081027-pango-enable-engine.patch
Some files don't compile unless you define PANGO_ENABLE_ENGINE. I didn't look into this very deeply, but certainly defining this symbol at the top of the affected files fixes this.
(e) mingw32-inkscape-20081027-no-setenv.patch
This is a hack we use to remove a reference to 'setenv' because that API doesn't exist on Windows.
I hope you find this useful, and maybe you can use it to automate builds and tests on the Windows version.
Rich.
[1] http://fedoraproject.org/wiki/MinGW
[2] http://www.annexia.org/tmp/mingw/fedora-9/
[3] Go to http://hg.et.redhat.com/misc/fedora-mingw--devel/ and click 'manifest' then go into the 'inkscape' directory.