cocos2d-x android compile ERROR -
i can run code in vc2012. need compile code android use linux system run ./build_native.sh . terminal turn out this
staticlibrary : libchipmunk.a compile thumb : cpufeatures <= cpu-features.c staticlibrary : libcpufeatures.a sharedlibrary : libgame.so /mydata/data/java/adt-bundle-linux-x86_64-20130717/android-ndk-r8e/toolchains/arm-linux- androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux- androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/classes/appdelegate.o: in function appdelegate::applicationdidfinishlaunching():jni/../../classes/appdelegate.cpp:29: error: undefined reference 'cpwscene::createscene()' collect2: ld returned 1 exit status make: *** [obj/local/armeabi/libgame.so] error 1 make: leaving directory `/mydata/workspace/c++/cocos2d-2.1rc0-x-2.1.3/workspace/classdesgin/proj.android'
you have add cpwscene.cpp file android.mk file compiler can compile file. android.mk file located in proj.android/jni folder. in order compile project need list cpp files in android.mk file.
Comments
Post a Comment