rmtheis / tess-two

Fork of Tesseract Tools for Android
Apache License 2.0
3.76k stars 1.38k forks source link

UnsatisfiedLinkError, libopencv_java3.so is 64-bit instead of 32-bit #226

Closed jenia closed 7 years ago

jenia commented 7 years ago

Summary: I cannot load tessaract when the app is starting. I get "UnsatisfiedLinkError, libopencv_java3.so is 64-bit instead of 32-bit".

In contrast, when I remove tesseract from the project, I can load the app with opencv and use the functionality of opencv.

Can you please tell me how to load your project in the 64 bit version? Thanks

anonym24 commented 7 years ago

https://github.com/rmtheis/tess-two/issues/197#issuecomment-335720132

put _libopencvjava3.so 32 bit (instead of 64) files to armeabi, armeabi-v7a, x86 folders (if you added them to your jniLibs manually, mb you added 64 bit .so files there)

here you can download any opencv for android and find needed .so files https://sourceforge.net/projects/opencvlibrary/files/opencv-android/ (for specific architecture)

rmtheis commented 7 years ago

This sounds to me like you need to use either the 32-bit version of both tess-two and OpenCV, or instead use the 64-bit version of both tess-two and OpenCV.

For this project, you can build versions for all ABIs using the instructions in BUILDING.md and setting the appropriate values for APP_ABI in Application.mk.

In any case, this is not a bug in this project.