Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

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

Closed
jenia opened this issue Oct 6, 2017 · 2 comments
Closed

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

jenia opened this issue Oct 6, 2017 · 2 comments

Comments

@jenia
Copy link

jenia commented Oct 6, 2017

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
Copy link

anonym24 commented Oct 11, 2017

#197 (comment)

put libopencv_java3.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
Copy link
Owner

rmtheis commented Nov 4, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants