Building Win32 native GnomeCanvas

  1. 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.

  1. Download and install GLADE/GTK+ for Windows .
  2. Go into a Cygwin console.
  3. 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.
  4. 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
    
  5. Enter libgnomecanvas-2.14.0/ directory.
  6. 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
    
  7. make install with DESTDIR parameter to install it under /tmp/target
    make install DESTDIR=/tmp
    
  8. 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
    
  9. Run libgnomecanvas-zip.
  10. 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
    
  11. Unmount /target with -u option.
    umount -u /target