Hello, I’ve been trying to make a game work using cocos2dx, but when I added the chipmunk library to the compilation process, all goes well until I try to actually make it work on the android phone (when I click “Run” in eclipse).
I get:
E/AndroidRuntime(23549): FATAL EXCEPTION: main
E/AndroidRuntime(23549): java.lang.ExceptionInInitializerError
E/AndroidRuntime(23549): at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime(23549): at java.lang.Class.newInstance(Class.java:1409)
E/AndroidRuntime(23549): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime(23549): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
E/AndroidRuntime(23549): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
E/AndroidRuntime(23549): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime(23549): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime(23549): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(23549): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(23549): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime(23549): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(23549): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(23549): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime(23549): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime(23549): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(23549): *Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1962]: 67 could not load needed library ‘libchipmunk.so’ for ‘libgame.so’ (load_library[1104]: Library ‘libchipmunk.so’ not found)*
E/AndroidRuntime(23549): at java.lang.Runtime.loadLibrary(Runtime.java:434)
E/AndroidRuntime(23549): at java.lang.System.loadLibrary(System.java:554)
E/AndroidRuntime(23549): at com.mutantgames.fvz.FVZ_2_3.(FVZ_2_3.java:48)
E/AndroidRuntime(23549): … 15 more
W/ActivityManager( 96): Force finishing activity com.mutantgames.fvz/.FVZ_2_3
D/dalvikvm(12273): GC_CONCURRENT freed 1009K, 49% free 3937K/7687K, external 1625K/2137K, paused 3ms+5ms
W/ActivityManager( 96): Activity pause timeout for HistoryRecord{4077a1a8 com.mutantgames.fvz/.FVZ_2_3}
Any ideas? I think I made all the necesary changes to the makefiles, and indeed in android\libs\armeabi there IS a libchipmunk.so file.
Thanks for your time.