Error java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library , cannot locate 'srand'...

  • amisha
    Likes 0

    Problem Description

    I create a new project in android windows 64 bit in with cocos2dx 3.7.I compile project using build_native.py then after i run the project in eclipse but it crash and error is like below.I use android-ndk-r10e ,apache ant 1.9.4,eclipse juno ,python 2.7.I refer this video for setting up on windows https://www.youtube.com/watch?v=B9ObAzm6rnQ

    10-08 12:18:20.240: E/libEGL(163): eglSetSwapRectangleANDROID:1844 error 3008 (EGL_BAD_DISPLAY)
    10-08 12:18:20.272: E/SurfaceFlinger(163): setOrientation with orientation=0
    10-08 12:18:20.272: E/SurfaceFlinger(163): setOrientation orientation=0
    10-08 12:18:20.276: E/FramebufferNativeWindow(163): setOrientation with fbDev=0xa02f780 fbDev->setOrientation=0x85100c10 orientation=0
    10-08 12:18:20.852: E/SurfaceFlinger(163): eglSwapBuffers: EGL error 0x3008 (EGL_BAD_DISPLAY)
    10-08 12:18:25.416: E/EventHub(163): could not get driver version for /dev/input/mouse1, Not a typewriter
    10-08 12:18:25.584: E/WifiHW(163): Unable to open connection to supplicant on "eth1": No such file or directory
    10-08 12:18:25.676: E/EventHub(163): could not get driver version for /dev/input/mouse0, Not a typewriter
    10-08 12:18:25.764: E/EventHub(163): could not get driver version for /dev/input/mice, Not a typewriter
    10-08 12:18:28.676: E/GpsLocationProvider(163): no AGPS interface in agps_data_conn_open
    10-08 12:19:42.864: E/AndroidRuntime(539): FATAL EXCEPTION: main
    10-08 12:19:42.864: E/AndroidRuntime(539): java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1316]:   115 cannot locate 'srand'...
    10-08 12:19:42.864: E/AndroidRuntime(539):     at java.lang.Runtime.loadLibrary(Runtime.java:434)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at java.lang.System.loadLibrary(System.java:554)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:207)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:222)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at android.os.Handler.dispatchMessage(Handler.java:99)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at android.os.Looper.loop(Looper.java:130)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at android.app.ActivityThread.main(ActivityThread.java:3683)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at java.lang.reflect.Method.invokeNative(Native Method)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at java.lang.reflect.Method.invoke(Method.java:507)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    10-08 12:19:42.864: E/AndroidRuntime(539):     at dalvik.system.NativeStart.main(Native Method)
    10-08 12:20:40.568: E/AndroidRuntime(575): FATAL EXCEPTION: main
    10-08 12:20:40.568: E/AndroidRuntime(575): java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1316]:   115 cannot locate 'srand'...
    10-08 12:20:40.568: E/AndroidRuntime(575):     at java.lang.Runtime.loadLibrary(Runtime.java:434)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at java.lang.System.loadLibrary(System.java:554)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:207)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:222)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at android.os.Handler.dispatchMessage(Handler.java:99)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at android.os.Looper.loop(Looper.java:130)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at android.app.ActivityThread.main(ActivityThread.java:3683)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at java.lang.reflect.Method.invokeNative(Native Method)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at java.lang.reflect.Method.invoke(Method.java:507)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    10-08 12:20:40.568: E/AndroidRuntime(575):     at dalvik.system.NativeStart.main(Native Method)
    : E/(): Device disconnected: 1
    : E/(): Device disconnected

     

    I try to  run the project  in avd api 10 and 21 both,and set target sdk is 10.stop unexpectly pop up is shown on immulator screen

     

     

     

     

     

Login to reply