-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark C. Smith wrote: > If this message if out of place or already answered, please point me to > the right direction and I'll be more than happy to follow up there. > > I'm working on an app that uses gtk+-2.0 and a gdk_canvas. 'gnome-config' > points to the gtk-1.2 installation and pkg-config leaves out the > necessary include directories such that I get errors about gnome.h > not being found. I'm not finding any .pc files in /usr/lib/pkgconfig > that look like their for a standalone gnome app. Do I need to write > one? Thanks. > > Here's what I have in my Makefile right now: > > $(CC) $(CFLAGS) $(DEBUGFLAGS) `pkg-config gdk-2.0 --libs --cflags` -o p p.c
GDK is a semi-internal backend support library for GTK. You want to be using 'gtk+-2.0' in your pkg-config line. If you are using gnome2 libraries, check out /usr/lib/pkgconfig/libgnome*.pc for things you might be using. You'll probably want 'libgnome-2.0' and perhaps 'libgnomeui-2.0'. IIRC, libgnomeui-2.0 will include cflags/libs parameters for GTK as well, so you can probably omit 'gtk+-2.0'. gnome-config is for gnome 1.x, I believe. -brian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) iD8DBQFC8AFm6XyW6VEeAnsRAoHGAJ9G53EYxU2KHrEHmzcp+LdInaZcfgCfdRCE S5o/GLw/RMgp/43hKFj+v1s= =PO0Q -----END PGP SIGNATURE----- _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list