Re: [gtk-osx-users] hello world in gtk




On Jul 31, 2013, at 4:03 PM, Érico <ericomtx gmail com> wrote:

hi

I am begging at this and I am trying to compile the sample from below :
https://developer.gnome.org/gtk-tutorial/stable/c39.html#SEC-HELLOWORLD

I run jhbuild shell

when I compile :
gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`

 I get the message:

i686-apple-darwin10-gcc-4.2.1: pkg-config --cflags --libs gtk+-2.0: No such file or directory
/opt/code/gtk/base.c:1:31: error: /ericomtx/gtk/gtk.h: No such file or directory
/opt/code/gtk/base.c: In function ‘main’:
/opt/code/gtk/base.c:7: error: ‘GtkWidget’ undeclared (first use in this function)
/opt/code/gtk/base.c:7: error: (Each undeclared identifier is reported only once
/opt/code/gtk/base.c:7: error: for each function it appears in.)


how can set the gtk path so gcc can use its libs ?

I am really sorry for the beginner question

Have you successfully run
   jhbuild bootstrap 
and 
  jhbuild build meta-gtk-osx-bootstrap meta-gtk-osx-core
?
If so, where are pkg-config and gtk.h ?

Regards,
John Ralls



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