Skip to content

Instantly share code, notes, and snippets.

@nvnnghia
Created April 19, 2018 08:16
Show Gist options
  • Save nvnnghia/c206872ca9056270ef19aaebdd979df9 to your computer and use it in GitHub Desktop.
Save nvnnghia/c206872ca9056270ef19aaebdd979df9 to your computer and use it in GitHub Desktop.
build opencv
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