编译错误在空cocos2d 2.0(iPhone) [英] Compile error in empty cocos2d 2.0 (iPhone)

查看:109
本文介绍了编译错误在空cocos2d 2.0(iPhone)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在xcode4中编译新的cocos2d + box2d项目。
我得到错误消息像:
/用户/ bla-bla / Cocos2d测试/ Cocos2d测试/ libs / cocos2d / CCDirector.h:32:9:致命错误:'kazmath / mat4.h'文件找不到[2]

When I try to compile new cocos2d+box2d project in xcode4. I got error message like: /Users/bla-bla/Cocos2d testing/Cocos2d testing/libs/cocos2d/CCDirector.h:32:9: fatal error: 'kazmath/mat4.h' file not found [2]

/ Users / bla-bla / Cocos2d测试/ Cocos2d测试/ libs / cocos2d / CCNode.h:37:9:致命错误:'kazmath /kazmath.h'file not found [2]

/Users/bla-bla/Cocos2d testing/Cocos2d testing/libs/cocos2d/CCNode.h:37:9: fatal error: 'kazmath/kazmath.h' file not found [2]

我检查过的文件有什么问题?

File I checked, what is wrong?

推荐答案

这是因为在您的项目的路径名中有一个空格。要解决此问题,您需要在搜索路径中的构建设置中的项目配置下添加以下内容: / code>,将标题搜索路径设置为以下值:

This is caused by having a space in the path name to your project. To work around this, you'll need to add the following under your project's configuration... in Build Settings, in the group of Search Paths, set the Header Search Paths to the following value:

"${SRCROOT}/Cocos2d testing/libs/kazmath/include"

以包括双引号。

这篇关于编译错误在空cocos2d 2.0(iPhone)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆