cocos2d-x 3.13.1版本 + NDK r11c + SDK5.0.1 + jdk 7 编译版本 运行失败; 失败为无法加载 libcocos2dlua.so。 具体看上传log 和测试包上传中…
11-03 11:40:42.976: E/Trace(1871): error opening trace file: No such file or directory (2)
11-03 11:40:43.388: D/dalvikvm(1871): Trying to load lib /data/app-lib/com.tt.ss-1/libcocos2dlua.so 0xa6947778
11-03 11:40:43.664: E/dalvikvm(1871): dlopen("/data/app-lib/com.tt.ss-1/libcocos2dlua.so") failed: Cannot load library: load_library(linker.cpp:761): not a valid ELF executable: /data/app-lib/com.tt.ss-1/libcocos2dlua.so
11-03 11:40:43.668: D/AndroidRuntime(1871): Shutting down VM
11-03 11:40:43.668: W/dalvikvm(1871): threadid=1: thread exiting with uncaught exception (group=0xa60b1908)
11-03 11:40:43.676: E/AndroidRuntime(1871): FATAL EXCEPTION: main
11-03 11:40:43.676: E/AndroidRuntime(1871): java.lang.UnsatisfiedLinkError: Cannot load library: load_library(linker.cpp:761): not a valid ELF executable: /data/app-lib/com.tt.ss-1/libcocos2dlua.so
11-03 11:40:43.676: E/AndroidRuntime(1871): at java.lang.Runtime.loadLibrary(Runtime.java:371)
11-03 11:40:43.676: E/AndroidRuntime(1871): at java.lang.System.loadLibrary(System.java:535)
11-03 11:40:43.676: E/AndroidRuntime(1871): at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:248)
11-03 11:40:43.676: E/AndroidRuntime(1871): at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:264)
11-03 11:40:43.676: E/AndroidRuntime(1871): at android.app.Activity.performCreate(Activity.java:5104)
11-03 11:40:43.676: E/AndroidRuntime(1871): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1092)
11-03 11:40:43.676: E/AndroidRuntime(1871): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
11-03 11:40:43.676: E/AndroidRuntime(1871): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2254)
11-03 11:40:43.676: E/AndroidRuntime(1871): at android.app.ActivityThread.access$600(ActivityThread.java:141)
11-03 11:40:43.676: E/AndroidRuntime(1871): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
11-03 11:40:43.676: E/AndroidRuntime(1871): at android.os.Handler.dispatchMessage(Handler.java:99)
11-03 11:40:43.676: E/AndroidRuntime(1871): at android.os.Looper.loop(Looper.java:137)
11-03 11:40:43.676: E/AndroidRuntime(1871): at android.app.ActivityThread.main(ActivityThread.java:5069)
11-03 11:40:43.676: E/AndroidRuntime(1871): at java.lang.reflect.Method.invokeNative(Native Method)
11-03 11:40:43.676: E/AndroidRuntime(1871): at java.lang.reflect.Method.invoke(Method.java:511)
11-03 11:40:43.676: E/AndroidRuntime(1871): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
11-03 11:40:43.676: E/AndroidRuntime(1871): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
11-03 11:40:43.676: E/AndroidRuntime(1871): at dalvik.system.NativeStart.main(Native Method)
C++部分编译没成功吧?
5.0之后的可以运行的 请问如果C++部分没有成功 可能是什么原因造成的了 我直接新建的那个helloword工程的旧有这个问题 使用是NDK r11c + SDK 5.0.1 +JDK7 是不是这些有问题 能不能给个联系方式 急 谢谢
-
- 文字缩进4格
是否能够检查下这个问题 在4.0~5.0之间的机子必定出现这个 我上传一个包上去 但是好像 7M无法上传helloworld
自己找到问题了 使用SDK-19 +ndk-12b + cocos2d 3.13.1 可以在 4.0 和 5.0上运行了