简体   繁体   English

如何将库添加到PKG-CONFIG Mac

[英]How to add library to PKG-CONFIG Mac

I am trying to get flikcurl to sync with pkg-config. 我正在尝试让flikcurl与pkg-config同步。 I tried installing it via macports, but it results in an error during build. 我尝试通过macports安装它,但是在构建过程中导致错误。

I am able to find the flickurl.a static library and the src headers. 我能够找到flickurl.a静态库和src标头。

My question is, how do I add these to the PKG_CONFIG path? 我的问题是,如何将它们添加到PKG_CONFIG路径?

Thanks! 谢谢!

If flickcurl.pc is in the directory /p/a/t/h, you need to add /p/a/t/h to PKG_CONFIG_PATH, which is a colon separated list of all the places that pkg-config will look for pc files: 如果flickcurl.pc在目录/ p / a / t / h中,则需要将/ p / a / t / h添加到PKG_CONFIG_PATH中,这是用冒号分隔的列表,其中pkg-config将查找pc的所有位置文件:

$ export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}/p/a/t/h

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM