Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

cocos2d x 3.13.1 打包时出错,求助

$
0
0

@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

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>