On 02/02/2011 10:30 AM, Kyrill Detinov wrote:
Wednesday 02 February 2011
On Wed, 02 Feb 2011 00:29:38 +0200 Dave Plater wrote:
/usr/include/gtk-2.0/gtk/gtk.h comes from gtk2-devel. I notice that your configure output doesn't mention checking for gtk or gtk2 This is present in the output from the 11.3 configure : Libnotify compiler flags: -pthread -I/usr/include/gtk-2.0 From the factory build : Libnotify compiler flags: -pthread And the above line is missing. Try ./configure --help in the unpacked sources, at the command line locally to look for an option to specify where to look for gtk2 or where to add -I/usr/include/gtk-2.0
Yes. This works. export LIBNOTIFY_CFLAGS="-pthread -I/usr/include/gtk-2.0 \ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include \ -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include \ -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo \ -I/usr/include/pango-1.0 -I/usr/include/pixman-1 \ -I/usr/include/freetype2 -I/usr/include/libpng14 \ -I/usr/include/gdk-pixbuf-2.0" export LIBNOTIFY_LIBS="-pthread -lnotify -lgtk-x11-2.0 -ldbus-glib-1 \ -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 \ -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig \ -lgmodule-2.0 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 \ -lrt -lglib-2.0"
Why it wasn't done by configure? What is the difference between 11.3 and Factory?
That's the part I'm not sure of try adding Buildrequires: pkg-config to your spec file and removing your environment variable, if that works then all is ok. If it doesn't then it's possible that your package has something missing and you should ask the package developers to use pkg-config for gtk2 detection. I'm updating to factory this week and I'll have another look at gtk2-devel. Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org