Last active
March 15, 2019 07:42
-
-
Save hzhan147/de3ae67ef133083e5acd09470164ee65 to your computer and use it in GitHub Desktop.
Install Opencv3.4.5 on Ubuntu 14.04
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
# Download Opencv from https://github.com/opencv/opencv/archive/3.4.5.zip | |
# Extract the zip file into ~/ directory, in this case we have a folder ~/opencv-3.4.5/ | |
# https://docs.opencv.org/3.4.5/d7/d9f/tutorial_linux_install.html | |
sudo apt-get install build-essential | |
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev | |
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev | |
sudo apt-get install cmake-qt-gui | |
cd ~/opencv-3.4.5/ | |
mkdir build | |
cd build | |
cmake-gui | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/x86_64-linux-gnu/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment