[Glade-users] gnome header file not found



On Wed, 2003-04-16 at 16:24, dan davidson conexant com wrote:

Hello,

I created a gui window using Glade 1.1.1 (on Red Hat 8.0).  I tried adding
a simple message popup, 'gnome_ok_dialog', which needed '#include
<gnome.h>'.
Now I get "... gnome.h: No such file or directory" error message.
There is a 'gnome.h' header file in the "/usr/include/libgnomeui-2.0"
folder.
Is there some step I need to perform to enable gnome?

Also, in the Glade Project->Options->General settings, the Gnome 'Enable
Gnome Support' check box is disabled (grayed out).

The following two lines are from the project's 'Makefile'.
PACKAGE_CFLAGS =  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/Xft2
-I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include
PACKAGE_LIBS =  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
-lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl
-lglib-2.0

When you created the project, you specified a GTK+ project. So it will
be compiled without GNOME support. (The CFLAGS above only have GTK+
stuff.)

Try creating a new GNOME project and it should work then.

Glade 2.0.0 will hide the GNOME widgets if you create a GTK+ project, so
it will avoid this problem.

Damon






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]