0

我得到错误

$ ./build_native.sh NDK_ROOT = D:\android-ndk-r8d COCOS2DX_ROOT = /cygdrive/d/Cocos2D/cocos2d-2.1beta3-x-2.1.0/two_alian/proj.android/../.. APP_ROOT = / cygdrive/d/Cocos2D/cocos2d-2.1beta3-x-2.1.0/two_alian/proj.android/.. APP_ANDROID_ROOT = /cygdrive/d/Cocos2D/cocos2d-2.1beta3-x-2.1.0/two_alian/proj.android使用预构建的外部 make: Entering directory /cygdrive/d/Cocos2D/cocos2d-2.1beta3-x-2.1.0/two_alian/proj.android' Compile++ thumb : game_shared <= HelloWorldScene.cpp jni/../../Classes/HelloWorldScene.cpp: In member function 'void HelloWorld::spriteMoveFinished(cocos2d::CCNode*)': jni/../../Classes/HelloWorldScene.cpp:130:2: error: 'CCsprite' was not declared in this scope jni/../../Classes/HelloWorldScene.cpp:130:12: error: 'sprite' was not declared in this scope /cygdrive/d/android-ndk-r8d/build/core/build-binary.mk:269: recipe for targetobj/local/armeabi/objs/game_shared/ / /Classes/HelloWorldScene.o' failed make: * [obj/local/armeabi/objs/game_shared/ / /Classes/HelloWorldScene.o] 错误 1 make: 离开目录`/cygdrive/d/Cocos2D/cocos2d-2.1beta3-x-2.1.0/two_alian/proj.android'

但都在范围内

4

1 回答 1

0

从阅读本文看来,您的内部HelloWorldScene.cpp有错字。

CCsprite应该是CCSprite

这只是一个错误,可能还有更多,无法从您发布的内容中分辨出来。

于 2013-02-26T09:58:57.963 回答