GTK+ and PKG_CONFIG_PATH problems!

This is a discussion on GTK+ and PKG_CONFIG_PATH problems! within the C Programming forums, part of the General Programming Boards category; Hello fellas, I have gtk+3.0 installed but I'm having a hard time compiling a simple program that merely shows a ...

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    6

    Question GTK+ and PKG_CONFIG_PATH problems!

    Hello fellas,


    I have gtk+3.0 installed but I'm having a hard time compiling a simple program that merely shows a window. When I type at terminal:

    gcc `pkg-config --cflags --libs gtk+-3.0.0` gtk.c -o gtk

    I get the error:

    Package gtk+-3.0.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-3.0.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gtk+-3.0.0' found
    gtk.c:1:20: fatal error: gtk/gtk.h: No such file or directory
    compilation terminated.


    I'm pretty much a newbie on linux, so I tried to set the PKG_CONFIG this way (dunno if maybe I'm missing something to set it correctly):

    export PKG_CONFIG_PATH=/Downloads/gtk+-3.0.0

    Any help I would appreciate guys...

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    2,541
    Did you install the GTK+ package using a package manager?
    If yes, I suggest looking for a package call the same name with dev added to it.
    This is a guess from a Windows user; so, might be wrong.

    Been at least two years since I used Linux and installed GTK+ development files.

    Tim S.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fread problems or memory problems
    By Lechuza in forum C Programming
    Replies: 1
    Last Post: 03-22-2009, 12:45 PM
  2. I am trying to use .net and im having problems
    By Fargs in forum Windows Programming
    Replies: 6
    Last Post: 03-28-2007, 01:54 PM
  3. Linking problems, class problems
    By Kheila in forum C++ Programming
    Replies: 12
    Last Post: 11-22-2005, 12:47 AM
  4. I/O problems.
    By Skynet-systems in forum C++ Programming
    Replies: 10
    Last Post: 02-14-2005, 03:08 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21