Thread: problem installing GTK, MAC

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    115

    problem installing GTK, MAC

    Hello

    I am trying to install GTK on my mac. When i try to compile something i get this error. So he cant find the package.

    I compiled with this and with the path of the gtk+-2.0 but both give the same error and the file is present.

    gcc -Wall -ansi -pedantic oef1.c -o test `pkg-config --cflags --libs gtk+-2.0`


    Package gtk+-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gtk+-2.0' found
    oef1.c:1:21: error: gtk/gtk.h: No such file or directory
    oef1.c: In function ‘main’:
    oef1.c:5: error: ‘GtkWidget’ undeclared (first use in this function)
    oef1.c:5: error: (Each undeclared identifier is reported only once
    oef1.c:5: error: for each function it appears in.)
    oef1.c:5: error: ‘window’ undeclared (first use in this function)
    oef1.c:7: warning: implicit declaration of function ‘gtk_init’
    oef1.c:8: warning: implicit declaration of function ‘gtk_window_new’
    oef1.c:8: error: ‘GTK_WINDOW’ undeclared (first use in this function)
    oef1.c:8: error: ‘TOPLEVEL’ undeclared (first use in this function)
    oef1.c:9: warning: implicit declaration of function ‘gtk_widget_show’
    oef1.c:11: warning: implicit declaration of function ‘gtk_main’

  2. #2
    Registered User
    Join Date
    Feb 2010
    Posts
    115
    Hello

    I found my solution. I needed to update x11 for mac.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie Question - fflush(stdin) & fpurge(stdin) on Mac and PC
    By tvsinesperanto in forum C Programming
    Replies: 34
    Last Post: 03-11-2006, 12:13 PM
  2. Replies: 5
    Last Post: 11-07-2005, 11:34 PM
  3. searching problem
    By DaMenge in forum C Programming
    Replies: 9
    Last Post: 09-12-2005, 01:04 AM
  4. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  5. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM