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"