[opensuse-packaging] libnotify and gtk
Tuesday 01 February 2011 Hello. I can't compile a package against libnotify in Factory standard repo. It fails with: In file included from /usr/include/libnotify/notify.h:28:0, from popup.c:28: /usr/include/libnotify/notification.h:28:21: fatal error: gtk/gtk.h: No such file or directory Packages built succesfully for 11.3, 11.2, 11.1. Can anybody help, please? https://build.opensuse.org/package/show?package=xneur-svn&project=home%3ALazy_Kent%3Atesting -- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 02/01/2011 08:00 PM, Kyrill Detinov wrote:
Tuesday 01 February 2011
Hello.
I can't compile a package against libnotify in Factory standard repo. It fails with:
In file included from /usr/include/libnotify/notify.h:28:0, from popup.c:28: /usr/include/libnotify/notification.h:28:21: fatal error: gtk/gtk.h: No such file or directory
Packages built succesfully for 11.3, 11.2, 11.1. Can anybody help, please?
https://build.opensuse.org/package/show?package=xneur-svn&project=home%3ALazy_Kent%3Atesting
/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
Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
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? -- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
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
Wednesday 02 February 2011 On Wed, 02 Feb 2011 11:03:09 +0200 Dave Plater wrote:
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.
pkg-config is installed. I asked in XNeur mailing list. -- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Le mercredi 02 février 2011, à 11:30 +0300, Kyrill Detinov a écrit :
Why it wasn't done by configure? What is the difference between 11.3 and Factory?
The libnotify version in Factory doesn't require gtk2-devel, that's the difference. The reason is that libnotify in Factory can be used with both gtk2 and gtk3 applications, so it's up to the application to know which one it wants to use. Your application should explicitly check for gtk-2.0 with pkg-config in configure, if it uses gtk2. So the configure script is likely broken. (Note that the libnotify behavior is... "interesting", to say the least; some might say it's wrong. It's fixed in later versions of libnotify, though: gtk/gtk.h is not even included anymore in headers there) Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Dave Plater
-
Kyrill Detinov
-
Vincent Untz