Skip to content

Instantly share code, notes, and snippets.

@KenVanHoeylandt
Created April 3, 2016 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KenVanHoeylandt/bcc6777fb142b72799e675f199ef54e9 to your computer and use it in GitHub Desktop.
Save KenVanHoeylandt/bcc6777fb142b72799e675f199ef54e9 to your computer and use it in GitHub Desktop.
OpenCV installation for OS X

Building and installing OpenCV on OS X for your Java project:

  • Download OpenCV
  • Make sure JAVA_HOME is set
  • Make sure ant is installed
  • build OpenCV:
    • mkdir build
    • cd build
    • cmake -G "Unix Makefiles" ..
    • make -j8
  • copy files to a folder in ./libs-runtime/
  • on OS X: execute ln -s libopencv_javaXXX.so libopencv_javaXXX.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment