@1112532 写道:
代码中有用到CCPlatformConfig.h,CCFileUtils.h这两个类,在导入vs 2013后编译出现
fatal error C1083: 无法打开包括文件:“CCPlatformDefine.h”: No such file or directory
fatal error C1083: 无法打开包括文件:“CCFileUtils.h”: No such file or directory
我改为#include "cocos2d/cocos/platform/CCPlatformConfig.h"后,在vs编译ok。
然后我需要将项目打包为apk时,使用命令行进行编译时
cocos compile -p android --android-studio -m release
出现以下错误
jni/../../../Classes/MTable.cpp:6:53: fatal error: cocos2d/cocos/platform/CCPlatformConfig.h: No such file or directory
#include "cocos2d/cocos/platform/CCPlatformConfig.h"
^
compilation terminated.
jni/../../../Classes/LMini.cpp:9:48: fatal error: cocos2d/cocos/platform/CCFileUtils.h: No such file or directory
#include "cocos2d/cocos/platform/CCFileUtils.h"
^
compilation terminated.
make.exe: *** [obj/local/armeabi/objs/MyGame_shared/__/__/__/Classes/MTable.o] Error 1
make.exe: *** Waiting for unfinished jobs....
make.exe: *** [obj/local/armeabi/objs/MyGame_shared/__/__/__/Classes/LMini.o] Error 1
帖子: 2
参与者: 1