Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java directory not found under /usr/local/Cellar/opencv - Macos Big Sur Installation #21

Open
vivekjustthink opened this issue Oct 18, 2021 · 2 comments

Comments

@vivekjustthink
Copy link

Hi, Following this article to install opencv in macos Big Sur, i get the installation success but not found the java directory under this path /usr/local/Cellar/opencv/4.5.3_2/share.

Original Error
java.lang.UnsatisfiedLinkError: no opencv_java453 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at FaceDetectionImage.(FaceDetectionImage.java:14)

Kindly suggest.

@Danisa-R
Copy link

Danisa-R commented Jan 20, 2022

I have the same problem and I'm also running on MacOS Big Sur w/ M1. I'm not able to find the jar file under the given path

I've tried finding it through my Finder and only get up till /usr/local/Cellar/opencv/4.5.3_2/share before things go wrong

Edit: I found my error. I realized I originally didn't save edits to -DBUILD_opencv_java=ON before I installed w/ brew install --build-from-source opencv . I deleted OpenCV and re-installed. Also, it may be useful for you to check your /opt/homebrew/Cellar/opencv/4x.x.x_x: directory, the jar file might be there

@AppnovaHub
Copy link

AppnovaHub commented Feb 22, 2023

I would like to add that I have this error as well, -DBUILD_opencv_java=ON was set, and ant is already installed. MacOS 12.6.3

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

No branches or pull requests

3 participants