I have been cross compiling gtk apps from Linux to for win32 for years using mingw, but every time I've tried to do the same with gtkmm, I've run into one kind of problem or another.
Can somebody help me improve a script that creates a Linux -> win32 cross-compiling environment for gtk to make it work for gtkmm too? The first thing I need is a plan of attack. For example, which things should I try to download pre-compiled? I've had good luck downloading pre-compiled things for gtk from ftp://ftp.gtk.org/pub/gtk/v2.8/win32. They are a bit old, but they work. I haven't found the gtkmm equivalent of the stuff in that directory. Is there one? I've been able to download and cross-compile ligsigc++ and get that gtkmm dependency working, but I have troubles with glibmm. I downloaded a version consistent with the glib version I'm using, but when I try to cross compile it, I get this error: object.cc:180: error: definition of static data member 'Glib::Object::object_class_' of dllimport'd class Anyway, if anybody could give me some pointers, I'd appreciate it. If I get it working, I'll document what I did and post it. Thanks, David PS - Here's the script I use today for gtk: mkdir /tmp/mingwtmp cd /tmp/mingwtmp wget http://www.libsdl.org/extras/win32/cross/mingw32-linux-x86-glibc-2.5.tar.gz cd /opt tar -xvzf /tmp/mingwtmp/mingw32-linux-x86-glibc-2.5.tar.gz ln -s /opt/cross-tools/i386-mingw32 /opt/cross-tools/i386-mingw32msvc ln -s /opt/cross-tools/ /usr/local/cross-tools mkdir /tmp/gtkwin32tmp cd /tmp/gtkwin32tmp wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/atk-1.10.3.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/atk-dev-1.10.3.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/cairo-1.2.4.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/cairo-dev-1.2.4.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/glib-2.8.6.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/glib-dev-2.8.6.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/gtk+-dev-2.8.20.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/pango-1.10.3.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/pango-dev-1.10.3.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/gtk+-2.8.20.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/dependencies/fontconfig-2.2.2-20040412.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/dependencies/fontconfig-dev-2.2.2-20040412.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/dependencies/freetype-2.1.10.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/dependencies/gettext-0.14.5.tar.gz wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/dependencies/gettext-0.14.5.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/dependencies/gettext-dev-0.14.5.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/dependencies/libiconv-1.9.1.bin.woe32.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/dependencies/libiconv-1.9.1.tar.gz wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/dependencies/libpng-1.2.8-bin.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/dependencies/pkg-config-0.20.zip wget ftp://ftp.gtk.org/pub/gtk/v2.8/win32/dependencies/zlib123-dll.zip cd /opt/cross-tools/i386-mingw32msvc/ for i in /tmp/gtkwin32tmp/*.zip do unzip $i done for i in lib/pkgconfig/*.pc do cat $i |sed 's/prefix=c:.\+/prefix=\/opt\/cross-tools\/i386-mingw32msvc/' > $i.tmp /bin/mv $i.tmp $i done _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
