opencv-java-tutorials icon indicating copy to clipboard operation
opencv-java-tutorials copied to clipboard

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

Open vivekjustthink opened this issue 4 years ago • 2 comments

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.

vivekjustthink avatar Oct 18 '21 11:10 vivekjustthink

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

Danisa-R avatar Jan 20 '22 01:01 Danisa-R

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

AppnovaHub avatar Feb 22 '23 02:02 AppnovaHub