Pkg-config
Hi
I have installed pkg-config when I run Code:
echo $PKG_CONFIG_PATH The reason being I had trouble building I think makedepend, Error cant find pkg-config, FYI pkg-config was installed before starting Xwindows |
Hi
I get this, but I have no idea what the correct answer should be. Quote:
|
Quote:
Code:
$ echo $PKG_CONFIG_PATH Code:
# Begin /etc/profile.d/qt.sh The LFS book doesn't mention anything about PKG_CONFIG_PATH (except as part of the configuration for installing Libpipeline). But the BLFS book mentions it explicitly as though it should already be set... Quote:
|
Quote:
|
FWIW (maybe nothing), I added this to /etc/profile...
Code:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig Code:
echo $PKG_CONFIG_PATH |
Thks stoat
That seems to have fixed it makedepend made ok, the missing .pc files were found. Just would like to know why I had to make the adjustment. |
Quote:
grep -r "<PREFIX>/lib/pkgconfig" LFS-BOOK-7.2-NOCHUNKS.html yields nothing. I also got that: Code:
>>>grep -r PKG_CONFIG /etc/ |
Quote:
I also have the pathappend function for /usr/local/lib/pkgconfig in my extrapaths.sh script. That doesn't get added to PKG_CONFIG_PATH in my case because /usr/local/lib/pkgconfig doesn't exist in my system. But that part of extrapaths.sh implies that the PKG_CONFIG_PATH variable should already be set somewhere, and extrapaths.sh is just adding more on to it. My Xorg.sh script doesn't have anything about PKG_CONFIG_PATH in it. It's from Xorg-7.7. The book has a version of Xorg.sh with those PKG_CONFIG_PATH lines in it when /usr is not used as the prefix for Xorg. I did use it. So to me, all of this indicates that PKG_CONFIG_PATH should be set somewhere before /etc/profile calls those scripts in /etc/profile.d. I put the export command to do that in /etc/profile above the lines that call the scripts in /etc/profile.d. Until I learn or find out otherwise, I think that is the right thing to do. |
All times are GMT -5. The time now is 07:28 PM. |