android zbar so 64,ZBAR android ARM 64 couldn't find “libiconv.so”

问题

On samsung galaxy s6 edge my app crashes when calling the zbar sdk, for scanning. I think it is because I don't have an arm64 version of zbar.

This is the end of the crash log:

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/.../base.apk"],nativeLibraryDirectories=[/data/app/.../lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libiconv.so"

at java.lang.Runtime.loadLibrary(Runtime.java:366)

I seen in my project that i don't have arm64 jni libs for zbar

is this related ?

and if so where can i get

libiconv.so

libzbarjni.so

for arm64 ?

回答1:

So finally found the zbar 64 bit from here:

https://github.com/SkillCollege/ZBarAndroidSDK/tree/master/ZBarScanProjAll/libs

it is found under arm64-v8a. All i had to do is rename the so file to match my project.

回答2:

I downloaded iconv.so and libZBarDecoder.so in arm64-v8a.

Rename libZBarDecoder.so to libzbarjni.so

Zip file and rename it to iconv.jar (because

"System.loadLibrary("iconv") in my project").

And finally it work. Thanks Noam Segev.

https://github.com/SkillCollege/ZBarAndroidSDK/tree/master/ZBarScanProjAll/libs

回答3:

For libiconv

Grab the libiconv source, and make an Android.mk makefile. Look at this site (http://groups.google.com/group/android-ndk/browse_thread/thread/012d679319e4ea6e?pli=1) for a prewritten makefile for libiconv and Android. Once you have the Android.mk file you can build using the ndk-build script.

For libzbarjni

http://www.blackdogfoundry.com/blog/?p=139

来源:https://stackoverflow.com/questions/32426861/zbar-android-arm-64-couldnt-find-libiconv-so

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值