LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-11-2006, 08:34 AM   #1
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
help with pkgconfig


I'd really appreciate some help with this.
I have bucked up on this sort of issue b4 and it has come back to haunt me so I would like to better my understanding.

I'm trying to install a package that uses the gtk+-2.0 libs.
configure complains that `pkg-config --modversion gtk+-2.0` returns 2.6.10 but 2.6.9 is found.

How shall i re-educate pkg-config or remove 2.6.9 ?
I can't find any record of a gtk+-2.6.9

Thnks in advance
 
Old 02-11-2006, 11:24 AM   #2
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
It has occasionally happened to me in the past that I have had two versions of a particular lib file installed at /usr/lib and at /usr/local/lib and/or two pkgconfig directories, one at /usr/lib/pkgconfig and the other at /usr/local/lib/pkgconfig, with pkg-config files for the two different lib files in each directory. It gets pretty frustrating when you know you have the right version installed, but pkg-config keeps finding the "wrong" one.

I recommend looking to see if you have two (or more) pkgconfig directories, and then if you do, determine if they each contain pkg-config files for gtk+-2.0.

When you do an `echo $PKG_CONFIG_PATH` what do you get? Does it include the path to the gtk+-2.0 pkg-config info for the 2.6.10 version? If not, you can use

`export PKG_CONFIG_PATH=/path/to/right/version:$PKG_CONFIG_PATH`
 
Old 02-11-2006, 02:13 PM   #3
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Original Poster
Rep: Reputation: 30
Hi
thnks for the response.

I do indeed have two pkgconfig directories as u described.


My million dollar question is ,.. u guessed it;how do I know which directory relates to which release of the 2.6* gtk libs ?

By the way,there was no enviirment variable set for PKG_CONFIG_PATH.

thnks
 
Old 02-11-2006, 07:32 PM   #4
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
The gtk+-2.0*.pc files are text files, so you can read them with less, more or cat. They are also fairly self-explanatory, so you will be able to figure out pretty quickly which file belongs to which version.

Since you don't have a PKG_CONFIG_PATH set, you can set one using the export method I mentioned above. When you do, be sure that the first path you use in the expression is the one under which pkg-config will find the information for the version of gtk+-2.0 that you want. As you've already noticed, pkg-config stops looking as soon as soon as it finds a match for the program name, whether the version matches what you need or not.
 
Old 02-12-2006, 02:35 AM   #5
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Original Poster
Rep: Reputation: 30
i tried export PKG_CONFIG_PATH=/usr/lib/pkgconfig(for 2.6.10)

still same error.

so then I moved /usr/local/lib/pkgconfig(for 2.6.9) onto a usb hard drive.

still same.

I then set LD_LIBRARY_PATH to /usr/lib, and this fixed it !?

Thnks for setting me on the right path.(no pun intended.)
 
Old 02-12-2006, 04:36 AM   #6
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
I just noticed that gtk+-2 went to version 2.8.11 in current, in case that matters to what you are compiling.

Glad you got it working.
 
  


Reply


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
problems with pkgconfig cloudnyne132 Linux - Software 1 11-08-2004 10:13 PM
2 different versions of glib and pkgconfig! karl0s Linux - Software 4 09-01-2004 06:05 AM
pkgconfig-0.15.0 tar.gz install help SuSE_User Linux - Software 8 08-03-2004 02:48 AM
pkgconfig issues garretwp Linux - Software 3 04-09-2004 09:36 AM
pkgconfig TechHarper Linux - General 2 11-10-2003 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:09 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