Created
April 19, 2018 08:16
-
-
Save nvnnghia/c206872ca9056270ef19aaebdd979df9 to your computer and use it in GitHub Desktop.
build opencv
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
git clone https://github.com/Itseez/opencv.git --depth=1 | |
git clone https://github.com/Itseez/opencv_contrib --depth=1 | |
cd opencv | |
mkdir build | |
cd build | |
cmake -D CMAKE_BUILD_TYPE=RELEASE \ | |
-D CMAKE_INSTALL_PREFIX=/usr/local \ | |
-D WITH_TBB=ON \ | |
-D BUILD_NEW_PYTHON_SUPPORT=ON \ | |
-D WITH_V4L=OFF \ | |
-D WITH_OPENGL=OFF \ | |
-D INSTALL_C_EXAMPLES=OFF \ | |
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules .. | |
-D WITH_QT=OFF \ | |
-D WITH_GTK=OFF | |
make -j4 | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment