LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   More GTK problems (https://www.linuxquestions.org/questions/programming-9/more-gtk-problems-574337/)

someone5345 08-02-2007 06:34 PM

More GTK problems
 
I used this tutorial to install GTK:
http://developer.gnome.org/doc/API/2...-building.html

Except I used make -v instead of make, and installed every other requirement in the same directory, /opt/gtk

The problem is, in /opt/gtk, there is nothing. And when i compile using the line:
gcc -o main -Wall -g main.c `pkg-config gtk+-2.0 --cflags --libs `-I/usr/include/libglade-2.0 -lglade-2.0

or

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

I get this as an error message...

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

Any help would be greatly appreciated

exvor 08-02-2007 08:05 PM

What do you get if you do a echo $PKG_CONFIG_PATH

someone5345 08-03-2007 07:23 PM

My PKG_CONFIG_PATH is /opt/gtk/lib/pkgconfig when I echo


All times are GMT -5. The time now is 02:33 AM.