Skip to content

Instantly share code, notes, and snippets.

@zshipko
Last active April 8, 2019 14:23
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 zshipko/4444e7529b7581d99f9857db35e8c153 to your computer and use it in GitHub Desktop.
Save zshipko/4444e7529b7581d99f9857db35e8c153 to your computer and use it in GitHub Desktop.
git clone https://github.com/opencv/opencv || git -C ./opencv pull origin master
git clone https://github.com/opencv/opencv_contrib || git -C ./opencv_contrib pull origin master
rm -r opencv/build
mkdir -p opencv/build
cd opencv/build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DWITH_FFMPEG=1 \
-DOPENCV_GENERATE_PKGCONFIG=1 \
-DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ..
make -j 4
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment