编译我自己的项目出问题,然后尝试编译了new之后默认的helloworld,成功,对比后,我的项目用到了#include “…/cocos2d/cocos/ui/CocosGUI.h”
提示信息如下:
make: Entering directory /Users/1/Desktop/MyCppGame/proj.android' Gdbserver : libs/armeabi/gdbserver Gdbsetup : libs/armeabi/gdb.setup Compile++ thumb: cocos2dcpp_shared <= AppDelegate.cpp In file included from /Users/1/Desktop/MyCppGame/proj.android/../cocos2d/cocos/2d/../ui/UIWidget.h:31:0, from jni/../../Classes/../cocos2d/cocos/ui/CocosGUI.h:29, from jni/../../Classes/HelloWorldScene.h:5, from jni/../../Classes/AppDelegate.cpp:2: /Users/1/Desktop/MyCppGame/proj.android/../cocos2d/cocos/2d/../ui/GUIDefine.h:31:38: fatal error: cocostudio/ObjectFactory.h: No such file or directory #include "cocostudio/ObjectFactory.h" ^ compilation terminated. make: *** Error 1 make: Leaving directory /Users/1/Desktop/MyCppGame/proj.android’
Error running command, return code: 2
我也试着去修改cocos2dx代码里面的#include路径,但是错误不断出现,都是关于路径的问题,想问问这种情况有什么办法可以正确解决
求帮助