Skip to content

Instantly share code, notes, and snippets.

@GudarJs
Created October 22, 2017 15:56
Show Gist options
  • Save GudarJs/c4d79b668cb49b8628013e2accb96644 to your computer and use it in GitHub Desktop.
Save GudarJs/c4d79b668cb49b8628013e2accb96644 to your computer and use it in GitHub Desktop.
Cmake command to install opencv 3.3 with python 3 support.
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
-D BUILD_EXAMPLES=ON \
-D CMAKE_CXX_COMPILER=$(which g++) \
-D CMAKE_C_COMPILER=$(which gcc) \
-D PYTHON_DEFAULT_EXECUTABLE=$(which python3) ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment