我正在 build https://github.com/dev2dev/OpenSceneGraph-port-to-IOS , 它取决于 freetype ,所以我们需要在一些文件中使用“#include”。 我总是遇到构建错误:'ft2build.h' not found。
已尝试 https://stackoverflow.com/a/2109083 ,但对我没有用。
最佳答案
你安装了freetype
包了吗?如果没有,你有MacPorts ,您可以使用 sudo port install freetype
安装。 ft2build.h
将位于 /opt/local/include/ft2build.h
。
您需要按照您在 StackOverflow 问题中提到的有关如何将 /opt/local/include
添加到 Xcode 中的用户 header 搜索路径的说明进行操作。
关于c++ - XCode4 不能在 <> 中包含头文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10216595/