Return to site

Wrapping java for mac

broken image

Then, after saving the file, you can effectively install OpenCV:Īfter the installation of OpenCV, the needed jar file and the dylib library will be located at /usr/local/Cellar/opencv/3.x.x/share/OpenCV/java/, e.g., /usr/local/Cellar/opencv/3.3.1/share/OpenCV/java/. In the text editor that will open, change the line:

broken image

To install OpenCV (with Java support) through Homebrew, you need to edit the opencv formula in Homebrew, to add support for Java: Otherwise, install it with Homebrew:Īnt should be available at /usr/local/bin/ant. Otherwise, continue with the OpenCV installation.Īs a prerequisite, check that Apache Ant is installed.

broken image

If macOS asks for installing such tools, proceed with the download and installation.

broken image

After installing Homebrew, you have to check whether the XCode Command Line Tools are already installed on your system. The quickest way to obtain OpenCV under macOS is to use Homebrew.