Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-11-2006, 08:34 AM
|
#1
|
Member
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462
Rep:
|
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
|
|
|
02-11-2006, 11:24 AM
|
#2
|
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:
|
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`
|
|
|
02-11-2006, 02:13 PM
|
#3
|
Member
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462
Original Poster
Rep:
|
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
|
|
|
02-11-2006, 07:32 PM
|
#4
|
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:
|
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. 
|
|
|
02-12-2006, 02:35 AM
|
#5
|
Member
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462
Original Poster
Rep:
|
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.) 
|
|
|
02-12-2006, 04:36 AM
|
#6
|
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:
|
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.
|
|
|
All times are GMT -5. The time now is 10:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|