Skip to content

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

Open

Description

@vivekjustthink

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.

Activity

  1. Danisa-R commented on Jan 20, 2022

    @Danisa-R

    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

  2. j-schauer commented on Feb 22, 2023

    @j-schauer

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions