LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-26-2007, 11:28 AM   #1
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
gtk+ versions confusion


This is surely one of those "It's easy if you know how" things....

I am setting up the Gnome/GTK development environment. Using the package manager (Mepis 6), I installed the wrapper package, which put all the headers in /usr/include/gtk+-2.0.
Later, looking for the gtk-demo application, I wound up at the gtk website and found that the current version of gtk+ is 2.10.11. I downloaded this and extracted it--it appears to include all the header files that I got thru the package manager.

Browsing thru a few .h files, I find nothing to associate the file with version 2.10.11--or any other version.

So....other than doing a clean install, how do you know what version of gtk you are using?
 
Old 04-26-2007, 11:55 AM   #2
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
hi

try
Code:
`pkg-config gtk+-2.0 --modversion`
 
Old 04-26-2007, 12:17 PM   #3
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
sorry

no need for the back ticks at the command line.

u probably knew that anyway.
 
Old 04-27-2007, 06:40 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by slzckboy
hi

try
Code:
`pkg-config gtk+-2.0 --modversion`
Thanks....

It turns out that this does not work on my office system where the basic gtk came with the system (Ubuntu). At home, after installing the development files, the command works.

I'm inferring that pkg-config works only for things installed with the package manager.
 
Old 04-27-2007, 09:30 AM   #5
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
Quote:
Originally Posted by pixellany
Thanks....
I'm inferring that pkg-config works only for things installed with the package manager.
well I pretty sure that I installed gtk-+2.0 manually.
I remember because I had trouble with all the dependencies.

gtk+-2.0.pc is installed as part of gtk+-2.0

http://www.gtk.org/tutorial/x111.html
 
  


Reply



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
GIMP thinks I have two versions of GTK, but I don't Belboz99 Linux - Software 4 06-19-2005 01:43 PM
glib & gtk old versions? grayFalcon Linux - Newbie 6 04-27-2005 04:23 PM
how do I find my glibc and gtk+ versions? butthead Linux - Software 1 08-09-2004 12:29 PM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM
Glib & GTK+ versions 1.2.10 & 2.4.0 RaVilj Linux - Software 9 06-18-2004 05:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:00 PM.

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