Building Win32 native GnomeCanvas
- Install Cygwin with MINGW32 supports enabled. zip command will be needed too.
Note: Avoid installing libfontconfig and freetype. This will conflict with the ones included in the GLADE/GTK+ package.
- Download and install GLADE/GTK+ for Windows .
- Go into a Cygwin console.
- Download and expand libgnomecanvas-2.14.0 in a appropriate directory.
2.19 or later versions are not recommended as they require GAIL (Gnome Accessibility Implementation Library) to build gailcanvas. - Create a directory /target and mount the install directory of GLADE/GTK+ on that directory, with -u option.
mkdir /target mount -u 'C:\Program Files\Common Files\GTK\2.0' /target
- Enter libgnomecanvas-2.14.0/ directory.
- Run configure and make.
PATH=/cygdrive/C/Progra~1/Common~1/GTK/2.0:$PATH \ CPPFLAGS="-mno-cygwin" LDFLAGS="-mno-cygwin" \ ./configure --build=i686-pc-mingw32 --prefix=/target make
- make install with DESTDIR parameter to install it under /tmp/target
make install DESTDIR=/tmp
- Edit a line in libgnomecanvas-zip which changes the current working directory to the installation prefix, so that it would be /tmp/target.
cd /tmp/target
- Run libgnomecanvas-zip.
- Confirm two ZIP files are created under /tmp.
-rw-r--r-- 1 moriyoshi None 500748 Jan 20 09:05 libgnomecanvas-2.14.0.zip -rw-r--r-- 1 moriyoshi None 106459 Jan 20 09:05 libgnomecanvas-dev-2.14.0.zip
- Unmount /target with -u option.
umount -u /target
