空 cocos2d 2.0 (iPhone) 中的编译错误

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

问题描述

当我尝试在 xcode4 中编译新的 cocos2d+box2d 项目时.我收到如下错误消息:/Users/bla-bla/Cocos2d testing/Cocos2d testing/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 testing/Cocos2d testing/libs/cocos2d/CCNode.h:37:9: 致命错误: 'kazmath/kazmath.h' 文件未找到 [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?

推荐答案

这是由于您的项目的路径名中有空格造成的.要解决此问题,您需要在项目的配置下添加以下内容...在 Build SettingsSearch Paths 组中,设置 标头搜索路径到以下值:

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) 中的编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

java.lang.IllegalStateException: SimpleTypeImpl should not be created for error type(异常:不应为错误类型创建SimpleTypeImpl)
Android IllegalArgumentException: The tag for fragment_XXX is invalid. Received: layout-sw600dp/fragment_XXX_0(Android IlLegalArgumentException:Fragment_XXX的标签无效。收到:Layout-sw600dp/Fragment_XXX_0)
HTTPS request using volley(使用 volley 的 HTTPS 请求)
Error: Name not maching for self signed SSL certificates on Android(错误:Android 上自签名 SSL 证书的名称不匹配)
Android 7.0 : #39;javax.net.ssl.SSLHandshakeException: Connection closed by peer(Android 7.0:javax.net.ssl.SSLHandshakeException:连接被对等方关闭)
Is it possible to generate certificate signing request(.csr) using security framework in iOS?(是否可以在 iOS 中使用安全框架生成证书签名请求(.csr)?)