Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-02-2007, 07:34 PM   #1
LQ Newbie
Registered: Jun 2006
Posts: 10

Rep: Reputation: 0
Exclamation More GTK problems

I used this tutorial to install GTK:

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


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
Old 08-02-2007, 09:05 PM   #2
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
What do you get if you do a echo $PKG_CONFIG_PATH
Old 08-03-2007, 08:23 PM   #3
LQ Newbie
Registered: Jun 2006
Posts: 10

Original Poster
Rep: Reputation: 0
My PKG_CONFIG_PATH is /opt/gtk/lib/pkgconfig when I echo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK problems mickeyboa Fedora 1 07-30-2006 09:23 AM
GTK problems . . . lydgate Slackware 2 10-08-2005 11:24 PM
Problems with GTK davholla Linux - Software 4 04-07-2005 09:23 AM
gtk problems derfaust Linux - Software 2 06-19-2004 04:34 AM
GTK Problems natesch Linux - General 2 05-09-2002 05:35 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration