Android JNI--unsatisfiedlinkerror errordlopen failed:cannot Locate symbol "Rand"

Source: Internet
Author: User

Reprint Please specify source: http://blog.csdn.net/l1028386804/article/details/46593083

E/DALVIKVM (19498): Dlopen ("/data/app-lib/com.mystylinglounge.salonluatest-2/libcocos2dlua.so") Failed:dlopen Failed:cannot Locate symbol "Rand" referenced by "libcocos2dlua.so" ...
V/trevor (19498): Unsatisfiedlinkerror errordlopen failed:cannot Locate symbol "Rand" referenced by "libcocos2dlua.so". .

https://code.google.com/p/android-developer-preview/issues/detail?id=168

Gz-rios-mac05:proj.android mac05$ Ndk-build-v
GNU make 3.81
Copyright (C) 2006 free Software Foundation, Inc.
This was free software; See the source for copying conditions.
There is NO warranty; Not even to merchantability or FITNESS for A
Particular PURPOSE.
This program built for X86_64-apple-darwin

Turns out to be a bit wrong with the machine, my Android machine is 32 bit but should be under 32 bits of the NDK

Https://developer.android.com/tools/sdk/ndk/index.html

Landroid NDK, Revision(July)

Important changes:
  • Added 3 new ABIs, all 64-bit:arm64-v8a, x86_64, Mips64. Note:
    • GCC 4.9 is the default compiler for 64-bit ABIs. Clang is currently version 3.4. Ndk_toolchain_version=clang may isn't work for arm64-v8a and MIPS64.
    • Android-l is the first level with 64-bit support. Note that this apilevel is a temporary one, and only for L-preview. An actual API level number would replace it atl-release.
    • This release includes now includes all32 and all64 settings for App_abi .
      • app_abi=all32 is equivalent to app_abi=armeabi,armeabi-v7a,x86,mips .
      • app_abi=all64 is equivalent to app_abi=arm64-v8a,x86_64,mips64 .
      • app_abi=all selects all ABIs.
Although the above-mentioned app_abi=all32 but in fact refers to the 32bit NDK package in the afternoon of the compilation options, not that the 64bit NDK can compile 32bit Armeabi Lib

Android JNI--unsatisfiedlinkerror errordlopen failed:cannot Locate symbol "Rand"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.