首頁  >  文章  >  資料庫  >  Cocos2d-x项目移植到WinRT/Win8小记

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

WBOY
WBOY原創
2016-06-07 15:19:011085瀏覽

打包错误,提示找不到 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

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn