Skip to content

Instantly share code, notes, and snippets.

@DahlitzFlorian
Created March 24, 2018 06:41
Show Gist options
  • Select an option

  • Save DahlitzFlorian/a5f9a176c929703a43ecb1bb1ef60a42 to your computer and use it in GitHub Desktop.

Select an option

Save DahlitzFlorian/a5f9a176c929703a43ecb1bb1ef60a42 to your computer and use it in GitHub Desktop.
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
-D PYTHON3_LIBRARY=/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6m/config-3.6m-darwin/libpython3.6.dylib \
-D PYTHON3_INCLUDE_DIR=/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/include/python3.6m/ \
-D PYTHON3_EXECUTABLE=$VIRTUAL_ENV/bin/python \
-D BUILD_opencv_python2=OFF \
-D BUILD_opencv_python3=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D INSTALL_C_EXAMPLES=OFF \
-D BUILD_EXAMPLES=ON ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment