Created
October 22, 2017 15:56
-
-
Save GudarJs/c4d79b668cb49b8628013e2accb96644 to your computer and use it in GitHub Desktop.
Cmake command to install opencv 3.3 with python 3 support.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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