Last active
April 8, 2019 14:23
-
-
Save zshipko/4444e7529b7581d99f9857db35e8c153 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
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