【发布时间】:2013-04-22 19:45:49
【问题描述】:
我正在运行 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
任何帮助都会很棒。如果您需要更多信息,请发表评论,我会给您。提前谢谢你!
【问题讨论】:
-
你应该在superuser.com上问这个问题,你会更有可能得到答案。
标签: gentoo pkg-config