dependencies in different locations

Adrian Bono yanyan_1337 at yahoo.com
Sun Mar 22 10:17:56 PDT 2009


Hello,

How can i make pkg-config look for a package's dependencies in /usr/lib/pkgconfig if they can't be found in /usr/local/lib/pkgconfig? And vice versa?

Example:

I have the following:

/usr/lib/pkgconfig/fontconfig.pc
/usr/local/lib/pkgconfig/cairo.pc

Cairo requires fontconfig and i get an error saying that fontconfig can't be found. If i make a symlink to /usr/lib/pkgconfig/fontconfig.pc from /usr/local/lib/pkgconfig/, configure can continue.

The reverse case is where a dependency is found in /usr/local/lib/pkgconfig and i have to make a symlink from /usr/lib/pkgconfig to allow configure to finish.

PKG_CONFIG_PATH is /usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/kde/lib/pkgconfig

Is it really pkg-config's behavior to only look for a package's dependencies in the same directory and fail if it isn't there?


adrian





      


More information about the pkg-config mailing list