LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-09-2009, 08:48 AM   #1
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 542

Rep: Reputation: 50
Slackware64 + opencv + PKG_CONFIG_PATH


Hi, I work with opencv, and use Slackware64 -current, but now I get this error: opencv.pc not in PKG_CONFIG_PATH.
It's strange because have always work, I check PKG_CONFIG_PATH and get this: /usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/local/lib64/pkgconfig
Why /usr/local/lib/pkgconfig desapere?

Thank's, sorry my bad english
 
Old 06-10-2009, 04:31 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Your PKG_CONFIG_PATH env variable is set for a 64-bit environment. /usr/local/lib/pkgconfig is for 32-bit meta-data (*.pc) files.

I don't know whether Slackware64 is multilib or not. Assuming it is, I don't know what the Slackware way for dealing with 32-bit and 64-bit paths is.

You could define two env variables PKG_CONFIG_PATH32="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig" and PKG_CONFIG_PATH64="/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig". When you build 32-bit packages, set PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}". Use PKG_CONFIG_PATH64 when building 64-bit packages.

Last edited by weibullguy; 06-10-2009 at 07:41 AM.
 
Old 06-10-2009, 07:08 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
I don't know whether Slackware64 is multilib or not
In its present state, Slackware64 is not multilib. It appears to be multilib capable in that it has both /usr/lib and /usr/lib64, but /usr/lib is empty.
 
Old 06-10-2009, 07:48 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Well, having lib and lib64 would be the *most* FHS compliant. I wonder whether the toolchain is built multilib or if the intention is to install precompiled 32-bit binaries and libraries? I don't know enough about Slackware to know how much of a PITA it would be for pkgtools to accomodate both ABI. I'd guess not real tough since it's (AFAIK) just shell scripts. The PackManUtil (bunch of shell scripts) I use on my multilib CLFS machines handles both ABI.
 
Old 06-10-2009, 08:00 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
I wonder whether the toolchain is built multilib or if the intention is to install precompiled 32-bit binaries and libraries?
This has been the subject of much speculation in the Slackware forum. At the moment, it looks as if Slackware64 is going to be "pure" 64, but since it is likely users will need 32 bit programs, it will be FHS compliant and allow users to add 32 bit libraries as they need. Also, the 32 bit version of Slackware isn't going anywhere, so people can safely stay in the 32 bit world if they need.

Quote:
I don't know enough about Slackware to know how much of a PITA it would be for pkgtools to accomodate both ABI.
I suspect that is isn't that much of a PITA, but more of a philosophical stance. Slamd64 is a 64 bit Slackware derivative that is multilib and I never saw any indication that it was a nightmare to maintain. Patrick Volkerding doesn't seem to have made any statements about pure vs multilib since the introduction of Slackware64, but based on past indications, the situation as it currently exists is likely to be how it stays (at least in my opinion).
 
  


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
Is PKG_CONFIG_PATH set wrong in slackware64-current?? lumak Slackware 20 09-15-2009 02:07 PM
OpenCV commands cp_almora09 Linux - Software 1 02-17-2009 03:51 AM
Help me for OpenCV application qinglau Linux - Software 0 03-09-2006 11:25 AM
opencv problems in fedora 3 sinc2 Linux - Software 0 11-16-2004 06:44 PM
OpenCV fistroman Programming 0 07-28-2003 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:08 AM.

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