After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 371882 - Cannot compile 2.10.2 as is under Win32
Cannot compile 2.10.2 as is under Win32
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
2.10.x
Other All
: Urgent blocker
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2006-11-07 07:35 UTC by Alexis Wilke
Modified: 2006-11-22 15:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to avoid the gtk+ unix print requirement in configure (849 bytes, patch)
2006-11-07 07:38 UTC, Alexis Wilke
none Details | Review

Description Alexis Wilke 2006-11-07 07:35:56 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)
Comment 1 Alexis Wilke 2006-11-07 07:38:53 UTC
Created attachment 76133 [details] [review]
Patch to avoid the gtk+ unix print requirement in configure
Comment 2 Murray Cumming 2006-11-07 22:23:40 UTC
CCing Cedric Gustin, who takes care of win32 stuff for gtkmm.
Comment 3 Cedric Gustin 2006-11-20 13:24:27 UTC
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... 
Comment 4 Murray Cumming 2006-11-22 10:44:19 UTC
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.
Comment 5 Cedric Gustin 2006-11-22 15:34:40 UTC
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 !