Skip to content

Instantly share code, notes, and snippets.

@diegoaguilar
Created March 15, 2015 02:54
Show Gist options
  • Save diegoaguilar/003dd4e46afc1b41b45b to your computer and use it in GitHub Desktop.
Save diegoaguilar/003dd4e46afc1b41b45b to your computer and use it in GitHub Desktop.
OpenCV Linux install
echo "Installing dependencies:\nbuild-essential\ncmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev\npython-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev"
sudo apt-get install -y build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
git clone https://github.com/Itseez/opencv.git
cd ~/opencv
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
make -j7
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment