欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

Cocos2d-x项目移植到WinRT/Win8小记

程序员文章站 2022-04-26 16:07:58
...

打包错误,提示找不到 CCPlatformMacros.h 或者 CCPlatformConfig.h 文件。 Error 3 error C1083: Cannot open include file: ‘platform/CCPlatformMacros.h’: No such file or directory d:\workspacecocos2dx\cocos2d-x-2.2\cocos2dx\platform\winrt\CCS

打包错误,提示找不到CCPlatformMacros.h或者CCPlatformConfig.h文件。

Error 3 error C1083: Cannot open include file: ‘platform/CCPlatformMacros.h’: No such file or directory d:\workspacecocos2dx\cocos2d-x-2.2\cocos2dx\platform\winrt\CCStdC.h 29 1 ThunderPlaneX

Error 18 error C1083: Cannot open include file: ‘platform/CCPlatformConfig.h’: No such file or directory D:\WorkspaceCocos2dx\cocos2d-x-2.2\cocos2dx\include\ccConfig.h 30 1 ThunderPlaneX

错误说的很明显了,检查一下项目的include路径,应该是少了cocos2dx所在目录,加入即可:
$(ProjectDir)......\cocos2dx

另外需要注意的是,一下两个目录也别忘了要加入include路径当中。:
$(ProjectDir)......\CocosDenshion\include
$(ProjectDir)......\CocosDenshion\include