I get the following errors when trying to run build_native.sh for android:undefined reference to ‘vtable for GameOverScene’undefined reference to ‘GameOverScene::init()’
anyone know how to fix this?
Please get the latest code from github, SimpleGame is a part of samples now.https://github.com/cocos2d/cocos2d-x/tree/gles20/samples/SimpleGame
Walzer Wang wrote:
I do have the latest build and can run it inside Visual Studio 2008but when I try to create the port for android (by running build_native.sh) that is when it fails.
I think it might be because the build_native doesn’t know about building the GameOverScene classes. Is there something special I need to do to add classes to the visual studio project, or the android build?
I just re-check its Android.mk file, https://github.com/cocos2d/cocos2d-x/blob/gles20/samples/SimpleGame/proj.android/jni/Android.mkIt do involves GameOverScene.cpp. The latest code was compiled successfully on my dev env (ndk r8b) 3 mins ago.