Hi All
Have had some problems running the gtk-demo on windows (and through wine) it fails when loading images.
I talked to "tml" on the #gtk+ IRC and he suggested that mingw32-gtk+ was compiled without GDI+, so I recompiled it with "--disable-gdiplus --without-libtiff" and everyting works fine now. Images is loading.
Trying to get TIFF support, found mingw32-libtiff (http://sourceforge.net/project/showfiles.php?group_id=204414&package_id=...) compiled it without problems, but mingw32-gtk+ don't recognice it doing configure.
Could we compile mingw32-gtk+ without GDI+ and mayby someone could figure out why libtiff check fails ?
/Mikkel
[Note that mingw32-gtk2 is in Fedora, but we're not yet building it because there are some unreviewed dependencies: https://bugzilla.redhat.com/show_bug.cgi?id=467408 mingw32-jasper https://bugzilla.redhat.com/show_bug.cgi?id=467419 mingw32-pango ]
On Fri, Feb 27, 2009 at 02:53:25PM +0100, Mikkel Kruse Johnsen wrote:
Have had some problems running the gtk-demo on windows (and through wine) it fails when loading images.
I talked to "tml" on the #gtk+ IRC and he suggested that mingw32-gtk+ was compiled without GDI+, so I recompiled it with "--disable-gdiplus --without-libtiff" and everyting works fine now. Images is loading.
Do we lose any features by disabling GDI+ support?
We don't have a libtiff package. Yet Gtk still builds the TIFF pixbuf loader (libpixbufloader-gdip-tiff.dll). The libtiff test in Gtk's configure.in is a bit confusing. No tiff* messages get printed in the configure log.
dnl Test for libtiff if test x$os_win32 = xno || test x$enable_gdiplus = xno; then [...] fi
I looked at the gdk pixbuf loader for TIFF and I don't understand how it can compile without <tiffio.h>. Perhaps it is erroneously using the system header file, but that still leaves open the question of what library it is linking with.
Trying to get TIFF support, found mingw32-libtiff (http://sourceforge.net/project/showfiles.php?group_id=204414&package_id=...) compiled it without problems, but mingw32-gtk+ don't recognice it doing configure.
Could we compile mingw32-gtk+ without GDI+ and mayby someone could figure out why libtiff check fails ?
Got any patches that we can review?
Rich.
I got the skinny on this from my contact at SUSE.
GDI+ is theoretically the best choice, since it's a native Win32 library that can load many different image formats. It's what Gtk will use by default if detected, and indeed it's what our mingw32-gtk2 package uses. However _in practice_ this fails with images over a certain size (bugs in Windows? who'd have thought!).
So he recommends disabling GDI+ when compiling Gtk. This means we will need a mingw32-libtiff library if we want to support TIFF.
SUSE's packages also link the pixbuf loaders statically to avoid the gtk-pixbuf.loaders configuration file. He also tells me he links pango's IM-modules statically to avoid another config file, gtk.immodules. That sounds like an excellent idea because we go through hoops in nsiswrapper to create both these config files in the right place with the right contents.
Anyone wants to have a go at making a patch for the above, please post it on the list.
Rich.
Hi
Just found out that the reason tiff was not being detected was because I had to run "i686-pc-mingw32-ranlib" on the DLL files. mingw32-gtk2 is now compiling with TIFF support from this package http://sourceforge.net/project/showfiles.php?group_id=204414&package_id=...
I will see if I can compile it statically. For now just add "--disable-gdiplus" to the configure line in the spec file.
Med Venlig Hilsen / Kind Regards
Mikkel Kruse Johnsen Adm.Dir.
Linet Ørholmgade 6 st tv Copenhagen N 2200 Denmark
Work: +45 21287793 Mobile: +45 21287793 Email: mikkel@linet.dk IM: mikkel@linet.dk (MSN) Professional Profile Healthcare
Network Consultant
søn, 01 03 2009 kl. 19:00 +0000, skrev Richard W.M. Jones:
I got the skinny on this from my contact at SUSE.
GDI+ is theoretically the best choice, since it's a native Win32 library that can load many different image formats. It's what Gtk will use by default if detected, and indeed it's what our mingw32-gtk2 package uses. However _in practice_ this fails with images over a certain size (bugs in Windows? who'd have thought!).
So he recommends disabling GDI+ when compiling Gtk. This means we will need a mingw32-libtiff library if we want to support TIFF.
SUSE's packages also link the pixbuf loaders statically to avoid the gtk-pixbuf.loaders configuration file. He also tells me he links pango's IM-modules statically to avoid another config file, gtk.immodules. That sounds like an excellent idea because we go through hoops in nsiswrapper to create both these config files in the right place with the right contents.
Anyone wants to have a go at making a patch for the above, please post it on the list.
Rich.