runnin build_native.sh时出现Cygwin错误

时间:2013-02-26 07:45:35

标签: cocos2d-iphone cygwin

我收到错误

$ ./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:输入目录/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 target obj / local / armeabi / objs / game_shared / / /Classes/HelloWorldScene.o'失败 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'

但都在范围内

1 个答案:

答案 0 :(得分:0)

从阅读本文开始,您HelloWorldScene.cpp内部就会出现拼写错误。

CCsprite应为CCSprite

这只是一个错误,可能还有更多错误,无法判断您发布的内容。