LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-22-2013, 07:43 PM   #1
Sweyn78
Member
 
Registered: Jul 2011
Location: Tallahassee, Florida
Distribution: Kubuntu 12.10
Posts: 43

Rep: Reputation: Disabled
Exclamation Package Config is unaware of several installed packages


Hello! I'm trying to compile cairo with xcb support (because I have no life). I've noticed, though, that on all my compiles (not just cairo), I keep getting an error about missing libraries, but I have the libraries in question installed. I've tried reinstalling them with aptitude and directing whatever path is used by the compilation to where my library folders are, but the only thing that seems to work is when I compile all of the dependencies themselves from source, too. I don't really mind doing that too much, so that's what I did. But in order to finish compiling XCB, I need to compile Xinput, which is going to make me compile all of X11, which I kinda don't want to have to do because X11 likes to break when one messes with it. Or, at least it did when I ran Fedora. I generally try not to touch my X11 installation.
I have all of these requirements installed though (*-dev, of course), so it's fairly frustrating. I gave this several days of trial, but I realized that I do need to ask for help with this, so, hiya.
.
Necessary information:
PKG_CONFIG_PATH=/usr/lib/pkgconfig
^^ So, yes, I do have packageconfig set to the right directory.
I'm running Kubuntu 12.10. Why do I need cairo to use XCB if I don't use gnome? Most of my apps are GTK (well, gtk2). Also, I really like XCB. :P
.
So! How can I get Package Config or whatever to know where the *-dev libraries are installed?
 
Old 02-24-2013, 12:37 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,811

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
cairo should have all the automake files in the source

run " make distclean"
then
Code:
autoreconfig -v -i 
--- then ---
./configure ?????? options ??? and more options 
make -j
i use all my cores on the cpu and " -j " tells it to use all of them
-- see the make man page
 
Old 02-24-2013, 01:07 PM   #3
Sweyn78
Member
 
Registered: Jul 2011
Location: Tallahassee, Florida
Distribution: Kubuntu 12.10
Posts: 43

Original Poster
Rep: Reputation: Disabled
Thanks, but no luck. It's still unaware that the XCB dependencies are installed. :\
 
Old 02-24-2013, 01:17 PM   #4
Sweyn78
Member
 
Registered: Jul 2011
Location: Tallahassee, Florida
Distribution: Kubuntu 12.10
Posts: 43

Original Poster
Rep: Reputation: Disabled
Fixed It!

Okay, so I don't know why I hadn't thought of this earlier, but I ran a recursive search in /usr for *.pc and found out where the bulk of them were located, and then appended that dir to the PKG_CONFIG_PATH variable. Things seem to be working, now.
Thanks!
 
Old 02-24-2013, 02:39 PM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 12,811

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
on a 64 bit OS
$PKG_CONFIG_PATH =/usr/lib64/pkgconfig
and is normally auto set at time of install
 
1 members found this post helpful.
Old 02-24-2013, 04:57 PM   #6
Sweyn78
Member
 
Registered: Jul 2011
Location: Tallahassee, Florida
Distribution: Kubuntu 12.10
Posts: 43

Original Poster
Rep: Reputation: Disabled
They ended up being here for me: /usr/lib/x86_64-linux-gnu/pkgconfig

Last edited by Sweyn78; 02-25-2013 at 02:27 AM.
 
Old 02-25-2013, 02:25 AM   #7
Sweyn78
Member
 
Registered: Jul 2011
Location: Tallahassee, Florida
Distribution: Kubuntu 12.10
Posts: 43

Original Poster
Rep: Reputation: Disabled
Exclamation Yeah, I Guess the Problem Wasn't Solved Afterall. :\

As it turns out, I have *.pc files in some five dirs for some reason. Many of them are for the same package, yet contain different information. Meh. And the compiling is still having problems with not knowing that certain libs are installed (just with different libs this time). This is fairly annoying.
Does anyone know of a more graceful way to resolve this than symlinking all the pkgconfig dirs to one spot and overwriting a goodly number of duplicate (but not identical) *.pc files?
 
Old 02-25-2013, 03:00 AM   #8
John VV
Guru
 
Registered: Aug 2005
Posts: 12,811

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
By chance were you building source code packages and somewhat installing them to random locations
" PKG_CONFIG_PATH " is normally

/usr/lib64/pkgconfig
or
/usr/lib/pkgconfig

there might be a few in other places but they will be back up saved packages like the kernel source and gcc source

OPr if you built and installed programs to there OWN folder

now for example
If you build "out of sync" versions of programs
like say the TESTING version of gimp
then that build folder's ????/????/gimpTESTING/lib64/pkgconfig will need to be manually added to configure

but this is an extreme example
 
  


Reply

Tags
cairo, compile, libxcb, pkgconfig, ubuntu


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
No List of Package Database Installed in /var/log/packages - Slackware 13.37 Jimjax Slackware 21 12-31-2011 04:49 AM
Script to generate package.use from currently installed packages mcolangelo Gentoo 1 05-27-2010 02:01 PM
pkg-config can't find installed package JAKK Slackware 16 08-11-2008 09:07 AM
Package Management tool doesn't see installed packages (FC1) pekkerhed Fedora 5 06-04-2004 03:56 PM


All times are GMT -5. The time now is 03:21 PM.

Main Menu
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