GNOME Bugzilla – Bug 371882
Cannot compile 2.10.2 as is under Win32
Last modified: 2006-11-22 15:34:40 UTC
Please describe the problem: The configure.in script requires the gtk+-unix-print-2.0 which is not available under Win32. I propose a patch, but I suppose that the people writing the configure script will want to write what they need instead. Notice that it looks like that gtk+-unix-print-2.0 package is actually not really required by gtkmm itself. (it does not include it from anywhere!) Steps to reproduce: 1. ./configure under Win32 Actual results: The configure breaks Expected results: The configure script working 8-) Does this happen every time? Sure does. After my fix, it's works just fine. Other information: --- gtkmm-2.10.2.orig/configure.in 2006-11-04 22:50:45.000000000 -0800 +++ gtkmm-2.10.2/configure.in 2006-11-04 23:01:27.000000000 -0800 @@ -222,7 +222,11 @@ AC_SUBST(GDKMM_CFLAGS) AC_SUBST(GDKMM_LIBS) -PKG_CHECK_MODULES(GTKMM, glibmm-2.4 >= ${gtkmm_min_glibmm_version} cairomm-1.0 >= ${gtkmm_min_cairomm_version} gtk+-2.0 >= ${gtkmm_min_gtk_version} gtk+-unix-print-2.0 >= ${gtkmm_min_gtk_version}) +if test x"$os_win32" = xyes; then + PKG_CHECK_MODULES(GTKMM, glibmm-2.4 >= ${gtkmm_min_glibmm_version} cairomm-1.0 >= ${gtkmm_min_cairomm_version} gtk+-2.0 >= ${gtkmm_min_gtk_version}) +else + PKG_CHECK_MODULES(GTKMM, glibmm-2.4 >= ${gtkmm_min_glibmm_version} cairomm-1.0 >= ${gtkmm_min_cairomm_version} gtk+-2.0 >= ${gtkmm_min_gtk_version} gtk+-unix-print-2.0 >= ${gtkmm_min_gtk_version}) +fi AC_SUBST(GTKMM_CFLAGS) AC_SUBST(GTKMM_LIBS)
Created attachment 76133 [details] [review] Patch to avoid the gtk+ unix print requirement in configure
CCing Cedric Gustin, who takes care of win32 stuff for gtkmm.
gtk+-unix-print-2.0.pc should be provided by GTK+ whatever the platform, even though unix-print is not available on win32. At least this is the case with the gladewin32 installer and with Tor's GTK+ binaries. So no need for this os_win32 test...
Alexis originally wrote: > The configure.in script requires the gtk+-unix-print-2.0 which is not available > under Win32. So it would be interesting to know what GTK+ installer did not make this file available.
After a quick survey, I committed this patch. Looks like Tor Lillqvist does not distribute gtk+-unix-print-2.0.pc with his win32 binaries, even though the gtk+ tarball installs this file in lib/pkgconfig whatever the platform ! As Tor's files are supposed to be the "official" ones, a workaround has to be present in gtkmm. I added a comment in configure.in though... The gladewin32 GTK+ installer is unaffected. Thanks to Alexis for reporting this. Was not aware of anybody else crazy enough to try to build gtkmm on win32 !