Skip to content

Instantly share code, notes, and snippets.

@anguyen8
Created August 17, 2015 17:47
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 anguyen8/9726dd8efbc97477d959 to your computer and use it in GitHub Desktop.
Save anguyen8/9726dd8efbc97477d959 to your computer and use it in GitHub Desktop.
Build OpenCV 3.0 on OSX to work with dlib
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local \
-D PYTHON2_PACKAGES_PATH=~/anaconda/lib/python2.7/site-packages \
-D PYTHON2_LIBRARY=~/anaconda/lib/libpython2.7.dylib \
-D PYTHON2_INCLUDE_DIR=~/anaconda/include/python2.7 \
-D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON \
-D BUILD_opencv_gpu=OFF \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment