Skip to content

Instantly share code, notes, and snippets.

@malev
Forked from BloodAxe/setup.sh
Last active August 29, 2015 14:09
Show Gist options
  • Save malev/5103d31e558cc3f9e363 to your computer and use it in GitHub Desktop.
Save malev/5103d31e558cc3f9e363 to your computer and use it in GitHub Desktop.
Script to install OpenCV on Ubuntu
# Prepare system
apt-get updated
apt-get install -y cmake pkg-config python-software-properties python g++ make software-properties-common unzip
# Grab frest opencv library
curl -sL https://github.com/Itseez/opencv/archive/master.zip > opencv.zip
unzip opencv.zip
rm opencv.zip
# Configure & install OpenCV
mkdir opencv-build
cd opencv-build/
cmake -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DWITH_OPENEXR=OFF ../opencv-master/
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment