我正在运行 gentoo linux,我试图让 pkg-config 找到 ntk.pc(ntk 是我试图链接到的库)。以下是场地:
输出echo $PKG_CONFIG_PATH
:
/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
输出locate ntk.pc
:
/usr/local/lib/pkgconfig/ntk.pc
输出pkg-config --modversion ntk
:
Package ntk was not found in the pkg-config search path.
Perhaps you should add the directory containing `ntk.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ntk' found
输出cat /usr/local/lib/pkgconfig/ntk.pc
:
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: ntk
Description: Non ToolKit
Version: 1.3.0
Requires: cairo >= 1.9.0
Requires.private: x11 xft
Libs: -L${libdir} -lntk
Cflags: -I${includedir}/ntk -pthread -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
任何帮助都是极好的。如果您需要更多信息,请发表评论,我会给您。先感谢您!!