GNOME Bugzilla – Bug 637557
libchamplain fails configure stage
Last modified: 2011-01-02 17:02:42 UTC
clutter-gtk installed ok, so I'm don't know what's up with this error: checking for GTK... no configure: error: Package requirements ( gtk+-2.0 >= 2.12 clutter-gtk-0.10 >= 0.10 ) were not met: No package 'clutter-gtk-0.10' found I also note is says GTK=no, and there are no build failures on GTK itself
Yes, I get the same error. It seems the build bots pass as they have the system's clutter-gtk-devel (version 0.10.x) installed: http://build.gnome.org/builders/libchamplain-bxlug-sid/builds/624/steps/libchamplain%20build/logs/stdio Relevant libchamplain bugs are at bug 632695 and bug 631009. I have a patch that adds clutter-gtk-010 (as well as clutter-gtk) back to the moduleset. libchamplain then builds, but I haven't worked out what happens when a gtk3-ported application links libchamplain, where libchamplain links gtk2. (gtk2 & gtk3 in the same application)
Created attachment 176751 [details] [review] Add clutter-gtk2 and dependencies If you apply this patch, libchamplain will build. Only empathy depends on libchamplain. But will empathy work with this patch - using gtk2 & gtk3? I don't know and I can't test because empathy doesn't build due to bug 636654
Empathy won't work, it's not possible to link against both GTK 2 & 3.
(In reply to comment #1) > I have a patch that adds clutter-gtk-010 (as well as clutter-gtk) back to the > moduleset. libchamplain then builds, but I haven't worked out what happens when > a gtk3-ported application links libchamplain, where libchamplain links gtk2. > (gtk2 & gtk3 in the same application) As an author of such an application, let me tell you... shit's broke! Porting libchamplain-gtk to gtk3 should be a high priority for somebody who is capable of that, as it is a major bug that is blocking me developing my own app. Thanks.
Sorry, I should be more specific. Here's an example of an error in Gtk3 caused by libchamplain's gtk2 (some whitespace added for readability): $ jhbuild run python Python 2.7 (r27:82500, Sep 16 2010, 18:02:00) [GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from gi.repository import Clutter, GtkChamplain, Gtk >>> Clutter.init([]) (<enum CLUTTER_INIT_SUCCESS of type ClutterInitError>, []) >>> GtkChamplain.Embed() <Embed object at 0x7fd887a9baa0 (GtkChamplainEmbed at 0x207ead0)> >>> dialog = Gtk.FileChooserDialog("Open", None, Gtk.FileChooserAction.OPEN, buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT)) Traceback (most recent call last):
+ Trace 225297
buttons=buttons)
self.add_buttons(*buttons)
self.add_button(text, response)
>>> Whereas, without libchamplain, it works fine: $ jhbuild run python Python 2.7 (r27:82500, Sep 16 2010, 18:02:00) [GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from gi.repository import Gtk >>> dialog = Gtk.FileChooserDialog("Open", None, Gtk.FileChooserAction.OPEN, buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT)) Gtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications. >>> dialog.run() (.:9198): Gtk-WARNING **: GtkFileChooserWidget 0x2914480 is mapped but visible=1 child_visible=1 parent GtkBox 0x2972070 mapped=0 (.:9198): Gtk-WARNING **: Could not find the icon 'application-x-python-bytecode'. The 'hicolor' theme was not found either, perhaps you need to install it. You can get a copy from: http://icon-theme.freedesktop.org/releases -6 >>>
*** This bug has been marked as a duplicate of bug 638521 ***