Skip to content

Instantly share code, notes, and snippets.

@t-abe
Created November 11, 2016 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t-abe/74eeb10737e273ba45d11e0799413dc1 to your computer and use it in GitHub Desktop.
Save t-abe/74eeb10737e273ba45d11e0799413dc1 to your computer and use it in GitHub Desktop.
#! /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