cocos2d-x’s demo is very excellent,but when i’m using it to do my small test………
is there any thing to set in someplace?it really runs well under win32 platform.
here is what the cygwin said:
——————————————————————————————————————————————————
SharedLibrary : libgame.so
E:/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android/obj/local/armeabi/objs-debug/game/…/…/…/Classes/HelloWorldScene.o: In function `HelloWorldScene::init()‘:
E:/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android/jni/helloworld/…/…/…/Classes/HelloWorldScene.cpp:119: undefined reference to `HelloCocos2dSprite::spriteWithFile(bool, char const**)’
E:/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android/jni/helloworld/…/…/…/Classes/HelloWorldScene.cpp:120: undefined reference to `HelloCocos2dSprite::logicInit’
E:/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android/jni/helloworld/…/…/…/Classes/HelloWorldScene.cpp:144: undefined reference to `HelloCocos2dSprite::spriteWithFile’
E:/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android/jni/helloworld/…/…/…/Classes/HelloWorldScene.cpp:145: undefined reference to `HelloCocos2dSprite::logicInit’
E:/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android/obj/local/armeabi/objs-debug/game/…/…/…/Classes/HelloWorldScene.o: In function `HelloWorldScene::update’:
E:/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android/jni/helloworld/…/…/…/Classes/HelloWorldScene.cpp:268: undefined reference to `HelloCocos2dSprite::logicUpdate’
E:/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android/jni/helloworld/…/…/…/Classes/HelloWorldScene.cpp:277: undefined reference to `HelloCocos2dSprite::getUnitSpeedX’
E:/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android/jni/helloworld/…/…/…/Classes/HelloWorldScene.cpp:277: undefined reference to `HelloCocos2dSprite::getUnitSpeedY’
E:/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android/jni/helloworld/…/…/…/Classes/HelloWorldScene.cpp:288: undefined reference to `HelloCocos2dSprite::logicUpdate’
collect2: ld returned 1 exit status
make:**** [/cygdrive/e/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android/obj/local/armeabi/libgame.so] Error 1
make: Leaving directory `/cygdrive/e/workspace_cpp/cocos2d-0.99.5-x-0.8.3/HelloCocos2d/android’
and here is another 2 resource file:
map.jpg ——you can use any image bigger than the screen size;
edward.png ——just copy & paste the icon file;
is the problem in my code?it’s my first project in cocos2d-x……
you’re right, i did not modify Android.mk, I should add all .cpp file to it;).
now I can build the project using cygwin, success)
then,using eclipse to create helloCocos2d.apk automatically,
installation is very successful,
but when I click this application on my phone(moto xt502), it returned to homescreen…….