Created
November 11, 2016 06:17
-
-
Save t-abe/74eeb10737e273ba45d11e0799413dc1 to your computer and use it in GitHub Desktop.
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
#! /bin/bash | |
mkdir opencv_src | |
cd opencv_src | |
git clone https://github.com/opencv/opencv.git | |
git clone https://github.com/opencv/opencv_contrib.git | |
cd opencv | |
mkdir build | |
cd build | |
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=$HOME/.local -D WITH_TBB=ON -D WITH_EIGEN=OFF -D WITH_FFMPEG=ON -D WITH_QT=OFF -DWITH_CUDA=ON -DWITH_OPENCL=OFF -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules .. | |
make -j4 | |
make install | |
cd ../../.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment