LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices



Reply
 
Search this Thread
Old 02-26-2004, 08:02 PM   #1
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
pkgconfig not recognizing my libs


I'm having trouble with pkgconfig because it won't recognize most of the libraries installed by mandrake. I already added the /usr/lib and /usr/local/lib directories to the PKG_CONFIG_PATH variable and it indeeds recons any file .pc in there.
The problem is that it won't recognize stuff that mandrake has installed (libxml2, libieee, etc...) I know they're only the mandrake ones because their name is XXXXXmdk but still, how can you actually make it so the pkgconfig reads the installed libraries which I see and know I have. Thanks
 
Old 02-26-2004, 08:10 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If they don't put a filename.pc file in a pkgconfig folder in your PKG_CONFIG_PATH then pkg-config won't know anything about them. Your problem may be with shared libraries not being detected. Check what folders are listed in /etc/ld.so.conf - edit it if you need to then run ldconfig.
 
Old 02-27-2004, 12:11 PM   #3
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Original Poster
Rep: Reputation: Disabled
All the folders are there, the problem is that the preinstalled mandrake libraries don't produce an .pc file so pkgconfig won't find it what can I do?
Btw, another question... where do I put a command like export PKG_CONFIG_PATH=/usr/lib:/usr/local/lib:/usr/local/lib/pkgconfig so it's run everytime I boot linux. (kinda like autoexec.bat in DOS) thanks.
 
Old 02-27-2004, 01:57 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Did you install the development versions of them? They'll be called something like libblah-blah-numbers-dev.mdk where blah-blah is gtk or jpeg or glib or whatever.

Edit - To set
Code:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
add that line to ~/.bashrc , a hidden file under your home directory. Every time you open a terminal it will be read. To check if it's working type in
Code:
echo $PKG_CONFIG_PATH

Last edited by Andrew Benton; 02-27-2004 at 02:03 PM.
 
Old 02-27-2004, 03:37 PM   #5
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Original Poster
Rep: Reputation: Disabled
Andrew, that just worked!! I installed the devel version of the packages and now pkgconfig recognizes them. Thanks a LOT!!
 
  


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 11:13 PM
2 different versions of glib and pkgconfig! karl0s Linux - Software 4 09-01-2004 07:05 AM
pkgconfig issues garretwp Linux - Software 3 04-09-2004 10:36 AM
pkgconfig TechHarper Linux - General 2 11-10-2003 06:47 PM
RPM installer not recognizing installed libs? Jiawen Mandriva 5 09-29-2003 05:34 PM


All times are GMT -5. The time now is 08: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration