ZBAR android ARM 64 could not find "libiconv.so"

On the Samsung s6 galaxy, my application crashes when I call zbar sdk to scan. I think this is due to the fact that I do not have a z64 version for arm64.

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 saw in my project that I do not have arm64 jni libs for zbar is this connected? and if so, where can I get libiconv.so libzbarjni.so for arm64?

+5
source share
3 answers

So finally, here is the zbar 64 bit found:

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

It is under arm64-v8a. All I had to do was rename the file to fit my project.

+5
source

For libiconv

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

For libzbarjni

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

+2
source

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

  • Rename libZBarDecoder.so to libzbarjni.so
  • Zip the file and rename it to iconv.jar (because "System.loadLibrary (" iconv ") in my project").

And finally, it works. Thanks to Noam Segev.

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

+2
source

All Articles