Install openCV after installing CUDA

https://opencv.org/releases.html

then choose verion 3.4.1

Follows intruction for installing

Pre installation:

[compiler] sudo apt-get install build-essential

[required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev

[optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

Download opencv-3.4.1and extract to

/home/auv/opencv-3.4.1

Creat a folder, named as build

cd ~/opencv-3.4.1

mkdir build

cd build

Then run with option -D WITH_CUDA=ON

cmake -D CMAKE_BUILD_TYPE=Release -D WITH_CUDA=ON -D CMAKE_INSTALL_PREFIX=/usr/local ..

and run

make -j12

since auv7530 has 12 cores

then run

sudo make install

**************************

Check installl version of openCV

auvnano@jetsonnano:~$ pkg-config opencv --cflags

-I/usr/local/include/opencv -I/usr/local/include

auvnano@jetsonnano:~$ pkg-config --modversion opencv

3.4.1

Last updated