[gtk-osx-users] compiling sample in GCC 4.2.1 - macbook pro core i7 10.6.8
- From: Érico <ericomtx gmail com>
- To: gtk-osx-users-list gnome org
- Subject: [gtk-osx-users] compiling sample in GCC 4.2.1 - macbook pro core i7 10.6.8
- Date: Thu, 1 Dec 2011 12:42:42 -0200
Hi
I have just completed building GTK-OSX from :
http://live.gnome.org/GTK%2B/OSX/Buildingnow I am trying to compile a sample from :
http://developer.gnome.org/gtk-tutorial/stable/c39.html
when I run the command :
gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
It gives an error :
ericomtx$ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
-bash: pkg-config: command not found
base.c:1:21: error: gtk/gtk.h: No such file or directory
base.c: In function ‘main’:
base.c:6: error: ‘GtkWidget’ undeclared (first use in this function)
base.c:6: error: (Each undeclared identifier is reported only once
base.c:6: error: for each function it appears in.)
base.c:6: error: ‘window’ undeclared (first use in this function)
base.c:10: error: ‘GTK_WINDOW_TOPLEVEL’ undeclared (first use in this function)
How can I set my
$GTK_PATH/inst/share/pkgconfig to GCC ?
I do have 3 files stored in this directory :
gnome-doc-utils.pc
gtk-doc.pc
xml2po.pc
Is that correct ? I mean is that the content that need to be installed on it ?
Regards
Érico
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]