-
-
Save malev/5103d31e558cc3f9e363 to your computer and use it in GitHub Desktop.
Script to install OpenCV 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
# 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