Re: Creating a project from scratch



Hi Neil,

pkg-config --cflags --libs gtk+-2.0

will give you the libs and include dirs. if you are using gtk-2.0

gtk-config --cflags --libs
for gtk 1.2

Is this project done in glade? You should check if the development
packages for gtk are installed on your system. Search for glade2 if
you're using gtk2 and want an interface builder.

Regards,
Imran

On Tue, 2003-01-21 at 17:49, Neil Hodge wrote:
All:

I am trying to start a project from scratch, and I can't get (what I
think is) the last step.  autogen.sh looks ok, but when I make, all of
the directories seem to make fine, except for the following:

Making all in src
make[2]: Entering directory
`/mnt/disk2/home2/nhodge/development/nomad/gnoii2/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include 
-DG_LOG_DOMAIN=\"gnoii2\" -DGNOMELOCALEDIR=\""/usr/local/share/locale"\"
-I../intl -I../intl    -Wall -ansi -D_GNU_SOURCE -O -g -c main.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system
directory
In file included from main.c:2:
gnoii.h:1:21: gtk/gtk.h: No such file or directory
main.c: In function `main':
main.c:6: `GtkWidget' undeclared (first use in this function)
main.c:6: (Each undeclared identifier is reported only once
main.c:6: for each function it appears in.)
main.c:6: `window' undeclared (first use in this function)
main.c:8: warning: implicit declaration of function `gtk_init'
main.c:10: warning: implicit declaration of function `gtk_window_new'
main.c:10: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
main.c:11: warning: implicit declaration of function `gtk_widget_show'
main.c:13: warning: implicit declaration of function `gtk_main'
make[2]: *** [main.o] Error 1
make[2]: Leaving directory
`/mnt/disk2/home2/nhodge/development/nomad/gnoii2/src'

Looking at the gcc command, it looks like the gtk stuff (libs, includes)
are not being seen at all.  Any idea how to fix this?  Thanks.

Neil


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list






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