This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Installation problem: How to define a path for pkgconfig?

Tags: None
(comma "," separated)
embl-structures
Registered Member
Posts
1
Karma
0
Hi,

I'm currently trying to install Eigen 3.1.3 into a non-standard location ("/g/software/linux/pack/eigen-3.1.3") which I defined via the CMake switch
Code: Select all
-DCMAKE_INSTALL_PREFIX=/g/software/linux/pack/eigen-3.1.3

However CMake still uses /usr/lib/pkgconfig as pkgconfig directory:
Code: Select all
# cmake -DCMAKE_INSTALL_PREFIX=/g/software/linux/pack/eigen-3.1.3 ..
[...]
-- searching for 'pkgconfig' directory in PKG_CONFIG_LIBDIR (  ), /g/software/linux/pack/eigen-3.1.3/share, and /g/software/linux/pack/eigen-3.1.3/lib
-- found /usr/lib/pkgconfig
[...]


`Make` fails because /usr/lib/pkgconfig is not writeable for the software installer. Creating /g/software/linux/pack/eigen-3.1.3/lib/pkgconfig before running Cmake doesn't help either, as Cmake still selects /usr/lib/pkgconfig.

How can I define a non-standard directory for pkgconfig files for Eigen?
frank
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You need to set the environment variable "PKG_CONFIG_PATH" to the prefix where you have installed Eigen in this instance.
Code: Select all
export PKG_CONFIG_PATH=/g/software/linux/pack/eigen-3.1.3


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]