转载请注明出处: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 is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-apple-darwin
原来是对机器的位搞错了,,我的android 机器是32 位,但 应该下32 位的ndk
https://developer.android.com/tools/sdk/ndk/index.html
lAndroid NDK, Revision 10(July 2014)
NDK_TOOLCHAIN_VERSION=clang
may not work for arm64-v8a and mips64.all32
and all64
settings forAPP_ABI
.
APP_ABI=all32
is equivalent toAPP_ABI=armeabi,armeabi-v7a,x86,mips
.APP_ABI=all64
is equivalent toAPP_ABI=arm64-v8a,x86_64,mips64
.APP_ABI=all
selects all ABIs.Android JNI之——UnsatisfiedLinkError errordlopen failed: cannot locate symbol "rand"
原文地址:http://blog.csdn.net/l1028386804/article/details/46593083