Created
August 26, 2016 17:36
-
-
Save touren/1f59f24ebf3c2713530bf8a104c644ca to your computer and use it in GitHub Desktop.
Install OpenCV dev environment on Ubuntu.
This file contains hidden or 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
| ## install dev tool kit | |
| sudo apt-get update | |
| sudo apt-get install build-essential | |
| sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev -y | |
| ## build opencv 3.1 | |
| wget https://sourceforge.net/projects/opencvlibrary/files/latest/download/opencv-3.1.0.zip | |
| sudo apt-get install unzip | |
| unzip opencv-3.1.0.zip | |
| cd opencv-3.1.0/ | |
| mkdir release | |
| cd release/ | |
| cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. | |
| make -j4 | |
| sudo make install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment