On 5/1/11 15:00, Alexander Wright wrote:
I'm getting this compile error on Gentoo:
svg-view.cpp: In member function ‘virtual void SPSVGView::mouseover()’: svg-view.cpp:114:40: error: ‘GDK_HAND2’ was not declared in this scope svg-view.cpp:114:49: error: ‘gdk_cursor_new’ was not declared in this scope svg-view.cpp:115:70: error: ‘GTK_WIDGET’ was not declared in this scope svg-view.cpp:115:87: error: ‘gdk_window_set_cursor’ was not declared in this scope svg-view.cpp:116:28: error: ‘gdk_cursor_unref’ was not declared in this scope svg-view.cpp: In member function ‘virtual void SPSVGView::mouseout()’: svg-view.cpp:122:70: error: ‘GTK_WIDGET’ was not declared in this scope svg-view.cpp:122:85: error: ‘gdk_window_set_cursor’ was not declared in this scope make[3]: *** [svg-view.o] Error 1
Adding #include <gtk/gtk.h> to svg-view.cpp and widgets/sp-color-wheel- selector.cpp fixes the problem.
On IRC, user su-v suggested it might be related to this: https://bugs.launchpad.net/ubuntu/+source/claws-mail/+bug/247909/comments/12
This was only a guess ;) after a brief google search (I don't code myself and know close to nil about handling includes) - on OS X 10.5.8, building with GCC 4.2.1, GTK+ 2.22.1, GLib 2.26.1 I don't see this build failure, nor do I recall reading similar reports recently about this type of build failure with Inkscape trunk on other systems.
I think this requires a code fix.
On irc you mentioned creating an 'ebuild':
(…) trying to build the repository tip on Gentoo, but am having some problems. I've created an ebuild to correctly fetch the code, and configure, but I'm getting an error (…)
Does creating an ebuild affect running autogen.sh and configure?
~suv