If after installing OpenCV on Mac via brew, such as by using
brew install opencv
Then you may be getting an error when trying to use `System.loadLibrary(Core.NATIVE_LIBRARY_NAME)` that says something like:
UnsatisfiedLinkError: no opencv_java331 in java.library.path
The solution to this is to reinstall OpenCV with the proper Java libs. Try the following steps:
brew install ant brew edit opencv # change -DBUILD_opencv_java=OFF to ON brew uninstall opencv # if you installed opencv before brew install --build-from-source opencv # Note: this may take a long time
You may also need to point your IDE to the Java lib location by using a JVM arg such as:
Most Related Posts
Amazon Development Centre Application ExperienceIn October 2015 I applied for a Software Development Engineer Intern position at Amazon Development Centre in Edinburgh, United Kingdom. Here's my experience.
Contributing To Open Source Is Easier Than You ThinkThis weekend I made some contributions to open source repos on GitHub. It made me realise how easy it is to contribute something meaningful.
Enjoyed my post? Sign up to the newsletter to receive a small email when I post. No spam, I promise.