简体   繁体   English

无法使用libxml2和XCode 4.4编译我的项目

[英]Unable to compile my project with libxml2 and XCode 4.4

My project was working without errors on XCode 4.2 on Lion . 我的项目在Lion上的XCode 4.2上正常运行。 Now I'm running Mountain Lion with XCode 4.4 and when I try to build the project it gives me an error that tree.h file cannot be found. 现在,我使用XCode 4.4运行Mountain Lion ,当我尝试构建项目时,它给我一个错误, tree.h文件。 I checked the header search path and it was correct. 我检查了标题搜索路径,它是正确的。 I searched the web for such an error and found the same solution on many different pages but couldn't understand that particular solution, see for example this page . 我在网上搜索了这样的错误,并在许多不同的页面上找到了相同的解决方案,但无法理解该特定解决方案,例如,请参见此页面

How can I solve this problem? 我怎么解决这个问题? Alternately, can you clarify the weird solution that is spread all over the internet? 或者,您能否阐明遍布互联网的怪异解决方案?

I had to add another header search path which is: $(SDKROOT)/usr/include/libxml2 . 我必须添加另一个标头搜索路径: $(SDKROOT)/usr/include/libxml2 This fixed the problem. 这解决了问题。

进入XCode首选项并安装命令行工具。

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

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