GNOME Bugzilla – Bug 493057
Gtkmm fails to build on Mac OS X Tiger 10.4.10
Last modified: 2007-11-05 11:26:26 UTC
Please describe the problem: I'm building the trunk version of gtkmm using the imendio's jhbuild moduleset for Mac OS X and I get the following error: widget.cc: In function 'void<unnamed>::Widget_signal_style_changed_callback(GtkWidget*, GtkStyle*, void*)': widget.cc:812: error: 'Style' was not declared in this scope widget.cc:812: error: template argument 1 is invalid widget.cc:812: error: missing '>' to terminate the template argument list widget.cc:812: error: template argument 2 is invalid widget.cc:822: error: expected type-specifier before 'SlotType' widget.cc:822: error: expected `>' before 'SlotType' widget.cc:822: error: expected `(' before 'SlotType' widget.cc:822: error: 'SlotType' was not declared in this scope widget.cc:822: error: expected primary-expression before '>' token widget.cc:823: error: expected `)' before ';' token --------- gtkmm/style.h is included, so I don't understand what's missing here. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Using Gtk::Widget fixed the problem, which is weird since it's using the Gtk namespae explicitely in the previous line.
Sorry, Gtk::Style :P
A patch (against svn) would be welcome. You probably need to change the .hg/.ccg file.
I changed this in widget.cc: 809: static void Widget_signal_style_changed_callback(GtkWidget* self, GtkStyle* p0,void* data) 810: { 811: using namespace Gtk; 812: typedef sigc::slot< void,const Glib::RefPtr<Style>& > SlotType; 813: 812: // Do not try to call a signal on a disassociated wrapper. To this: 809: static void Widget_signal_style_changed_callback(GtkWidget* self, GtkStyle* p0,void* data) 810: { 811: using namespace Gtk; 812: typedef sigc::slot< void,const Glib::RefPtr<Gtk::Style>& > SlotType; 813: 812: // Do not try to call a signal on a disassociated wrapper.
Could you please try this tarball: http://www.murrayc.com/misc/gtkmm-2.12.1test.tar.gz Hopefully it fixes the build for you.
It worked! Great work, are you going to commit the change to mainstream?
Yes, I have commited that to trunk and the gtkmm-2-12 branchs. Tell me if you need a tarball release. Thanks for finding the problem.
It would be nice to have a tarball release so we can update the jhbuild moduleset for gtk-osx
I have just release a tarball.