Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The method of compiling opencv java with mac

Shulou Source: shulou.com Published: 2022-06-02 09:17:28 09月24日 Update

This article mainly explains the "method of mac compiling opencv java". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the method of compiling opencv java by mac".

Edit the compiled configuration using brew edit opencv@2 and change-DBUILD_opencv_java=OFF to-DBUILD_opencv_java=ON

Installation

Brew install-build-from-source opencv@2

Reinstall for reinstallation

View installation location

➜~ ll / usr/local/Cellar/opencv@2/2.4.13.7_5/share/OpenCV/javatotal 2264-rwxr-xr-x 1 aa admin 691K 10 09:52 libopencv_java2413.dylib-rw-r--r-- 1 aa admin 440K 10 10 09:52 opencv-2413.jar

Right-click the project, select "Open Module Settings", and add opencv-2413.jar to Libraries

Configure tomcat startup parameters,-Djava.library.path=/usr/local/Cellar/opencv@2/2.4.13.7_5/share/OpenCV/java

Thank you for your reading, the above is the content of "the method of mac compiling opencv java", after the study of this article, I believe you have a deeper understanding of the method of compiling opencv java by mac, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Compilation method learning content configuration location parameters that is ideas situations articles more knowledge knowledge points articles follow questions projects practices push Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple vpn MySQL OPPO Reno Shulou Tech Info