UnsatisfiedLinkError errordlopen failed: cannot locate symbol "rand"


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)

Important changes:
  • Added 3 new ABIs, all 64-bit: arm64-v8a, x86_64, mips64. Note that:
    • GCC 4.9 is the default compiler for 64-bit ABIs. Clang is currently version 3.4.NDK_TOOLCHAIN_VERSION=clang may not 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 will replace it atL-release.
    • This release includes now includes all32 and all64settings for APP_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.

虽然上面说的APP_ABI=ALL32 但其实指的是32bit 的NDK 包下午的编译选项,并不是说64bit NDK package 可以编译出32bit 的armeabi lib


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值