如何使用pkg-config在Xcode中设置包含路径? [英] How to use pkg-config for setting include paths in Xcode?
本文介绍了如何使用pkg-config在Xcode中设置包含路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Xcode项目设置中使用
pkg-config gtk + -2.0 --cflags
?解决方案
一个选项,但它对于项目中的其他开发人员来说不是很便携 - 您可以运行 pkg-config gtk + -2.0 --cflags
在你的终端中,并粘贴到 Build Settings - >其他C标志
。我有兴趣听听其他人如何以更便携的方式处理这个问题。理想情况下,在编译时运行pkg-config会使构建更独立于系统是很好的选择。
For example, if I need Gtk+ include paths.
How to use pkg-config gtk+-2.0 --cflags
in Xcode project settings?
解决方案
One option, but it's not very portable to other developers on the project -- you can just run pkg-config gtk+-2.0 --cflags
in your Terminal and paste it into Build Settings -> Other C Flags
. I'd be interested to hear how others deal with this in a more portable way though. Ideally, it would be nice to have pkg-config run at compile-time to make building more system-independent.
这篇关于如何使用pkg-config在Xcode中设置包含路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文