Installation OpenCV 4.1 on Odroid N2


Quick checklist for installing OpenCV 4.1 on my Odroid N2

OS : Ubuntu 18.04.2 LTS

First:
sudo apt update

sudo apt upgrade


Additionnal lib for OpenCV:
sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

sudo apt-get install libeigen3-dev


sudo apt-get install libpng-dev


Now OpenCV:
sudo apt-get install build-essentialsudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
[OPTION]sudo apt-get install libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

mkdir OpenCV
cd OpenCV

git clone https://github.com/opencv/opencv.git

git clone https://github.com/opencv/opencv_contrib.git


cd ~/opencvmkdir buildcd buildcmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..


sudo make install

Commentaires