Skip to content

Instantly share code, notes, and snippets.

@touren
Created August 26, 2016 17:36
Show Gist options
  • Select an option

  • Save touren/1f59f24ebf3c2713530bf8a104c644ca to your computer and use it in GitHub Desktop.

Select an option

Save touren/1f59f24ebf3c2713530bf8a104c644ca to your computer and use it in GitHub Desktop.
Install OpenCV dev environment on Ubuntu.
## 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