之前我使用过3.0rc。那时,android build是成功的。
但在3.7中会出现编译错误。
在iOS版本中非常成功。但是android无法编译。
/Users/RetinaFish/android-ndk-r9d/build/core/build-binary.mk:393: warning: overriding commands for target `obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/SpuLibspe2Support.o'
/Users/RetinaFish/android-ndk-r9d/build/core/build-binary.mk:393: warning: ignoring old commands for target `obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/SpuLibspe2Support.o'
[armeabi] Compile++ thumb: cocos2dcpp_shared <= AppVariable.cpp
[armeabi] Compile++ thumb: cocos2dcpp_shared <= Bullet.cpp
[armeabi] Compile++ thumb: cocos2dcpp_shared <= CCTBezierRotateTo.cpp
[armeabi] Compile++ thumb: cocos2dcpp_shared <= CCTBezierSpinTo.cpp
In file included from jni/../../Classes/CCTBezierSpinTo.cpp:9:0:
jni/../../Classes/CCTBezierSpinTo.h:12:30: fatal error: CCActionInterval.h: No such file or directory
#include "CCActionInterval.h"
^
In file included from jni/../../Classes/CCTBezierRotateTo.cpp:9:0:
jni/../../Classes/CCTBezierRotateTo.h:12:30: fatal error: CCActionInterval.h: No such file or directory
#include "CCActionInterval.h"
^
compilation terminated.
compilation terminated.
make: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/CCTBezierSpinTo.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/CCTBezierRotateTo.o] Error 1
In file included from jni/../../Classes/Ship.h:15:0,
from jni/../../Classes/AppVariable.h:15,
from jni/../../Classes/AppVariable.cpp:9:
jni/../../Classes/SubShip.h:11:22: fatal error: CCSprite.h: No such file or directory
#include "CCSprite.h"
^
In file included from jni/../../Classes/Ship.h:15:0,
from jni/../../Classes/AppVariable.h:15,
from jni/../../Classes/Bullet.cpp:10:
jni/../../Classes/SubShip.h:11:22: fatal error: CCSprite.h: No such file or directory
#include "CCSprite.h"
^
compilation terminated.
compilation terminated.
make: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/Bullet.o] Error 1
make: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/AppVariable.o] Error 1
make: Leaving directory `/Projects/PacificWar/proj.android'
Error running command, return code: 2.
以上显示错误。
我无法理解它无法找到CCSprite.h或CCActionInterval.h。
我同时使用Android Studio和Eclipse。但它不起作用。
有没有人知道如何解决这个问题?