[英]how to add to pkg-config search paths on mac?
I'm trying to add a directory to the pkg-config search paths, but I cannot figure out how to do it on mac. 我正在尝试将目录添加到pkg-config搜索路径,但是我不知道如何在Mac上进行操作。 According to all the discussion I can find online, it looks like it should be according to the environment variable PKG_CONFIG_PATH
, that variable doesn't seem to exist. 根据我在网上可以找到的所有讨论,似乎应该根据环境变量PKG_CONFIG_PATH
,该变量似乎不存在。
For example: 例如:
$ echo $PKG_CONFIG_PATH
gives a blank response. 给出空白响应。
Also, I have tried doing this: 另外,我尝试这样做:
$ export PKG_CONFIG_PATH=/my/path:$PKG_CONFIG_PATH
And it does not change the results of $ pkg-config --variable pc_path pkg-config
. 并且它不会更改$ pkg-config --variable pc_path pkg-config
。
How are the pkg-config search paths handled on macOS? 在macOS上如何处理pkg-config搜索路径?
It turns out PKG_CONFIG_PATH
is the correct path. 事实证明PKG_CONFIG_PATH
是正确的路径。 It just does not echo to the console for some reason. 它只是由于某种原因而没有回显到控制台。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.