Ubuntu 16.04 通过源代码 (Source Code) 安装的 OpenCV 4

Ubuntu 16.04 通过源代码 (Source Code) 安装的 OpenCV 4

You can install OpenCV from the Ubuntu repository or from the official site.

1. Install OpenCV 2 / 3 from the Ubuntu repository

You can install OpenCV 2 / 3 from the Ubuntu repository: sudo apt-get install libopencv-dev python3-opencv. However, you will probably not have installed the latest version of OpenCV and you may miss some features.

sudo apt-get install libopencv-dev python3-opencv # Python 3
sudo apt-get install libopencv-dev python-opencv # Python 2

2. Install OpenCV 4 from the official site

To install the latest version of OpenCV 4 be sure that you have removed the library from the repository with sudo apt-get autoremove libopencv-dev python3-opencv and follow the steps below.

sudo apt-get autoremove libopencv-dev python3-opencv # Python 3
sudo apt-get autoremove libopencv-dev python-opencv # Python 2
sudo pip uninstall python-opencv
sudo pip3 uninstall python-opencv
strong@foreverstrong:~$ sudo apt-get autoremove libopencv-dev python3-opencv
[sudo] password for strong:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-opencv
strong@foreverstrong:~$
strong@foreverstrong:~$ sudo apt-get autoremove libopencv-dev python-opencv
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'python-opencv' is not installed, so not removed
The following packages will be REMOVED:
  libcv-dev libcvaux-dev libhighgui-dev libopencv-calib3d-dev libopencv-contrib-dev libopencv-core-dev libopencv-dev libopencv-features2d-dev libopencv-flann-dev libopencv-gpu-dev
  libopencv-gpu2.4v5 libopencv-highgui-dev libopencv-imgproc-dev libopencv-legacy-dev libopencv-ml-dev libopencv-objdetect-dev libopencv-ocl-dev libopencv-ocl2.4v5 libopencv-photo-dev
  libopencv-photo2.4v5 libopencv-stitching-dev libopencv-stitching2.4v5 libopencv-superres-dev libopencv-superres2.4v5 libopencv-ts-dev libopencv-ts2.4v5 libopencv-video-dev
  libopencv-videostab-dev libopencv-videostab2.4v5 libopencv2.4-java libopencv2.4-jni linux-headers-4.13.0-41 linux-headers-4.13.0-41-generic linux-headers-4.13.0-43
  linux-headers-4.13.0-43-generic linux-headers-4.4.0-165 linux-headers-4.4.0-165-generic linux-image-4.13.0-41-generic linux-image-4.13.0-43-generic linux-image-4.4.0-165-generic
  linux-image-extra-4.13.0-41-generic linux-image-extra-4.13.0-43-generic linux-modules-4.4.0-165-generic linux-modules-extra-4.4.0-165-generic linux-signed-image-4.13.0-41-generic
  linux-signed-image-4.13.0-43-generic opencv-data
0 upgraded, 0 newly installed, 47 to remove and 22 not upgraded.
After this operation, 1,005 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 443098 files and directories currently installed.)
Removing libopencv-dev (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libcv-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libcvaux-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libhighgui-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-contrib-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-stitching-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-ts-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-ocl-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-videostab-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-superres-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-gpu-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-superres2.4v5:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-videostab2.4v5:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-objdetect-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-legacy-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-video-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-photo-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-ocl2.4v5:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv2.4-java (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv2.4-jni (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-photo2.4v5:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-stitching2.4v5:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-ts2.4v5:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing linux-headers-4.13.0-41-generic (4.13.0-41.46~16.04.1) ...
Removing linux-headers-4.13.0-41 (4.13.0-41.46~16.04.1) ...
Removing linux-headers-4.13.0-43-generic (4.13.0-43.48~16.04.1) ...
Removing linux-headers-4.13.0-43 (4.13.0-43.48~16.04.1) ...
Removing linux-headers-4.4.0-165-generic (4.4.0-165.193) ...
Removing linux-headers-4.4.0-165 (4.4.0-165.193) ...
Removing linux-signed-image-4.13.0-41-generic (4.13.0-41.46~16.04.1) ...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-70-generic
Found initrd image: /boot/initrd.img-4.15.0-70-generic
Found linux image: /boot/vmlinuz-4.15.0-65-generic
Found initrd image: /boot/initrd.img-4.15.0-65-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found linux image: /boot/vmlinuz-4.4.0-169-generic
Found initrd image: /boot/initrd.img-4.4.0-169-generic
Found linux image: /boot/vmlinuz-4.4.0-165-generic
Found initrd image: /boot/initrd.img-4.4.0-165-generic
Found Windows Boot Manager on /dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-extra-4.13.0-41-generic (4.13.0-41.46~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
dkms: WARNING: Linux headers are missing, which may explain the above failures.
      please install the linux-headers-4.13.0-41-generic package to fix this.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-41-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-70-generic
Found initrd image: /boot/initrd.img-4.15.0-70-generic
Found linux image: /boot/vmlinuz-4.15.0-65-generic
Found initrd image: /boot/initrd.img-4.15.0-65-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found linux image: /boot/vmlinuz-4.4.0-169-generic
Found initrd image: /boot/initrd.img-4.4.0-169-generic
Found linux image: /boot/vmlinuz-4.4.0-165-generic
Found initrd image: /boot/initrd.img-4.4.0-165-generic
Found Windows Boot Manager on /dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-4.13.0-41-generic (4.13.0-41.46~16.04.1) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-41-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-70-generic
Found initrd image: /boot/initrd.img-4.15.0-70-generic
Found linux image: /boot/vmlinuz-4.15.0-65-generic
Found initrd image: /boot/initrd.img-4.15.0-65-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.4.0-169-generic
Found initrd image: /boot/initrd.img-4.4.0-169-generic
Found linux image: /boot/vmlinuz-4.4.0-165-generic
Found initrd image: /boot/initrd.img-4.4.0-165-generic
Found Windows Boot Manager on /dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Removing linux-signed-image-4.13.0-43-generic (4.13.0-43.48~16.04.1) ...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-70-generic
Found initrd image: /boot/initrd.img-4.15.0-70-generic
Found linux image: /boot/vmlinuz-4.15.0-65-generic
Found initrd image: /boot/initrd.img-4.15.0-65-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.4.0-169-generic
Found initrd image: /boot/initrd.img-4.4.0-169-generic
Found linux image: /boot/vmlinuz-4.4.0-165-generic
Found initrd image: /boot/initrd.img-4.4.0-165-generic
Found Windows Boot Manager on /dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-extra-4.13.0-43-generic (4.13.0-43.48~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
dkms: WARNING: Linux headers are missing, which may explain the above failures.
      please install the linux-headers-4.13.0-43-generic package to fix this.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-43-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-70-generic
Found initrd image: /boot/initrd.img-4.15.0-70-generic
Found linux image: /boot/vmlinuz-4.15.0-65-generic
Found initrd image: /boot/initrd.img-4.15.0-65-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.4.0-169-generic
Found initrd image: /boot/initrd.img-4.4.0-169-generic
Found linux image: /boot/vmlinuz-4.4.0-165-generic
Found initrd image: /boot/initrd.img-4.4.0-165-generic
Found Windows Boot Manager on /dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-4.13.0-43-generic (4.13.0-43.48~16.04.1) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-43-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-70-generic
Found initrd image: /boot/initrd.img-4.15.0-70-generic
Found linux image: /boot/vmlinuz-4.15.0-65-generic
Found initrd image: /boot/initrd.img-4.15.0-65-generic
Found linux image: /boot/vmlinuz-4.4.0-169-generic
Found initrd image: /boot/initrd.img-4.4.0-169-generic
Found linux image: /boot/vmlinuz-4.4.0-165-generic
Found initrd image: /boot/initrd.img-4.4.0-165-generic
Found Windows Boot Manager on /dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Removing linux-modules-extra-4.4.0-165-generic (4.4.0-165.193) ...
Removing linux-image-4.4.0-165-generic (4.4.0-165.193) ...
I: /initrd.img.old is now a symlink to boot/initrd.img-4.4.0-169-generic
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.4.0-165-generic
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-70-generic
Found initrd image: /boot/initrd.img-4.15.0-70-generic
Found linux image: /boot/vmlinuz-4.15.0-65-generic
Found initrd image: /boot/initrd.img-4.15.0-65-generic
Found linux image: /boot/vmlinuz-4.4.0-169-generic
Found initrd image: /boot/initrd.img-4.4.0-169-generic
Found Windows Boot Manager on /dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Removing linux-modules-4.4.0-165-generic (4.4.0-165.193) ...
Removing opencv-data (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-calib3d-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-ml-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-features2d-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-flann-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-gpu2.4v5:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-highgui-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-imgproc-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Removing libopencv-core-dev:amd64 (2.4.9.1+dfsg-1.5ubuntu1.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
strong@foreverstrong:~$
strong@foreverstrong:~$ sudo apt-get update
strong@foreverstrong:~$ sudo apt update

pkg-config --modversion opencv

strong@foreverstrong:~$ pkg-config --modversion opencv
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
strong@foreverstrong:~$

2.1 Required Packages

[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

2.2 Run an installation script

Download the installation script install-opencv.sh, open your terminal and execute:
https://github.com/milq/milq

bash install-opencv.sh

Type your sudo password and you will have installed OpenCV. This operation may take a long time due to the packages to be installed and the compilation process.

OPENCV_VERSION='4.2.0’

strong@foreverstrong:~/opencv_workspace$ bash ./install-opencv.sh 
[sudo] password for strong: 
......
compile:
    [mkdir] Created dir: /home/yongqiang/opencv_workspace/OpenCV/build/java_test/build/classes
    [javac] Compiling 57 source files to /home/yongqiang/opencv_workspace/OpenCV/build/java_test/build/classes
    [javac] 注: 某些输入文件使用了未经检查或不安全的操作。
    [javac] 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。

jar:
    [mkdir] Created dir: /home/yongqiang/opencv_workspace/OpenCV/build/java_test/build/jar
      [jar] Building jar: /home/yongqiang/opencv_workspace/OpenCV/build/java_test/build/jar/opencv-test.jar

build:

BUILD SUCCESSFUL
Total time: 2 seconds
[100%] Built target opencv_test_java
[100%] Linking CXX shared module ../../lib/python3/cv2.cpython-35m-x86_64-linux-gnu.so
[100%] Built target opencv_python3
[100%] Linking CXX shared module ../../lib/cv2.so
[100%] Built target opencv_python2
[sudo] yongqiang 的密码: 
[  0%] Built target gen-pkgconfig
[  5%] Built target IlmImf
[  7%] Built target ippiw
[ 11%] Built target libprotobuf
[ 12%] Built target quirc
[ 12%] Built target ittnotify
[ 13%] Built target ade
[ 13%] Built target opencv_videoio_plugins
[ 18%] Built target opencv_core
[ 22%] Built target opencv_imgproc
[ 23%] Built target opencv_imgcodecs
[ 23%] Built target opencv_videoio
[ 23%] Built target opencv_highgui
[ 24%] Built target opencv_ts
[ 26%] Built target opencv_test_core
[ 28%] Built target opencv_perf_core
[ 28%] Built target opencv_flann
[ 28%] Built target opencv_test_flann
[ 29%] Built target opencv_hdf
[ 29%] Built target opencv_test_hdf
[ 31%] Built target opencv_perf_imgproc
[ 34%] Built target opencv_test_imgproc
[ 35%] Built target opencv_ml
[ 36%] Built target opencv_test_ml
[ 36%] Built target opencv_phase_unwrapping
[ 36%] Built target opencv_test_phase_unwrapping
[ 37%] Built target opencv_photo
[ 37%] Built target opencv_perf_photo
[ 38%] Built target opencv_test_photo
[ 38%] Built target opencv_plot
[ 38%] Built target opencv_quality
[ 38%] Built target opencv_test_quality
[ 39%] Built target opencv_reg
[ 39%] Built target opencv_test_reg
[ 40%] Built target opencv_perf_reg
[ 40%] Built target opencv_surface_matching
[ 41%] Built target opencv_viz
[ 42%] Built target opencv_test_viz
[ 42%] Built target opencv_xphoto
[ 42%] Built target opencv_perf_xphoto
[ 42%] Built target opencv_test_xphoto
[ 47%] Built target opencv_dnn
[ 47%] Built target opencv_perf_dnn
[ 48%] Built target opencv_test_dnn
[ 49%] Built target opencv_features2d
[ 50%] Built target opencv_perf_features2d
[ 51%] Built target opencv_test_features2d
[ 51%] Built target opencv_freetype
[ 52%] Built target opencv_fuzzy
[ 52%] Built target opencv_test_fuzzy
[ 54%] Built target opencv_gapi
[ 54%] Built target opencv_perf_gapi
[ 57%] Built target opencv_test_gapi
[ 57%] Built target opencv_hfs
[ 58%] Built target opencv_img_hash
[ 59%] Built target opencv_test_img_hash
[ 59%] Built target opencv_test_imgcodecs
[ 59%] Built target opencv_perf_imgcodecs
[ 59%] Built target opencv_line_descriptor
[ 60%] Built target opencv_perf_line_descriptor
[ 60%] Built target opencv_test_line_descriptor
[ 60%] Built target opencv_saliency
[ 60%] Built target opencv_test_saliency
[ 60%] Built target opencv_text
[ 60%] Built target opencv_test_text
[ 60%] Built target opencv_perf_videoio
[ 60%] Built target opencv_test_videoio
[ 61%] Built target opencv_calib3d
[ 61%] Built target opencv_perf_calib3d
[ 63%] Built target opencv_test_calib3d
[ 63%] Automatic moc for target opencv_test_cvv
[ 63%] Built target opencv_test_cvv_automoc
[ 64%] Automatic moc for target opencv_cvv
[ 64%] Built target opencv_cvv_automoc
[ 67%] Built target opencv_cvv
[ 67%] Built target opencv_test_cvv
[ 68%] Built target opencv_datasets
[ 69%] Built target opencv_dnn_superres
[ 69%] Built target opencv_perf_dnn_superres
[ 69%] Built target opencv_test_dnn_superres
[ 69%] Built target opencv_test_highgui
[ 69%] Built target opencv_objdetect
[ 69%] Built target opencv_perf_objdetect
[ 69%] Built target opencv_test_objdetect
[ 70%] Built target opencv_rgbd
[ 71%] Built target opencv_test_rgbd
[ 71%] Built target opencv_shape
[ 71%] Built target opencv_test_shape
[ 71%] Built target opencv_structured_light
[ 71%] Built target opencv_test_structured_light
[ 72%] Built target opencv_video
[ 73%] Built target opencv_test_video
[ 74%] Built target opencv_perf_video
[ 75%] Built target opencv_videostab
[ 75%] Built target opencv_test_videostab
[ 77%] Built target opencv_xfeatures2d
[ 78%] Built target opencv_perf_xfeatures2d
[ 78%] Built target opencv_test_xfeatures2d
[ 80%] Built target opencv_ximgproc
[ 81%] Built target opencv_perf_ximgproc
[ 83%] Built target opencv_test_ximgproc
[ 83%] Built target opencv_xobjdetect
[ 83%] Built target opencv_waldboost_detector
[ 83%] Built target opencv_aruco
[ 84%] Built target opencv_test_aruco
[ 84%] Built target opencv_bgsegm
[ 84%] Built target opencv_test_bgsegm
[ 85%] Built target opencv_bioinspired
[ 85%] Built target opencv_perf_bioinspired
[ 85%] Built target opencv_test_bioinspired
[ 86%] Built target opencv_ccalib
[ 86%] Built target opencv_dnn_objdetect
[ 86%] Built target opencv_dpm
[ 87%] Built target opencv_face
[ 88%] Built target opencv_test_face
[ 89%] Built target opencv_optflow
[ 89%] Built target opencv_perf_optflow
[ 89%] Built target opencv_test_optflow
[ 89%] Built target numeric
[ 89%] Built target multiview
[ 89%] Built target correspondence
[ 90%] Built target opencv_sfm
[ 91%] Built target opencv_test_sfm
[ 91%] Built target opencv_stitching
[ 91%] Built target opencv_perf_stitching
[ 91%] Built target opencv_test_stitching
[ 92%] Built target opencv_superres
[ 92%] Built target opencv_perf_superres
[ 93%] Built target opencv_test_superres
[ 95%] Built target opencv_tracking
[ 95%] Built target opencv_test_tracking
[ 95%] Built target opencv_perf_tracking
[ 95%] Built target gen_opencv_java_source
[ 95%] Built target opencv_java_jar_source_copy
[ 95%] Built target opencv_java_jar
[ 95%] Built target opencv_java
[ 96%] Built target opencv_java_test_source_copy
[ 97%] Built target opencv_test_java
[ 98%] Built target opencv_stereo
[ 98%] Built target opencv_perf_stereo
[ 98%] Built target opencv_test_stereo
[ 98%] Built target gen_opencv_python_source
[ 98%] Built target opencv_python2
[ 98%] Built target opencv_python3
[ 99%] Built target opencv_annotation
[ 99%] Built target opencv_visualisation
[100%] Built target opencv_interactive-calibration
[100%] Built target opencv_version
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/share/licenses/opencv4/ippicv-readme.htm
-- Installing: /usr/local/share/licenses/opencv4/ippicv-EULA.txt
-- Installing: /usr/local/share/licenses/opencv4/ippiw-support.txt
-- Installing: /usr/local/share/licenses/opencv4/ippiw-third-party-programs.txt
-- Installing: /usr/local/share/licenses/opencv4/ippiw-EULA.txt
-- Installing: /usr/local/share/licenses/opencv4/opencl-headers-LICENSE.txt
-- Installing: /usr/local/include/opencv4/opencv2/cvconfig.h
-- Installing: /usr/local/include/opencv4/opencv2/opencv_modules.hpp
-- Installing: /usr/local/lib/pkgconfig/opencv4.pc
-- Installing: /usr/local/lib/cmake/opencv4/OpenCVModules.cmake
-- Installing: /usr/local/lib/cmake/opencv4/OpenCVModules-release.cmake
-- Installing: /usr/local/lib/cmake/opencv4/OpenCVConfig-version.cmake
-- Installing: /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake
-- Installing: /usr/local/bin/setup_vars_opencv4.sh
-- Installing: /usr/local/share/opencv4/valgrind.supp
-- Installing: /usr/local/share/opencv4/valgrind_3rdparty.supp
-- Installing: /usr/local/share/licenses/opencv4/openexr-LICENSE
-- Installing: /usr/local/share/licenses/opencv4/openexr-AUTHORS.ilmbase
-- Installing: /usr/local/share/licenses/opencv4/openexr-AUTHORS.openexr
-- Installing: /usr/local/share/licenses/opencv4/protobuf-LICENSE
-- Installing: /usr/local/share/licenses/opencv4/protobuf-README.md
-- Installing: /usr/local/share/licenses/opencv4/quirc-LICENSE
-- Installing: /usr/local/share/licenses/opencv4/ittnotify-LICENSE.BSD
-- Installing: /usr/local/share/licenses/opencv4/ittnotify-LICENSE.GPL
-- Installing: /usr/local/include/opencv4/opencv2/opencv.hpp
-- Installing: /usr/local/share/licenses/opencv4/ade-LICENSE
-- Installing: /usr/local/lib/libopencv_core.so.4.2.0
-- Installing: /usr/local/lib/libopencv_core.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_core.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_core.so
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/opencl_svm.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/ocl_defs.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_clamdblas.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_svm_20.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_svm_definitions.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_clamdfft.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_core_wrappers.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_gl_wrappers.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_clamdblas.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_clamdfft.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_core_wrappers.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_gl_wrappers.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_gl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_core.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_gl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opencl/opencl_info.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/color.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/common.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/limits.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/warp_reduce.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/warp_shuffle.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/funcattrib.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/border_interpolate.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/utility.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/vec_traits.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/functional.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/warp.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/emulation.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/dynamic_smem.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/vec_math.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/filters.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/transform.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/simd_functions.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/scan.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/type_traits.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/reduce.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/saturate_cast.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/vec_distance.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/block.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/datamov_utils.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/detail/reduce_key_val.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/detail/type_traits_detail.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/detail/vec_distance_detail.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/detail/reduce.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/detail/transform_detail.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda/detail/color_detail.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda_stream_accessor.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/mat.inl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/async.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/saturate.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/ocl_genbase.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cvstd.inl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/utility.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda_types.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/va_intel.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/fast_math.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/matx.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/directx.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/vsx_utils.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/operations.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/ovx.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/ocl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/simd_intrinsics.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cvstd.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/sse_utils.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/base.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/types.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/mat.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/traits.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/core.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/opengl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/optim.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/cuda.inl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/bindings_utils.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/bufferpool.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/softfloat.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/version.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/check.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/neon_utils.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/persistence.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/affine.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/eigen.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/types_c.h
-- Installing: /usr/local/include/opencv4/opencv2/core/cvdef.h
-- Installing: /usr/local/include/opencv4/opencv2/core/cv_cpu_helper.h
-- Installing: /usr/local/include/opencv4/opencv2/core/cv_cpu_dispatch.h
-- Installing: /usr/local/include/opencv4/opencv2/core/core_c.h
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/intrin_vsx.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/hal.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/intrin_wasm.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/intrin_sse_em.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/intrin_msa.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/intrin_sse.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/intrin_avx.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/intrin_avx512.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/simd_utils.impl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/intrin_neon.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/intrin_cpp.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/intrin_forward.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/intrin.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/interface.h
-- Installing: /usr/local/include/opencv4/opencv2/core/hal/msa_macros.h
-- Installing: /usr/local/include/opencv4/opencv2/core/utils/logtag.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/utils/allocator_stats.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/utils/filesystem.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/utils/trace.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/utils/instrumentation.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/utils/allocator_stats.impl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/utils/logger.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/utils/logger.defines.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/utils/tls.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/detail/exception_ptr.hpp
-- Installing: /usr/local/include/opencv4/opencv2/core/detail/async_promise.hpp
-- Installing: /usr/local/share/licenses/opencv4/SoftFloat-COPYING.txt
-- Installing: /usr/local/lib/libopencv_flann.so.4.2.0
-- Installing: /usr/local/lib/libopencv_flann.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_flann.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_flann.so
-- Installing: /usr/local/include/opencv4/opencv2/flann.hpp
-- Installing: /usr/local/include/opencv4/opencv2/flann/flann_base.hpp
-- Installing: /usr/local/include/opencv4/opencv2/flann/miniflann.hpp
-- Installing: /usr/local/include/opencv4/opencv2/flann/flann.hpp
-- Installing: /usr/local/include/opencv4/opencv2/flann/autotuned_index.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/saving.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/matrix.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/general.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/kmeans_index.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/sampling.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/object_factory.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/ground_truth.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/all_indices.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/dist.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/lsh_table.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/hierarchical_clustering_index.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/linear_index.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/random.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/timer.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/allocator.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/kdtree_index.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/index_testing.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/config.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/heap.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/dynamic_bitset.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/result_set.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/simplex_downhill.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/composite_index.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/dummy.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/logger.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/defines.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/nn_index.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/lsh_index.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/any.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/hdf5.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/params.h
-- Installing: /usr/local/include/opencv4/opencv2/flann/kdtree_single_index.h
-- Installing: /usr/local/lib/libopencv_hdf.so.4.2.0
-- Installing: /usr/local/lib/libopencv_hdf.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_hdf.so.4.2.0" to "/usr/local/lib:/usr/lib/x86_64-linux-gnu/hdf5/serial/lib"
-- Installing: /usr/local/lib/libopencv_hdf.so
-- Installing: /usr/local/include/opencv4/opencv2/hdf.hpp
-- Installing: /usr/local/include/opencv4/opencv2/hdf/hdf5.hpp
-- Installing: /usr/local/lib/libopencv_imgproc.so.4.2.0
-- Installing: /usr/local/lib/libopencv_imgproc.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_imgproc.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_imgproc.so
-- Installing: /usr/local/include/opencv4/opencv2/imgproc.hpp
-- Installing: /usr/local/include/opencv4/opencv2/imgproc/imgproc.hpp
-- Installing: /usr/local/include/opencv4/opencv2/imgproc/types_c.h
-- Installing: /usr/local/include/opencv4/opencv2/imgproc/imgproc_c.h
-- Installing: /usr/local/include/opencv4/opencv2/imgproc/hal/hal.hpp
-- Installing: /usr/local/include/opencv4/opencv2/imgproc/hal/interface.h
-- Installing: /usr/local/include/opencv4/opencv2/imgproc/detail/gcgraph.hpp
-- Installing: /usr/local/lib/libopencv_ml.so.4.2.0
-- Installing: /usr/local/lib/libopencv_ml.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_ml.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_ml.so
-- Installing: /usr/local/include/opencv4/opencv2/ml.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ml/ml.inl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ml/ml.hpp
-- Installing: /usr/local/lib/libopencv_phase_unwrapping.so.4.2.0
-- Installing: /usr/local/lib/libopencv_phase_unwrapping.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_phase_unwrapping.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_phase_unwrapping.so
-- Installing: /usr/local/include/opencv4/opencv2/phase_unwrapping.hpp
-- Installing: /usr/local/include/opencv4/opencv2/phase_unwrapping/histogramphaseunwrapping.hpp
-- Installing: /usr/local/include/opencv4/opencv2/phase_unwrapping/phase_unwrapping.hpp
-- Installing: /usr/local/lib/libopencv_photo.so.4.2.0
-- Installing: /usr/local/lib/libopencv_photo.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_photo.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_photo.so
-- Installing: /usr/local/include/opencv4/opencv2/photo.hpp
-- Installing: /usr/local/include/opencv4/opencv2/photo/cuda.hpp
-- Installing: /usr/local/include/opencv4/opencv2/photo/photo.hpp
-- Installing: /usr/local/include/opencv4/opencv2/photo/legacy/constants_c.h
-- Installing: /usr/local/lib/libopencv_plot.so.4.2.0
-- Installing: /usr/local/lib/libopencv_plot.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_plot.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_plot.so
-- Installing: /usr/local/include/opencv4/opencv2/plot.hpp
-- Installing: /usr/local/lib/libopencv_quality.so.4.2.0
-- Installing: /usr/local/lib/libopencv_quality.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_quality.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_quality.so
-- Installing: /usr/local/include/opencv4/opencv2/quality.hpp
-- Installing: /usr/local/include/opencv4/opencv2/quality/qualitybrisque.hpp
-- Installing: /usr/local/include/opencv4/opencv2/quality/qualitypsnr.hpp
-- Installing: /usr/local/include/opencv4/opencv2/quality/quality_utils.hpp
-- Installing: /usr/local/include/opencv4/opencv2/quality/qualitygmsd.hpp
-- Installing: /usr/local/include/opencv4/opencv2/quality/qualitybase.hpp
-- Installing: /usr/local/include/opencv4/opencv2/quality/qualityssim.hpp
-- Installing: /usr/local/include/opencv4/opencv2/quality/qualitymse.hpp
-- Installing: /usr/local/share/opencv4/quality/brisque_range_live.yml
-- Installing: /usr/local/share/opencv4/quality/brisque_model_live.yml
-- Installing: /usr/local/lib/libopencv_reg.so.4.2.0
-- Installing: /usr/local/lib/libopencv_reg.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_reg.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_reg.so
-- Installing: /usr/local/include/opencv4/opencv2/reg/map.hpp
-- Installing: /usr/local/include/opencv4/opencv2/reg/mappergradshift.hpp
-- Installing: /usr/local/include/opencv4/opencv2/reg/mappergradeuclid.hpp
-- Installing: /usr/local/include/opencv4/opencv2/reg/mapper.hpp
-- Installing: /usr/local/include/opencv4/opencv2/reg/mapaffine.hpp
-- Installing: /usr/local/include/opencv4/opencv2/reg/mappergradproj.hpp
-- Installing: /usr/local/include/opencv4/opencv2/reg/mapshift.hpp
-- Installing: /usr/local/include/opencv4/opencv2/reg/mappergradsimilar.hpp
-- Installing: /usr/local/include/opencv4/opencv2/reg/mapprojec.hpp
-- Installing: /usr/local/include/opencv4/opencv2/reg/mappergradaffine.hpp
-- Installing: /usr/local/include/opencv4/opencv2/reg/mapperpyramid.hpp
-- Installing: /usr/local/lib/libopencv_surface_matching.so.4.2.0
-- Installing: /usr/local/lib/libopencv_surface_matching.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_surface_matching.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_surface_matching.so
-- Installing: /usr/local/include/opencv4/opencv2/surface_matching.hpp
-- Installing: /usr/local/include/opencv4/opencv2/surface_matching/ppf_match_3d.hpp
-- Installing: /usr/local/include/opencv4/opencv2/surface_matching/t_hash_int.hpp
-- Installing: /usr/local/include/opencv4/opencv2/surface_matching/pose_3d.hpp
-- Installing: /usr/local/include/opencv4/opencv2/surface_matching/ppf_helpers.hpp
-- Installing: /usr/local/include/opencv4/opencv2/surface_matching/icp.hpp
-- Installing: /usr/local/lib/libopencv_viz.so.4.2.0
-- Installing: /usr/local/lib/libopencv_viz.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_viz.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_viz.so
-- Installing: /usr/local/include/opencv4/opencv2/viz.hpp
-- Installing: /usr/local/include/opencv4/opencv2/viz/vizcore.hpp
-- Installing: /usr/local/include/opencv4/opencv2/viz/viz3d.hpp
-- Installing: /usr/local/include/opencv4/opencv2/viz/widget_accessor.hpp
-- Installing: /usr/local/include/opencv4/opencv2/viz/types.hpp
-- Installing: /usr/local/include/opencv4/opencv2/viz/widgets.hpp
-- Installing: /usr/local/lib/libopencv_xphoto.so.4.2.0
-- Installing: /usr/local/lib/libopencv_xphoto.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_xphoto.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_xphoto.so
-- Installing: /usr/local/include/opencv4/opencv2/xphoto.hpp
-- Installing: /usr/local/include/opencv4/opencv2/xphoto/white_balance.hpp
-- Installing: /usr/local/include/opencv4/opencv2/xphoto/oilpainting.hpp
-- Installing: /usr/local/include/opencv4/opencv2/xphoto/bm3d_image_denoising.hpp
-- Installing: /usr/local/include/opencv4/opencv2/xphoto/dct_image_denoising.hpp
-- Installing: /usr/local/include/opencv4/opencv2/xphoto/tonemap.hpp
-- Installing: /usr/local/include/opencv4/opencv2/xphoto/inpainting.hpp
-- Installing: /usr/local/lib/libopencv_dnn.so.4.2.0
-- Installing: /usr/local/lib/libopencv_dnn.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_dnn.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_dnn.so
-- Installing: /usr/local/include/opencv4/opencv2/dnn.hpp
-- Installing: /usr/local/include/opencv4/opencv2/dnn/all_layers.hpp
-- Installing: /usr/local/include/opencv4/opencv2/dnn/dnn.hpp
-- Installing: /usr/local/include/opencv4/opencv2/dnn/dict.hpp
-- Installing: /usr/local/include/opencv4/opencv2/dnn/dnn.inl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/dnn/layer.hpp
-- Installing: /usr/local/include/opencv4/opencv2/dnn/shape_utils.hpp
-- Installing: /usr/local/include/opencv4/opencv2/dnn/version.hpp
-- Installing: /usr/local/include/opencv4/opencv2/dnn/layer.details.hpp
-- Installing: /usr/local/include/opencv4/opencv2/dnn/utils/inference_engine.hpp
-- Installing: /usr/local/lib/libopencv_features2d.so.4.2.0
-- Installing: /usr/local/lib/libopencv_features2d.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_features2d.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_features2d.so
-- Installing: /usr/local/include/opencv4/opencv2/features2d.hpp
-- Installing: /usr/local/include/opencv4/opencv2/features2d/features2d.hpp
-- Installing: /usr/local/include/opencv4/opencv2/features2d/hal/interface.h
-- Installing: /usr/local/lib/libopencv_freetype.so.4.2.0
-- Installing: /usr/local/lib/libopencv_freetype.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_freetype.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_freetype.so
-- Installing: /usr/local/include/opencv4/opencv2/freetype.hpp
-- Installing: /usr/local/lib/libopencv_fuzzy.so.4.2.0
-- Installing: /usr/local/lib/libopencv_fuzzy.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_fuzzy.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_fuzzy.so
-- Installing: /usr/local/include/opencv4/opencv2/fuzzy.hpp
-- Installing: /usr/local/include/opencv4/opencv2/fuzzy/fuzzy_F1_math.hpp
-- Installing: /usr/local/include/opencv4/opencv2/fuzzy/fuzzy_image.hpp
-- Installing: /usr/local/include/opencv4/opencv2/fuzzy/types.hpp
-- Installing: /usr/local/include/opencv4/opencv2/fuzzy/fuzzy_F0_math.hpp
-- Installing: /usr/local/lib/libopencv_gapi.so.4.2.0
-- Installing: /usr/local/lib/libopencv_gapi.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_gapi.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_gapi.so
-- Installing: /usr/local/include/opencv4/opencv2/gapi.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gstreaming.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/imgproc.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/render.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/infer.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/opencv_includes.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gcomputation_async.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/garg.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gkernel.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gcall.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/operators.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gcompiled_async.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gasync_context.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gmetaarg.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gcommon.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gcomputation.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gcompiled.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gproto.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gtyped.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gcompoundkernel.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gmat.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/core.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/garray.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gscalar.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gtype_traits.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gtransform.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/cpu/imgproc.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/cpu/gcpukernel.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/cpu/core.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/fluid/imgproc.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/fluid/gfluidkernel.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/fluid/core.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/fluid/gfluidbuffer.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gpu/imgproc.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gpu/core.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/gpu/ggpukernel.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/infer/ie.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/ocl/imgproc.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/ocl/core.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/ocl/goclkernel.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/own/cvdefs.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/own/saturate.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/own/exports.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/own/assert.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/own/scalar.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/own/types.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/own/convert.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/own/mat.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/render/render.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/streaming/source.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/streaming/cap.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/plaidml/gplaidmlkernel.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/plaidml/core.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/plaidml/plaidml.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/util/compiler_hints.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/util/any.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/util/util.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/util/optional.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/util/variant.hpp
-- Installing: /usr/local/include/opencv4/opencv2/gapi/util/throw.hpp
-- Installing: /usr/local/lib/libopencv_hfs.so.4.2.0
-- Installing: /usr/local/lib/libopencv_hfs.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_hfs.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_hfs.so
-- Installing: /usr/local/include/opencv4/opencv2/hfs.hpp
-- Installing: /usr/local/lib/libopencv_img_hash.so.4.2.0
-- Installing: /usr/local/lib/libopencv_img_hash.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_img_hash.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_img_hash.so
-- Installing: /usr/local/include/opencv4/opencv2/img_hash.hpp
-- Installing: /usr/local/include/opencv4/opencv2/img_hash/phash.hpp
-- Installing: /usr/local/include/opencv4/opencv2/img_hash/radial_variance_hash.hpp
-- Installing: /usr/local/include/opencv4/opencv2/img_hash/img_hash_base.hpp
-- Installing: /usr/local/include/opencv4/opencv2/img_hash/color_moment_hash.hpp
-- Installing: /usr/local/include/opencv4/opencv2/img_hash/average_hash.hpp
-- Installing: /usr/local/include/opencv4/opencv2/img_hash/block_mean_hash.hpp
-- Installing: /usr/local/include/opencv4/opencv2/img_hash/marr_hildreth_hash.hpp
-- Installing: /usr/local/lib/libopencv_imgcodecs.so.4.2.0
-- Installing: /usr/local/lib/libopencv_imgcodecs.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_imgcodecs.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_imgcodecs.so
-- Installing: /usr/local/include/opencv4/opencv2/imgcodecs.hpp
-- Installing: /usr/local/include/opencv4/opencv2/imgcodecs/imgcodecs.hpp
-- Installing: /usr/local/include/opencv4/opencv2/imgcodecs/imgcodecs_c.h
-- Installing: /usr/local/include/opencv4/opencv2/imgcodecs/ios.h
-- Installing: /usr/local/include/opencv4/opencv2/imgcodecs/legacy/constants_c.h
-- Installing: /usr/local/lib/libopencv_line_descriptor.so.4.2.0
-- Installing: /usr/local/lib/libopencv_line_descriptor.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_line_descriptor.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_line_descriptor.so
-- Installing: /usr/local/include/opencv4/opencv2/line_descriptor.hpp
-- Installing: /usr/local/include/opencv4/opencv2/line_descriptor/descriptor.hpp
-- Installing: /usr/local/lib/libopencv_saliency.so.4.2.0
-- Installing: /usr/local/lib/libopencv_saliency.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_saliency.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_saliency.so
-- Installing: /usr/local/include/opencv4/opencv2/saliency.hpp
-- Installing: /usr/local/include/opencv4/opencv2/saliency/saliencyBaseClasses.hpp
-- Installing: /usr/local/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp
-- Installing: /usr/local/lib/libopencv_text.so.4.2.0
-- Installing: /usr/local/lib/libopencv_text.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_text.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_text.so
-- Installing: /usr/local/include/opencv4/opencv2/text.hpp
-- Installing: /usr/local/include/opencv4/opencv2/text/textDetector.hpp
-- Installing: /usr/local/include/opencv4/opencv2/text/erfilter.hpp
-- Installing: /usr/local/include/opencv4/opencv2/text/ocr.hpp
-- Installing: /usr/local/lib/libopencv_videoio.so.4.2.0
-- Installing: /usr/local/lib/libopencv_videoio.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_videoio.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_videoio.so
-- Installing: /usr/local/include/opencv4/opencv2/videoio.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videoio/videoio.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videoio/registry.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videoio/cap_ios.h
-- Installing: /usr/local/include/opencv4/opencv2/videoio/videoio_c.h
-- Installing: /usr/local/include/opencv4/opencv2/videoio/legacy/constants_c.h
-- Installing: /usr/local/lib/libopencv_calib3d.so.4.2.0
-- Installing: /usr/local/lib/libopencv_calib3d.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_calib3d.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_calib3d.so
-- Installing: /usr/local/include/opencv4/opencv2/calib3d.hpp
-- Installing: /usr/local/include/opencv4/opencv2/calib3d/calib3d.hpp
-- Installing: /usr/local/include/opencv4/opencv2/calib3d/calib3d_c.h
-- Installing: /usr/local/lib/libopencv_cvv.so.4.2.0
-- Installing: /usr/local/lib/libopencv_cvv.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_cvv.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_cvv.so
-- Installing: /usr/local/include/opencv4/opencv2/cvv.hpp
-- Installing: /usr/local/include/opencv4/opencv2/cvv/cvv.hpp
-- Installing: /usr/local/include/opencv4/opencv2/cvv/dmatch.hpp
-- Installing: /usr/local/include/opencv4/opencv2/cvv/debug_mode.hpp
-- Installing: /usr/local/include/opencv4/opencv2/cvv/final_show.hpp
-- Installing: /usr/local/include/opencv4/opencv2/cvv/call_meta_data.hpp
-- Installing: /usr/local/include/opencv4/opencv2/cvv/filter.hpp
-- Installing: /usr/local/include/opencv4/opencv2/cvv/show_image.hpp
-- Installing: /usr/local/lib/libopencv_datasets.so.4.2.0
-- Installing: /usr/local/lib/libopencv_datasets.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_datasets.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_datasets.so
-- Installing: /usr/local/include/opencv4/opencv2/datasets/msm_middlebury.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/slam_tumindoor.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/hpe_parse.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/tr_chars.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/track_alov.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/gr_skig.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/pd_inria.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/ar_sports.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/track_vot.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/ir_affine.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/or_imagenet.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/sr_bsds.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/hpe_humaneva.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/util.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/fr_adience.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/pd_caltech.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/or_mnist.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/or_sun.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/slam_kitti.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/ir_robot.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/gr_chalearn.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/ar_hmdb.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/msm_epfl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/dataset.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/is_bsds.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/tr_icdar.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/sr_general100.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/fr_lfw.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/or_pascal.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/is_weizmann.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/sr_div2k.hpp
-- Installing: /usr/local/include/opencv4/opencv2/datasets/tr_svt.hpp
-- Installing: /usr/local/lib/libopencv_dnn_superres.so.4.2.0
-- Installing: /usr/local/lib/libopencv_dnn_superres.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_dnn_superres.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_dnn_superres.so
-- Installing: /usr/local/include/opencv4/opencv2/dnn_superres.hpp
-- Installing: /usr/local/lib/libopencv_highgui.so.4.2.0
-- Installing: /usr/local/lib/libopencv_highgui.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_highgui.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_highgui.so
-- Installing: /usr/local/include/opencv4/opencv2/highgui.hpp
-- Installing: /usr/local/include/opencv4/opencv2/highgui/highgui.hpp
-- Installing: /usr/local/include/opencv4/opencv2/highgui/highgui_c.h
-- Installing: /usr/local/lib/libopencv_objdetect.so.4.2.0
-- Installing: /usr/local/lib/libopencv_objdetect.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_objdetect.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_objdetect.so
-- Installing: /usr/local/include/opencv4/opencv2/objdetect.hpp
-- Installing: /usr/local/include/opencv4/opencv2/objdetect/objdetect.hpp
-- Installing: /usr/local/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp
-- Installing: /usr/local/lib/libopencv_rgbd.so.4.2.0
-- Installing: /usr/local/lib/libopencv_rgbd.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_rgbd.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_rgbd.so
-- Installing: /usr/local/include/opencv4/opencv2/rgbd.hpp
-- Installing: /usr/local/include/opencv4/opencv2/rgbd/depth.hpp
-- Installing: /usr/local/include/opencv4/opencv2/rgbd/dynafu.hpp
-- Installing: /usr/local/include/opencv4/opencv2/rgbd/kinfu.hpp
-- Installing: /usr/local/include/opencv4/opencv2/rgbd/linemod.hpp
-- Installing: /usr/local/lib/libopencv_shape.so.4.2.0
-- Installing: /usr/local/lib/libopencv_shape.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_shape.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_shape.so
-- Installing: /usr/local/include/opencv4/opencv2/shape.hpp
-- Installing: /usr/local/include/opencv4/opencv2/shape/shape_distance.hpp
-- Installing: /usr/local/include/opencv4/opencv2/shape/emdL1.hpp
-- Installing: /usr/local/include/opencv4/opencv2/shape/hist_cost.hpp
-- Installing: /usr/local/include/opencv4/opencv2/shape/shape_transformer.hpp
-- Installing: /usr/local/include/opencv4/opencv2/shape/shape.hpp
-- Installing: /usr/local/lib/libopencv_structured_light.so.4.2.0
-- Installing: /usr/local/lib/libopencv_structured_light.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_structured_light.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_structured_light.so
-- Installing: /usr/local/include/opencv4/opencv2/structured_light.hpp
-- Installing: /usr/local/include/opencv4/opencv2/structured_light/structured_light.hpp
-- Installing: /usr/local/include/opencv4/opencv2/structured_light/graycodepattern.hpp
-- Installing: /usr/local/include/opencv4/opencv2/structured_light/sinusoidalpattern.hpp
-- Installing: /usr/local/lib/libopencv_video.so.4.2.0
-- Installing: /usr/local/lib/libopencv_video.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_video.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_video.so
-- Installing: /usr/local/include/opencv4/opencv2/video.hpp
-- Installing: /usr/local/include/opencv4/opencv2/video/background_segm.hpp
-- Installing: /usr/local/include/opencv4/opencv2/video/tracking.hpp
-- Installing: /usr/local/include/opencv4/opencv2/video/video.hpp
-- Installing: /usr/local/include/opencv4/opencv2/video/legacy/constants_c.h
-- Installing: /usr/local/lib/libopencv_videostab.so.4.2.0
-- Installing: /usr/local/lib/libopencv_videostab.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_videostab.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_videostab.so
-- Installing: /usr/local/include/opencv4/opencv2/videostab.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/fast_marching.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/log.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/global_motion.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/deblurring.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/frame_source.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/optical_flow.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/stabilizer.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/motion_core.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/wobble_suppression.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/ring_buffer.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/outlier_rejection.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/motion_stabilizing.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/fast_marching_inl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/videostab/inpainting.hpp
-- Installing: /usr/local/lib/libopencv_xfeatures2d.so.4.2.0
-- Installing: /usr/local/lib/libopencv_xfeatures2d.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_xfeatures2d.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_xfeatures2d.so
-- Installing: /usr/local/include/opencv4/opencv2/xfeatures2d.hpp
-- Installing: /usr/local/include/opencv4/opencv2/xfeatures2d/cuda.hpp
-- Installing: /usr/local/include/opencv4/opencv2/xfeatures2d/nonfree.hpp
-- Installing: /usr/local/lib/libopencv_ximgproc.so.4.2.0
-- Installing: /usr/local/lib/libopencv_ximgproc.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_ximgproc.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_ximgproc.so
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/lsc.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/fast_hough_transform.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/disparity_filter.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/edge_filter.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/estimated_covariance.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/edgepreserving_filter.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/segmentation.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/brightedges.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/run_length_morphology.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/ridgefilter.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/sparse_match_interpolator.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/paillou_filter.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/fast_line_detector.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/deriche_filter.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/color_match.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/seeds.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/structured_edge_detection.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/peilin.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/edgeboxes.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/slic.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/weighted_median_filter.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ximgproc/fourier_descriptors.hpp
-- Installing: /usr/local/lib/libopencv_xobjdetect.so.4.2.0
-- Installing: /usr/local/lib/libopencv_xobjdetect.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_xobjdetect.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_xobjdetect.so
-- Installing: /usr/local/include/opencv4/opencv2/xobjdetect.hpp
-- Installing: /usr/local/bin/opencv_waldboost_detector
-- Set runtime path of "/usr/local/bin/opencv_waldboost_detector" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_aruco.so.4.2.0
-- Installing: /usr/local/lib/libopencv_aruco.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_aruco.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_aruco.so
-- Installing: /usr/local/include/opencv4/opencv2/aruco.hpp
-- Installing: /usr/local/include/opencv4/opencv2/aruco/charuco.hpp
-- Installing: /usr/local/include/opencv4/opencv2/aruco/dictionary.hpp
-- Installing: /usr/local/lib/libopencv_bgsegm.so.4.2.0
-- Installing: /usr/local/lib/libopencv_bgsegm.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_bgsegm.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_bgsegm.so
-- Installing: /usr/local/include/opencv4/opencv2/bgsegm.hpp
-- Installing: /usr/local/lib/libopencv_bioinspired.so.4.2.0
-- Installing: /usr/local/lib/libopencv_bioinspired.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_bioinspired.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_bioinspired.so
-- Installing: /usr/local/include/opencv4/opencv2/bioinspired.hpp
-- Installing: /usr/local/include/opencv4/opencv2/bioinspired/bioinspired.hpp
-- Installing: /usr/local/include/opencv4/opencv2/bioinspired/retina.hpp
-- Installing: /usr/local/include/opencv4/opencv2/bioinspired/retinafasttonemapping.hpp
-- Installing: /usr/local/include/opencv4/opencv2/bioinspired/transientareassegmentationmodule.hpp
-- Installing: /usr/local/lib/libopencv_ccalib.so.4.2.0
-- Installing: /usr/local/lib/libopencv_ccalib.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_ccalib.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_ccalib.so
-- Installing: /usr/local/include/opencv4/opencv2/ccalib.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ccalib/omnidir.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ccalib/multicalib.hpp
-- Installing: /usr/local/include/opencv4/opencv2/ccalib/randpattern.hpp
-- Installing: /usr/local/lib/libopencv_dnn_objdetect.so.4.2.0
-- Installing: /usr/local/lib/libopencv_dnn_objdetect.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_dnn_objdetect.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_dnn_objdetect.so
-- Installing: /usr/local/include/opencv4/opencv2/core_detect.hpp
-- Installing: /usr/local/lib/libopencv_dpm.so.4.2.0
-- Installing: /usr/local/lib/libopencv_dpm.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_dpm.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_dpm.so
-- Installing: /usr/local/include/opencv4/opencv2/dpm.hpp
-- Installing: /usr/local/lib/libopencv_face.so.4.2.0
-- Installing: /usr/local/lib/libopencv_face.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_face.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_face.so
-- Installing: /usr/local/include/opencv4/opencv2/face.hpp
-- Installing: /usr/local/include/opencv4/opencv2/face/facemark_train.hpp
-- Installing: /usr/local/include/opencv4/opencv2/face/mace.hpp
-- Installing: /usr/local/include/opencv4/opencv2/face/bif.hpp
-- Installing: /usr/local/include/opencv4/opencv2/face/face_alignment.hpp
-- Installing: /usr/local/include/opencv4/opencv2/face/facemarkAAM.hpp
-- Installing: /usr/local/include/opencv4/opencv2/face/facemark.hpp
-- Installing: /usr/local/include/opencv4/opencv2/face/facemarkLBF.hpp
-- Installing: /usr/local/include/opencv4/opencv2/face/predict_collector.hpp
-- Installing: /usr/local/include/opencv4/opencv2/face/facerec.hpp
-- Installing: /usr/local/lib/libopencv_optflow.so.4.2.0
-- Installing: /usr/local/lib/libopencv_optflow.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_optflow.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_optflow.so
-- Installing: /usr/local/include/opencv4/opencv2/optflow.hpp
-- Installing: /usr/local/include/opencv4/opencv2/optflow/rlofflow.hpp
-- Installing: /usr/local/include/opencv4/opencv2/optflow/pcaflow.hpp
-- Installing: /usr/local/include/opencv4/opencv2/optflow/sparse_matching_gpc.hpp
-- Installing: /usr/local/include/opencv4/opencv2/optflow/motempl.hpp
-- Installing: /usr/local/lib/libopencv_sfm.so.4.2.0
-- Installing: /usr/local/lib/libopencv_sfm.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_sfm.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_sfm.so
-- Installing: /usr/local/include/opencv4/opencv2/sfm.hpp
-- Installing: /usr/local/include/opencv4/opencv2/sfm/conditioning.hpp
-- Installing: /usr/local/include/opencv4/opencv2/sfm/fundamental.hpp
-- Installing: /usr/local/include/opencv4/opencv2/sfm/io.hpp
-- Installing: /usr/local/include/opencv4/opencv2/sfm/reconstruct.hpp
-- Installing: /usr/local/include/opencv4/opencv2/sfm/triangulation.hpp
-- Installing: /usr/local/include/opencv4/opencv2/sfm/simple_pipeline.hpp
-- Installing: /usr/local/include/opencv4/opencv2/sfm/robust.hpp
-- Installing: /usr/local/include/opencv4/opencv2/sfm/projection.hpp
-- Installing: /usr/local/include/opencv4/opencv2/sfm/numeric.hpp
-- Installing: /usr/local/lib/opencv4/3rdparty/libcorrespondence.a
-- Installing: /usr/local/lib/opencv4/3rdparty/libmultiview.a
-- Installing: /usr/local/lib/opencv4/3rdparty/libnumeric.a
-- Installing: /usr/local/lib/libopencv_stitching.so.4.2.0
-- Installing: /usr/local/lib/libopencv_stitching.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_stitching.so.4.2.0" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libopencv_stitching.so
-- Installing: /usr/local/include/opencv4/opencv2/stitching.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/warpers.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/timelapsers.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/seam_finders.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/matchers.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/util.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/util_inl.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/warpers.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/autocalib.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/blenders.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stitching/detail/camera.hpp
-- Installing: /usr/local/lib/libopencv_superres.so.4.2.0
-- Installing: /usr/local/lib/libopencv_superres.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_superres.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_superres.so
-- Installing: /usr/local/include/opencv4/opencv2/superres.hpp
-- Installing: /usr/local/include/opencv4/opencv2/superres/optical_flow.hpp
-- Installing: /usr/local/lib/libopencv_tracking.so.4.2.0
-- Installing: /usr/local/lib/libopencv_tracking.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_tracking.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_tracking.so
-- Installing: /usr/local/include/opencv4/opencv2/tracking.hpp
-- Installing: /usr/local/include/opencv4/opencv2/tracking/tracker.hpp
-- Installing: /usr/local/include/opencv4/opencv2/tracking/onlineBoosting.hpp
-- Installing: /usr/local/include/opencv4/opencv2/tracking/tracking_by_matching.hpp
-- Installing: /usr/local/include/opencv4/opencv2/tracking/tracking.hpp
-- Installing: /usr/local/include/opencv4/opencv2/tracking/onlineMIL.hpp
-- Installing: /usr/local/include/opencv4/opencv2/tracking/kalman_filters.hpp
-- Installing: /usr/local/include/opencv4/opencv2/tracking/feature.hpp
-- Installing: /usr/local/include/opencv4/opencv2/tracking/tldDataset.hpp
-- Installing: /usr/local/share/java/opencv4/libopencv_java420.so
-- Set runtime path of "/usr/local/share/java/opencv4/libopencv_java420.so" to "/usr/local/lib"
-- Installing: /usr/local/share/java/opencv4/opencv-420.jar
-- Installing: /usr/local/lib/libopencv_stereo.so.4.2.0
-- Installing: /usr/local/lib/libopencv_stereo.so.4.2
-- Set runtime path of "/usr/local/lib/libopencv_stereo.so.4.2.0" to "/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_stereo.so
-- Installing: /usr/local/include/opencv4/opencv2/stereo.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stereo/matching.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stereo/stereo.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stereo/quasi_dense_stereo.hpp
-- Installing: /usr/local/include/opencv4/opencv2/stereo/descriptor.hpp
-- Installing: /usr/local/lib/python2.7/dist-packages/cv2/__init__.py
-- Installing: /usr/local/lib/python2.7/dist-packages/cv2/load_config_py2.py
-- Installing: /usr/local/lib/python2.7/dist-packages/cv2/load_config_py3.py
-- Installing: /usr/local/lib/python2.7/dist-packages/cv2/config.py
-- Installing: /usr/local/lib/python2.7/dist-packages/cv2/python-2.7/cv2.so
-- Set runtime path of "/usr/local/lib/python2.7/dist-packages/cv2/python-2.7/cv2.so" to "/usr/local/lib"
-- Installing: /usr/local/lib/python2.7/dist-packages/cv2/config-2.7.py
-- Installing: /usr/local/lib/python3.5/dist-packages/cv2/__init__.py
-- Installing: /usr/local/lib/python3.5/dist-packages/cv2/load_config_py2.py
-- Installing: /usr/local/lib/python3.5/dist-packages/cv2/load_config_py3.py
-- Installing: /usr/local/lib/python3.5/dist-packages/cv2/config.py
-- Installing: /usr/local/lib/python3.5/dist-packages/cv2/python-3.5/cv2.cpython-35m-x86_64-linux-gnu.so
-- Set runtime path of "/usr/local/lib/python3.5/dist-packages/cv2/python-3.5/cv2.cpython-35m-x86_64-linux-gnu.so" to "/usr/local/lib"
-- Installing: /usr/local/lib/python3.5/dist-packages/cv2/config-3.5.py
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_upperbody.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_alt.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_eye_tree_eyeglasses.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_alt2.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_default.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_russian_plate_number.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_frontalcatface.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_eye.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_lowerbody.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_lefteye_2splits.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_fullbody.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_profileface.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_licence_plate_rus_16stages.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_righteye_2splits.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_alt_tree.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_smile.xml
-- Installing: /usr/local/share/opencv4/haarcascades/haarcascade_frontalcatface_extended.xml
-- Installing: /usr/local/share/opencv4/lbpcascades/lbpcascade_profileface.xml
-- Installing: /usr/local/share/opencv4/lbpcascades/lbpcascade_frontalface_improved.xml
-- Installing: /usr/local/share/opencv4/lbpcascades/lbpcascade_frontalface.xml
-- Installing: /usr/local/share/opencv4/lbpcascades/lbpcascade_silverware.xml
-- Installing: /usr/local/share/opencv4/lbpcascades/lbpcascade_frontalcatface.xml
-- Installing: /usr/local/bin/opencv_annotation
-- Set runtime path of "/usr/local/bin/opencv_annotation" to "/usr/local/lib"
-- Installing: /usr/local/bin/opencv_visualisation
-- Set runtime path of "/usr/local/bin/opencv_visualisation" to "/usr/local/lib"
-- Installing: /usr/local/bin/opencv_interactive-calibration
-- Set runtime path of "/usr/local/bin/opencv_interactive-calibration" to "/usr/local/lib"
-- Installing: /usr/local/bin/opencv_version
-- Set runtime path of "/usr/local/bin/opencv_version" to "/usr/local/lib"
yongqiang@famu-sys:~/opencv_workspace$ 

2.3 install-opencv.sh

######################################
# INSTALL OPENCV ON UBUNTU OR DEBIAN #
######################################

# -------------------------------------------------------------------- |
#                       SCRIPT OPTIONS                                 |
# ---------------------------------------------------------------------|
OPENCV_VERSION='4.2.0'       # Version to be installed
OPENCV_CONTRIB='YES'          # Install OpenCV's extra modules (YES/NO)
# -------------------------------------------------------------------- |

# |          THIS SCRIPT IS TESTED CORRECTLY ON          |
# |------------------------------------------------------|
# | OS               | OpenCV       | Test | Last test   |
# |------------------|--------------|------|-------------|
# | Debian 10.2      | OpenCV 4.2.0 | OK   | 26 Dec 2019 |
# |----------------------------------------------------- |
# | Debian 10.1      | OpenCV 4.1.1 | OK   | 28 Sep 2019 |
# |----------------------------------------------------- |
# | Ubuntu 18.04 LTS | OpenCV 4.1.0 | OK   | 22 Jun 2019 |
# | Debian 9.9       | OpenCV 4.1.0 | OK   | 22 Jun 2019 |
# |----------------------------------------------------- |
# | Ubuntu 18.04 LTS | OpenCV 3.4.2 | OK   | 18 Jul 2018 |
# | Debian 9.5       | OpenCV 3.4.2 | OK   | 18 Jul 2018 |



# 1. KEEP UBUNTU OR DEBIAN UP TO DATE

sudo apt-get -y update
# sudo apt-get -y upgrade       # Uncomment to install new versions of packages currently installed
# sudo apt-get -y dist-upgrade  # Uncomment to handle changing dependencies with new vers. of pack.
# sudo apt-get -y autoremove    # Uncomment to remove packages that are now no longer needed


# 2. INSTALL THE DEPENDENCIES

# Build tools:
sudo apt-get install -y build-essential cmake

# GUI (if you want GTK, change 'qt5-default' to 'libgtkglext1-dev' and remove '-DWITH_QT=ON'):
sudo apt-get install -y libgtk2.0-dev pkg-config qt5-default libvtk6-dev

# Media I/O:
sudo apt-get install -y zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev \
                        libopenexr-dev libgdal-dev

# Video I/O:
sudo apt-get install -y libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev \
                        libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev yasm \
                        libopencore-amrnb-dev libopencore-amrwb-dev libv4l-dev libxine2-dev

# Parallelism and linear algebra libraries:
sudo apt-get install -y libtbb-dev libeigen3-dev

# Python:
sudo apt-get install -y python-dev  python-tk  pylint  python-numpy  \
                        python3-dev python3-tk pylint3 python3-numpy flake8

# Java:
sudo apt-get install -y ant default-jdk

# Documentation and other:
sudo apt-get install -y doxygen unzip wget


# 3. INSTALL THE LIBRARY

wget -t 1000 -T 2500 -c https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip
unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip
mv opencv-${OPENCV_VERSION} OpenCV

if [ $OPENCV_CONTRIB = 'YES' ]; then
  wget -t 1000 -T 2500 -c https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip
  unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip
  mv opencv_contrib-${OPENCV_VERSION} opencv_contrib
  mv opencv_contrib OpenCV
fi

cd OpenCV && mkdir build && cd build

if [ $OPENCV_CONTRIB = 'NO' ]; then
cmake -D CMAKE_BUILD_TYPE=Release -D OPENCV_GENERATE_PKGCONFIG=ON -D WITH_GTK=ON \
      -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_V4L=ON -D WITH_VTK=ON \
      -D WITH_TBB=ON -D CMAKE_INSTALL_PREFIX=/usr/local ..
fi

if [ $OPENCV_CONTRIB = 'YES' ]; then
cmake -D CMAKE_BUILD_TYPE=Release \
      -D OPENCV_GENERATE_PKGCONFIG=ON \
      -D WITH_GTK=ON \
      -D WITH_TBB=ON \
      -D WITH_V4L=ON \
      -D WITH_VTK=ON \
      -D WITH_QT=ON \
      -D WITH_OPENGL=ON \
      -D CMAKE_INSTALL_PREFIX=/usr/local \
      -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
fi

make -j8
sudo make install
sudo ldconfig


# 4. EXECUTE SOME OPENCV EXAMPLES AND COMPILE A DEMONSTRATION

# To complete this step, please visit 'http://milq.github.io/install-opencv-ubuntu-debian'.

strong@foreverstrong:~$ sudo sh -c 'echo "/usr/local/lib" >> /etc/ld.so.conf.d/opencv.conf'
[sudo] password for strong: 
strong@foreverstrong:~$ sudo ldconfig
strong@foreverstrong:~$ cat /etc/ld.so.conf.d/opencv.conf
/usr/local/lib
strong@foreverstrong:~$

2.4 opencv4.pc file

OpenCV 4 配置默认不产生 opencv4.pc 文件。

OCV_OPTION(OPENCV_GENERATE_PKGCONFIG  "Generate .pc file for pkg-config build tool (deprecated)" OFF)
strong@foreverstrong:~$ python3
Python 3.5.2 (default, Oct  8 2019, 13:06:37) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'4.2.0'
>>> 
>>> exit()
strong@foreverstrong:~$ 
strong@foreverstrong:~$ pkg-config --modversion opencv
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
strong@foreverstrong:~$ 

/usr/local/lib/pkgconfig/opencv4.pc

strong@foreverstrong:~$ cat /usr/local/lib/pkgconfig/opencv4.pc
# Package Information for pkg-config

prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir_old=${prefix}/include/opencv4/opencv
includedir_new=${prefix}/include/opencv4

Name: OpenCV
Description: Open Source Computer Vision Library
Version: 4.2.0
Libs: -L${exec_prefix}/lib -lopencv_gapi -lopencv_photo -lopencv_video -lopencv_stitching -lopencv_objdetect -lopencv_calib3d -lopencv_highgui -lopencv_videoio -lopencv_ml -lopencv_dnn -lopencv_imgcodecs -lopencv_features2d -lopencv_imgproc -lopencv_flann -lopencv_core
Libs.private: -ldl -lm -lpthread -lrt
Cflags: -I${includedir_old} -I${includedir_new}
strong@foreverstrong:~$

请注意 includedir_old=${prefix}/include/opencv4/opencv2 ,此处为 opencv2 而不是 opencv/usr/local/include/opencv4/opencv2

pkg-config --modversion opencv4

扫描二维码关注公众号,回复: 9189883 查看本文章
strong@foreverstrong:~$ pkg-config --modversion opencv
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
strong@foreverstrong:~$ 
strong@foreverstrong:~$ pkg-config --modversion opencv4
4.2.0
strong@foreverstrong:~$

2.5 PKG_CONFIG_PATH variable and .bashrc file

Add the location to the variable PKG_CONFIG_PATH by editing the .bashrc file.
编辑 .bashrc 文件,将位置添加到变量 PKG_CONFIG_PATH 中。

sudo vim ~/.bashrc

# add the following 2 lines at the end of the .bashrc file.
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH

Save and Exit the file and run the following command.

source ~/.bashrc

# You can verify that the path is added or not by executing the following command
echo $PKG_CONFIG_PATH
strong@foreverstrong:~$ source ~/.bashrc
strong@foreverstrong:~$ 
strong@foreverstrong:~$ echo $PKG_CONFIG_PATH
:/usr/local/lib/pkgconfig
strong@foreverstrong:~$ 

References

http://milq.github.io/
https://milq.github.io/archive/
http://milq.github.io/install-opencv-ubuntu-debian/
https://www.docs.opencv.org/4.2.0/index.html
https://www.docs.opencv.org/4.2.0/d7/d9f/tutorial_linux_install.html
https://cv-tricks.com/installation/opencv-4-1-ubuntu18-04/

发布了443 篇原创文章 · 获赞 1685 · 访问量 101万+

猜你喜欢

转载自blog.csdn.net/chengyq116/article/details/104297224