Skip to content

Instantly share code, notes, and snippets.

@sunfuze
Last active August 29, 2015 14:01
Show Gist options
  • Save sunfuze/9975133f33f6d77ec029 to your computer and use it in GitHub Desktop.
Save sunfuze/9975133f33f6d77ec029 to your computer and use it in GitHub Desktop.
install opencv in ubuntu 14.04
#! /bin/bash
# install dependencies
sudo apt-get install gcc cmake build-essential libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev python-dev python-numpy
# get source
git clone https://github.com/Itseez/opencv.git
cd opencv
mkdir build
cd build
cmake -d CMAKE_BUILD_TYPE=RELEASE -D MAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment