How to install OpenCV on CentOS 7


OpenCV dependencies:
GCC 4.4.x or later
CMake 2.8.7 or higher
Git
GTK+2.x or higher, including headers (libgtk2.0-dev)
pkg-config
Python 2.6 or later and Numpy 1.5 or later with developer packages (python-dev, python-numpy)
ffmpeg or libav development packages: libavcodec-dev, libavformat-dev, libswscale-dev
[optional] libtbb2 libtbb-dev
[optional] libdc1394 2.x
[optional] libjpeg-dev, libpng-dev, libtiff-dev, libjasper-dev, libdc1394-22-dev
[optional] CUDA Toolkit 6.5 or higher

Step 1: install python

yum install python -y

or
How to install Python 2.7 on Centos

Step 1.2: install python v3.4

yum install python34

Step 2:

yum install git gcc-c++ gtk2-devel pkgconfig -y

Result:

[root@tutorialspots ~]# yum install git gcc-c++ pkgconfig -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.lstn.net
 * epel: kdeforge2.unl.edu
 * extras: centos.mirrors.tds.net
 * ius: dfw.mirror.rackspace.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: centos.host-engine.com
Package git-1.8.3.1-14.el7_5.x86_64 already installed and latest version
Package gcc-c++-4.8.5-28.el7_5.1.x86_64 already installed and latest version
Package 1:pkgconfig-0.27.1-4.el7.x86_64 already installed and latest version
...
Complete!

Step 3: install cmake
Find any version greater or equal than 2.8.7: https://cmake.org/files/
I choose version 3.0.0-rc2

If you want to install OpenCV v4.0.0 you must install cmake v3.5.1 or greater

cd ~
wget https://cmake.org/files/v3.0/cmake-3.0.0-rc2.tar.gz
tar -xf cmake-3.0.0-rc2.tar.gz
cd cmake-3.0.0-rc2
./configure
gmake
gmake install

result:

[root@tutorialspots ~]# wget https://cmake.org/files/v3.0/cmake-3.0.0-rc2.tar.gz
--2018-10-04 09:39:17--  https://cmake.org/files/v3.0/cmake-3.0.0-rc2.tar.gz
Resolving cmake.org (cmake.org)... 66.194.253.19
Connecting to cmake.org (cmake.org)|66.194.253.19|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5486721 (5.2M) [application/x-gzip]
Saving to: `cmake-3.0.0-rc2.tar.gz'

100%[======================================>] 5,486,721   1.03MB/s   in 4.3s

2018-10-04 09:39:22 (1.21 MB/s) - `cmake-3.0.0-rc2.tar.gz' saved [5486721/548672
1]

[root@tutorialspots ~]# tar -xf cmake-3.0.0-rc2.tar.gz
[root@tutorialspots ~]# cd cmake-3.0.0-rc2
[root@tutorialspots cmake-3.0.0-rc2]# ./configure
---------------------------------------------
CMake 3.0.0-rc2, Copyright 2000-2014 Kitware, Inc.
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++
Makefile processor on this system is: gmake
g++ is GNU compiler
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has STL in std:: namespace
g++ has ANSI streams
g++ has streams in std:: namespace
g++ has sstream
g++ has operator!=(string, char*)
g++ has stl iterator_traits
g++ has standard template allocator
g++ has allocator<>::rebind<>
g++ does not have non-standard allocator<>::max_size argument
g++ has stl containers supporting allocator objects
g++ has stl wstring
g++ has header cstddef
g++ requires template friends to use <>
g++ supports member templates
g++ has standard template specialization syntax
g++ has argument dependent lookup
g++ has struct stat with st_mtim member
g++ has ios::binary openmode
g++ has ANSI for scoping
---------------------------------------------
...
-- Installing: /usr/local/share/cmake-3.0/include/cmCPluginAPI.h
-- Installing: /usr/local/share/cmake-3.0/editors/vim/cmake-help.vim
-- Installing: /usr/local/share/cmake-3.0/editors/vim/cmake-indent.vim
-- Installing: /usr/local/share/cmake-3.0/editors/vim/cmake-syntax.vim
-- Installing: /usr/local/share/cmake-3.0/editors/emacs/cmake-mode.el
-- Installing: /usr/local/share/aclocal/cmake.m4
-- Installing: /usr/local/share/cmake-3.0/completions/cmake
-- Installing: /usr/local/share/cmake-3.0/completions/cpack
-- Installing: /usr/local/share/cmake-3.0/completions/ctest

Step 3.2:
Now make symbolic link:

ln -s /usr/local/bin/cmake /usr/bin/cmake

Step 4:

yum install -y python-devel python2-pip numpy python2-numpy

result:

[root@tutorialspots ~]# yum install -y python-devel python2-pip numpy python2
-numpy
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.lstn.net
 * epel: kdeforge2.unl.edu
 * extras: centos.mirrors.tds.net
 * ius: dfw.mirror.rackspace.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: centos.host-engine.com
Resolving Dependencies
--> Running transaction check
---> Package numpy.x86_64 1:1.7.1-13.el7 will be installed
--> Processing Dependency: python-nose for package: 1:numpy-1.7.1-13.el7.x86_64
--> Processing Dependency: libtatlas.so.3()(64bit) for package: 1:numpy-1.7.1-13
.el7.x86_64
--> Processing Dependency: libquadmath.so.0()(64bit) for package: 1:numpy-1.7.1-
13.el7.x86_64
--> Processing Dependency: liblapack.so.3()(64bit) for package: 1:numpy-1.7.1-13
.el7.x86_64
--> Processing Dependency: libgfortran.so.3()(64bit) for package: 1:numpy-1.7.1-
13.el7.x86_64
---> Package python-devel.x86_64 0:2.7.5-69.el7_5 will be installed
---> Package python2-numpy.noarch 1:1.7.1-0.el7 will be installed
---> Package python2-pip.noarch 0:8.1.2-6.el7 will be installed
--> Processing Dependency: python-setuptools for package: python2-pip-8.1.2-6.el
7.noarch
--> Running transaction check
---> Package atlas.x86_64 0:3.10.1-12.el7 will be installed
---> Package lapack.x86_64 0:3.4.2-8.el7 will be installed
--> Processing Dependency: libblas.so.3()(64bit) for package: lapack-3.4.2-8.el7
.x86_64
---> Package libgfortran.x86_64 0:4.8.5-28.el7_5.1 will be installed
---> Package libquadmath.x86_64 0:4.8.5-28.el7_5.1 will be installed
---> Package python-nose.noarch 0:1.3.7-1.el7 will be installed
---> Package python-setuptools.noarch 0:0.9.8-7.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: pyth
on-setuptools-0.9.8-7.el7.noarch
--> Running transaction check
---> Package blas.x86_64 0:3.4.2-8.el7 will be installed
---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be
installed
--> Processing Dependency: python-ipaddress for package: python-backports-ssl_ma
tch_hostname-3.5.0.1-1.el7.noarch
--> Processing Dependency: python-backports for package: python-backports-ssl_ma
tch_hostname-3.5.0.1-1.el7.noarch
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                              Arch    Version            Repository
                                                                           Size
================================================================================
Installing:
 numpy                                x86_64  1:1.7.1-13.el7     base     2.8 M
 python-devel                         x86_64  2.7.5-69.el7_5     updates  397 k
 python2-numpy                        noarch  1:1.7.1-0.el7      epel     3.0 k
 python2-pip                          noarch  8.1.2-6.el7        epel     1.7 M
Installing for dependencies:
 atlas                                x86_64  3.10.1-12.el7      base     4.5 M
 blas                                 x86_64  3.4.2-8.el7        base     399 k
 lapack                               x86_64  3.4.2-8.el7        base     5.4 M
 libgfortran                          x86_64  4.8.5-28.el7_5.1   updates  299 k
 libquadmath                          x86_64  4.8.5-28.el7_5.1   updates  188 k
 python-backports                     x86_64  1.0-8.el7          base     5.8 k
 python-backports-ssl_match_hostname  noarch  3.5.0.1-1.el7      base      13 k
 python-ipaddress                     noarch  1.0.16-2.el7       base      34 k
 python-nose                          noarch  1.3.7-1.el7        base     276 k
 python-setuptools                    noarch  0.9.8-7.el7        base     397 k

Transaction Summary
================================================================================
Install  4 Packages (+10 Dependent packages)

Total download size: 16 M
Installed size: 57 M
Downloading packages:
(1/14): blas-3.4.2-8.el7.x86_64.rpm                        | 399 kB   00:00
(2/14): atlas-3.10.1-12.el7.x86_64.rpm                     | 4.5 MB   00:00
(3/14): lapack-3.4.2-8.el7.x86_64.rpm                      | 5.4 MB   00:00
(4/14): numpy-1.7.1-13.el7.x86_64.rpm                      | 2.8 MB   00:00
(5/14): python-backports-1.0-8.el7.x86_64.rpm              | 5.8 kB   00:00
(6/14): libgfortran-4.8.5-28.el7_5.1.x86_64.rpm            | 299 kB   00:00
(7/14): python-backports-ssl_match_hostname-3.5.0.1-1.el7. |  13 kB   00:00
(8/14): python-ipaddress-1.0.16-2.el7.noarch.rpm           |  34 kB   00:00
(9/14): python-nose-1.3.7-1.el7.noarch.rpm                 | 276 kB   00:00
(10/14): python-setuptools-0.9.8-7.el7.noarch.rpm          | 397 kB   00:00
(11/14): libquadmath-4.8.5-28.el7_5.1.x86_64.rpm           | 188 kB   00:00
(12/14): python2-numpy-1.7.1-0.el7.noarch.rpm              | 3.0 kB   00:00
(13/14): python-devel-2.7.5-69.el7_5.x86_64.rpm            | 397 kB   00:00
(14/14): python2-pip-8.1.2-6.el7.noarch.rpm                | 1.7 MB   00:00
--------------------------------------------------------------------------------
Total                                               10 MB/s |  16 MB  00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libquadmath-4.8.5-28.el7_5.1.x86_64                         1/14
  Installing : libgfortran-4.8.5-28.el7_5.1.x86_64                         2/14
  Installing : blas-3.4.2-8.el7.x86_64                                     3/14
  Installing : lapack-3.4.2-8.el7.x86_64                                   4/14
  Installing : atlas-3.10.1-12.el7.x86_64                                  5/14
  Installing : python-backports-1.0-8.el7.x86_64                           6/14
  Installing : python-ipaddress-1.0.16-2.el7.noarch                        7/14
  Installing : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch    8/14
  Installing : python-setuptools-0.9.8-7.el7.noarch                        9/14
  Installing : python-nose-1.3.7-1.el7.noarch                             10/14
  Installing : 1:numpy-1.7.1-13.el7.x86_64                                11/14
  Installing : 1:python2-numpy-1.7.1-0.el7.noarch                         12/14
  Installing : python2-pip-8.1.2-6.el7.noarch                             13/14
  Installing : python-devel-2.7.5-69.el7_5.x86_64                         14/14
  Verifying  : python-ipaddress-1.0.16-2.el7.noarch                        1/14
  Verifying  : libquadmath-4.8.5-28.el7_5.1.x86_64                         2/14
  Verifying  : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch    3/14
  Verifying  : blas-3.4.2-8.el7.x86_64                                     4/14
  Verifying  : 1:numpy-1.7.1-13.el7.x86_64                                 5/14
  Verifying  : 1:python2-numpy-1.7.1-0.el7.noarch                          6/14
  Verifying  : lapack-3.4.2-8.el7.x86_64                                   7/14
  Verifying  : python-setuptools-0.9.8-7.el7.noarch                        8/14
  Verifying  : python-backports-1.0-8.el7.x86_64                           9/14
  Verifying  : libgfortran-4.8.5-28.el7_5.1.x86_64                        10/14
  Verifying  : atlas-3.10.1-12.el7.x86_64                                 11/14
  Verifying  : python-devel-2.7.5-69.el7_5.x86_64                         12/14
  Verifying  : python2-pip-8.1.2-6.el7.noarch                             13/14
  Verifying  : python-nose-1.3.7-1.el7.noarch                             14/14

Installed:
  numpy.x86_64 1:1.7.1-13.el7           python-devel.x86_64 0:2.7.5-69.el7_5
  python2-numpy.noarch 1:1.7.1-0.el7    python2-pip.noarch 0:8.1.2-6.el7

Dependency Installed:
  atlas.x86_64 0:3.10.1-12.el7
  blas.x86_64 0:3.4.2-8.el7
  lapack.x86_64 0:3.4.2-8.el7
  libgfortran.x86_64 0:4.8.5-28.el7_5.1
  libquadmath.x86_64 0:4.8.5-28.el7_5.1
  python-backports.x86_64 0:1.0-8.el7
  python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7
  python-ipaddress.noarch 0:1.0.16-2.el7
  python-nose.noarch 0:1.3.7-1.el7
  python-setuptools.noarch 0:0.9.8-7.el7

Complete!

Step 4.2: install python34-numpy:

[root@tutorialspots build]# yum install python34-numpy -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.umflint.edu
 * epel: fedora-epel.mirror.lstn.net
 * extras: centos.den.host-engine.com
 * ius: dfw.mirror.rackspace.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: centos.den.host-engine.com
Resolving Dependencies
--> Running transaction check
---> Package python34-numpy.x86_64 0:1.10.4-6.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch           Version               Repository    Size
================================================================================
Installing:
 python34-numpy         x86_64         1.10.4-6.el7          epel         2.8 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 2.8 M
Installed size: 13 M
Downloading packages:
python34-numpy-1.10.4-6.el7.x86_64.rpm                     | 2.8 MB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python34-numpy-1.10.4-6.el7.x86_64                           1/1
  Verifying  : python34-numpy-1.10.4-6.el7.x86_64                           1/1

Installed:
  python34-numpy.x86_64 0:1.10.4-6.el7

Complete!

Step 5:

yum install -y ffmpeg-devel
yum install -y gstreamer1-plugins-base-devel
yum install -y libdc1394-devel
yum install -y libv4l-devel
yum install -y gtk3-devel
yum install -y libgphoto2-devel
ln -s /usr/include/libv4l1-videodev.h   /usr/include/linux/videodev.h 
ln -s /usr/include/ffmpeg/libavformat/avformat.h /usr/include/ffmpeg/avformat.h

Result:

[root@tutorialspots build]# yum install gstreamer1-plugins-base-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.lstn.net
 * epel: kdeforge2.unl.edu
 * extras: centos.mirrors.tds.net
 * ius: dfw.mirror.rackspace.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: centos.host-engine.com
Resolving Dependencies
--> Running transaction check
---> Package gstreamer1-plugins-base-devel.x86_64 0:1.10.4-1.el7 will be install
ed
--> Processing Dependency: gstreamer1-plugins-base = 1.10.4-1.el7 for package: g
streamer1-plugins-base-devel-1.10.4-1.el7.x86_64
--> Processing Dependency: libgstvideo-1.0.so.0()(64bit) for package: gstreamer1
-plugins-base-devel-1.10.4-1.el7.x86_64
--> Processing Dependency: libgsttag-1.0.so.0()(64bit) for package: gstreamer1-p
lugins-base-devel-1.10.4-1.el7.x86_64
--> Processing Dependency: libgstsdp-1.0.so.0()(64bit) for package: gstreamer1-p
lugins-base-devel-1.10.4-1.el7.x86_64
--> Processing Dependency: libgstrtsp-1.0.so.0()(64bit) for package: gstreamer1-
plugins-base-devel-1.10.4-1.el7.x86_64
--> Processing Dependency: libgstrtp-1.0.so.0()(64bit) for package: gstreamer1-p
lugins-base-devel-1.10.4-1.el7.x86_64
--> Processing Dependency: libgstriff-1.0.so.0()(64bit) for package: gstreamer1-
plugins-base-devel-1.10.4-1.el7.x86_64
--> Processing Dependency: libgstpbutils-1.0.so.0()(64bit) for package: gstreame
r1-plugins-base-devel-1.10.4-1.el7.x86_64
--> Processing Dependency: libgstfft-1.0.so.0()(64bit) for package: gstreamer1-p
lugins-base-devel-1.10.4-1.el7.x86_64
--> Processing Dependency: libgstaudio-1.0.so.0()(64bit) for package: gstreamer1
-plugins-base-devel-1.10.4-1.el7.x86_64
--> Processing Dependency: libgstapp-1.0.so.0()(64bit) for package: gstreamer1-p
lugins-base-devel-1.10.4-1.el7.x86_64
--> Processing Dependency: libgstallocators-1.0.so.0()(64bit) for package: gstre
amer1-plugins-base-devel-1.10.4-1.el7.x86_64
--> Running transaction check
---> Package gstreamer1-plugins-base.x86_64 0:1.10.4-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                           Arch       Version            Repository
                                                                           Size
================================================================================
Installing:
 gstreamer1-plugins-base-devel     x86_64     1.10.4-1.el7       base     300 k
Installing for dependencies:
 gstreamer1-plugins-base           x86_64     1.10.4-1.el7       base     1.4 M

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 1.7 M
Installed size: 7.3 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): gstreamer1-plugins-base-devel-1.10.4-1.el7.x86_64.r | 300 kB   00:00
(2/2): gstreamer1-plugins-base-1.10.4-1.el7.x86_64.rpm     | 1.4 MB   00:00
--------------------------------------------------------------------------------
Total                                              2.9 MB/s | 1.7 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : gstreamer1-plugins-base-1.10.4-1.el7.x86_64                  1/2
  Installing : gstreamer1-plugins-base-devel-1.10.4-1.el7.x86_64            2/2
  Verifying  : gstreamer1-plugins-base-devel-1.10.4-1.el7.x86_64            1/2
  Verifying  : gstreamer1-plugins-base-1.10.4-1.el7.x86_64                  2/2

Installed:
  gstreamer1-plugins-base-devel.x86_64 0:1.10.4-1.el7

Dependency Installed:
  gstreamer1-plugins-base.x86_64 0:1.10.4-1.el7

Complete!
[root@tutorialspots ~]# yum install -y gtk3-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.lstn.net
 * epel: kdeforge2.unl.edu
 * extras: repo.us.bigstepcloud.com
 * ius: dfw.mirror.rackspace.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: centos.host-engine.com
Resolving Dependencies
--> Running transaction check
---> Package gtk3-devel.x86_64 0:3.22.26-4.el7_5 will be installed
--> Processing Dependency: gtk3(x86-64) = 3.22.26-4.el7_5 for package: gtk3-deve
l-3.22.26-4.el7_5.x86_64
--> Processing Dependency: pkgconfig(xkbcommon) >= 0.2.0 for package: gtk3-devel
-3.22.26-4.el7_5.x86_64
--> Processing Dependency: pkgconfig(wayland-protocols) >= 1.9 for package: gtk3
-devel-3.22.26-4.el7_5.x86_64
--> Processing Dependency: pkgconfig(wayland-cursor) >= 1.9.91 for package: gtk3
-devel-3.22.26-4.el7_5.x86_64
--> Processing Dependency: pkgconfig(wayland-client) >= 1.9.91 for package: gtk3
-devel-3.22.26-4.el7_5.x86_64
--> Processing Dependency: pkgconfig(cairo-gobject) >= 1.14.0 for package: gtk3-
devel-3.22.26-4.el7_5.x86_64
--> Processing Dependency: pkgconfig(wayland-egl) for package: gtk3-devel-3.22.2
6-4.el7_5.x86_64
--> Processing Dependency: pkgconfig(atk-bridge-2.0) for package: gtk3-devel-3.2
2.26-4.el7_5.x86_64
--> Processing Dependency: libxkbcommon.so.0()(64bit) for package: gtk3-devel-3.
22.26-4.el7_5.x86_64
--> Processing Dependency: libwayland-egl.so.1()(64bit) for package: gtk3-devel-
3.22.26-4.el7_5.x86_64
--> Processing Dependency: libwayland-cursor.so.0()(64bit) for package: gtk3-dev
el-3.22.26-4.el7_5.x86_64
--> Processing Dependency: libgtk-3.so.0()(64bit) for package: gtk3-devel-3.22.2
6-4.el7_5.x86_64
--> Processing Dependency: libgdk-3.so.0()(64bit) for package: gtk3-devel-3.22.2
6-4.el7_5.x86_64
--> Processing Dependency: libgailutil-3.so.0()(64bit) for package: gtk3-devel-3
.22.26-4.el7_5.x86_64
--> Processing Dependency: libcairo-gobject.so.2()(64bit) for package: gtk3-deve
l-3.22.26-4.el7_5.x86_64
--> Processing Dependency: libatk-bridge-2.0.so.0()(64bit) for package: gtk3-dev
el-3.22.26-4.el7_5.x86_64
--> Running transaction check
---> Package at-spi2-atk.x86_64 0:2.22.0-2.el7 will be installed
--> Processing Dependency: at-spi2-core(x86-64) >= 2.17.90 for package: at-spi2-
atk-2.22.0-2.el7.x86_64
--> Processing Dependency: libatspi.so.0()(64bit) for package: at-spi2-atk-2.22.
0-2.el7.x86_64
---> Package at-spi2-atk-devel.x86_64 0:2.22.0-2.el7 will be installed
--> Processing Dependency: pkgconfig(atspi-2) for package: at-spi2-atk-devel-2.2
2.0-2.el7.x86_64
---> Package cairo-gobject.x86_64 0:1.14.8-2.el7 will be installed
---> Package cairo-gobject-devel.x86_64 0:1.14.8-2.el7 will be installed
---> Package gtk3.x86_64 0:3.22.26-4.el7_5 will be installed
--> Processing Dependency: dconf(x86-64) for package: gtk3-3.22.26-4.el7_5.x86_6
4
--> Processing Dependency: adwaita-icon-theme for package: gtk3-3.22.26-4.el7_5.
x86_64
--> Processing Dependency: librest-0.7.so.0()(64bit) for package: gtk3-3.22.26-4
.el7_5.x86_64
--> Processing Dependency: libjson-glib-1.0.so.0()(64bit) for package: gtk3-3.22
.26-4.el7_5.x86_64
--> Processing Dependency: libcolord.so.2()(64bit) for package: gtk3-3.22.26-4.e
l7_5.x86_64
---> Package libwayland-cursor.x86_64 0:1.14.0-2.el7 will be installed
---> Package libxkbcommon.x86_64 0:0.7.1-1.el7 will be installed
--> Processing Dependency: xkeyboard-config for package: libxkbcommon-0.7.1-1.el
7.x86_64
---> Package libxkbcommon-devel.x86_64 0:0.7.1-1.el7 will be installed
---> Package mesa-libwayland-egl.x86_64 0:17.2.3-8.20171019.el7 will be installe
d
---> Package mesa-libwayland-egl-devel.x86_64 0:17.2.3-8.20171019.el7 will be in
stalled
---> Package wayland-devel.x86_64 0:1.14.0-2.el7 will be installed
---> Package wayland-protocols-devel.noarch 0:1.10-1.el7 will be installed
--> Running transaction check
---> Package adwaita-icon-theme.noarch 0:3.26.0-1.el7 will be installed
--> Processing Dependency: adwaita-cursor-theme = 3.26.0-1.el7 for package: adwa
ita-icon-theme-3.26.0-1.el7.noarch
---> Package at-spi2-core.x86_64 0:2.22.0-1.el7 will be installed
---> Package at-spi2-core-devel.x86_64 0:2.22.0-1.el7 will be installed
--> Processing Dependency: pkgconfig(dbus-1) for package: at-spi2-core-devel-2.2
2.0-1.el7.x86_64
---> Package colord-libs.x86_64 0:1.3.4-1.el7 will be installed
--> Processing Dependency: libgusb.so.2(LIBGUSB_0.1.1)(64bit) for package: color
d-libs-1.3.4-1.el7.x86_64
--> Processing Dependency: libgusb.so.2(LIBGUSB_0.1.0)(64bit) for package: color
d-libs-1.3.4-1.el7.x86_64
--> Processing Dependency: libgusb.so.2()(64bit) for package: colord-libs-1.3.4-
1.el7.x86_64
---> Package dconf.x86_64 0:0.26.0-3.el7_5.1 will be installed
---> Package json-glib.x86_64 0:1.2.6-1.el7 will be installed
---> Package rest.x86_64 0:0.8.0-2.el7 will be installed
--> Processing Dependency: libsoup-gnome-2.4.so.1()(64bit) for package: rest-0.8
.0-2.el7.x86_64
--> Processing Dependency: libsoup-2.4.so.1()(64bit) for package: rest-0.8.0-2.e
l7.x86_64
---> Package xkeyboard-config.noarch 0:2.20-1.el7 will be installed
--> Running transaction check
---> Package adwaita-cursor-theme.noarch 0:3.26.0-1.el7 will be installed
---> Package dbus-devel.x86_64 1:1.10.24-7.el7 will be installed
---> Package libgusb.x86_64 0:0.2.9-1.el7 will be installed
---> Package libsoup.x86_64 0:2.56.0-6.el7 will be installed
--> Processing Dependency: glib-networking(x86-64) >= 2.38.0 for package: libsou
p-2.56.0-6.el7.x86_64
--> Running transaction check
---> Package glib-networking.x86_64 0:2.50.0-1.el7 will be installed
--> Processing Dependency: gsettings-desktop-schemas for package: glib-networkin
g-2.50.0-1.el7.x86_64
--> Processing Dependency: libproxy.so.1()(64bit) for package: glib-networking-2
.50.0-1.el7.x86_64
--> Running transaction check
---> Package gsettings-desktop-schemas.x86_64 0:3.24.1-2.el7_5 will be installed
---> Package libproxy.x86_64 0:0.4.11-11.el7 will be installed
--> Processing Dependency: libmodman.so.1()(64bit) for package: libproxy-0.4.11-
11.el7.x86_64
--> Running transaction check
---> Package libmodman.x86_64 0:2.0.1-8.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                     Arch     Version                   Repository
                                                                           Size
================================================================================
Installing:
 gtk3-devel                  x86_64   3.22.26-4.el7_5           updates   4.4 M
Installing for dependencies:
 adwaita-cursor-theme        noarch   3.26.0-1.el7              base      641 k
 adwaita-icon-theme          noarch   3.26.0-1.el7              base       12 M
 at-spi2-atk                 x86_64   2.22.0-2.el7              base       80 k
 at-spi2-atk-devel           x86_64   2.22.0-2.el7              base       12 k
 at-spi2-core                x86_64   2.22.0-1.el7              base      157 k
 at-spi2-core-devel          x86_64   2.22.0-1.el7              base      139 k
 cairo-gobject               x86_64   1.14.8-2.el7              base       25 k
 cairo-gobject-devel         x86_64   1.14.8-2.el7              base       18 k
 colord-libs                 x86_64   1.3.4-1.el7               base      185 k
 dbus-devel                  x86_64   1:1.10.24-7.el7           base       54 k
 dconf                       x86_64   0.26.0-3.el7_5.1          updates   107 k
 glib-networking             x86_64   2.50.0-1.el7              base      131 k
 gsettings-desktop-schemas   x86_64   3.24.1-2.el7_5            updates   586 k
 gtk3                        x86_64   3.22.26-4.el7_5           updates   4.4 M
 json-glib                   x86_64   1.2.6-1.el7               base      133 k
 libgusb                     x86_64   0.2.9-1.el7               base       40 k
 libmodman                   x86_64   2.0.1-8.el7               base       28 k
 libproxy                    x86_64   0.4.11-11.el7             base       64 k
 libsoup                     x86_64   2.56.0-6.el7              base      398 k
 libwayland-cursor           x86_64   1.14.0-2.el7              base       20 k
 libxkbcommon                x86_64   0.7.1-1.el7               base      108 k
 libxkbcommon-devel          x86_64   0.7.1-1.el7               base       55 k
 mesa-libwayland-egl         x86_64   17.2.3-8.20171019.el7     base       17 k
 mesa-libwayland-egl-devel   x86_64   17.2.3-8.20171019.el7     base       15 k
 rest                        x86_64   0.8.0-2.el7               base       63 k
 wayland-devel               x86_64   1.14.0-2.el7              base      161 k
 wayland-protocols-devel     noarch   1.10-1.el7                base       61 k
 xkeyboard-config            noarch   2.20-1.el7                base      799 k

Transaction Summary
================================================================================
Install  1 Package (+28 Dependent packages)

Total download size: 25 M
Installed size: 89 M
Downloading packages:
(1/29): adwaita-cursor-theme-3.26.0-1.el7.noarch.rpm       | 641 kB   00:00
(2/29): at-spi2-atk-2.22.0-2.el7.x86_64.rpm                |  80 kB   00:00
(3/29): at-spi2-atk-devel-2.22.0-2.el7.x86_64.rpm          |  12 kB   00:00
(4/29): at-spi2-core-2.22.0-1.el7.x86_64.rpm               | 157 kB   00:00
(5/29): at-spi2-core-devel-2.22.0-1.el7.x86_64.rpm         | 139 kB   00:00
(6/29): cairo-gobject-1.14.8-2.el7.x86_64.rpm              |  25 kB   00:00
(7/29): cairo-gobject-devel-1.14.8-2.el7.x86_64.rpm        |  18 kB   00:00
(8/29): adwaita-icon-theme-3.26.0-1.el7.noarch.rpm         |  12 MB   00:00
(9/29): colord-libs-1.3.4-1.el7.x86_64.rpm                 | 185 kB   00:00
(10/29): dbus-devel-1.10.24-7.el7.x86_64.rpm               |  54 kB   00:00
(11/29): glib-networking-2.50.0-1.el7.x86_64.rpm           | 131 kB   00:00
(12/29): dconf-0.26.0-3.el7_5.1.x86_64.rpm                 | 107 kB   00:00
(13/29): json-glib-1.2.6-1.el7.x86_64.rpm                  | 133 kB   00:00
(14/29): libmodman-2.0.1-8.el7.x86_64.rpm                  |  28 kB   00:00
(15/29): libproxy-0.4.11-11.el7.x86_64.rpm                 |  64 kB   00:00
(16/29): libsoup-2.56.0-6.el7.x86_64.rpm                   | 398 kB   00:00
(17/29): gsettings-desktop-schemas-3.24.1-2.el7_5.x86_64.r | 586 kB   00:00
(18/29): libwayland-cursor-1.14.0-2.el7.x86_64.rpm         |  20 kB   00:00
(19/29): libgusb-0.2.9-1.el7.x86_64.rpm                    |  40 kB   00:00
(20/29): libxkbcommon-0.7.1-1.el7.x86_64.rpm               | 108 kB   00:00
(21/29): libxkbcommon-devel-0.7.1-1.el7.x86_64.rpm         |  55 kB   00:00
(22/29): mesa-libwayland-egl-17.2.3-8.20171019.el7.x86_64. |  17 kB   00:00
(23/29): mesa-libwayland-egl-devel-17.2.3-8.20171019.el7.x |  15 kB   00:00
(24/29): rest-0.8.0-2.el7.x86_64.rpm                       |  63 kB   00:00
(25/29): wayland-devel-1.14.0-2.el7.x86_64.rpm             | 161 kB   00:00
(26/29): wayland-protocols-devel-1.10-1.el7.noarch.rpm     |  61 kB   00:00
(27/29): xkeyboard-config-2.20-1.el7.noarch.rpm            | 799 kB   00:00
(28/29): gtk3-3.22.26-4.el7_5.x86_64.rpm                   | 4.4 MB   00:01
(29/29): gtk3-devel-3.22.26-4.el7_5.x86_64.rpm             | 4.4 MB   00:01
--------------------------------------------------------------------------------
Total                                              9.5 MB/s |  25 MB  00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libwayland-cursor-1.14.0-2.el7.x86_64                       1/29
  Installing : mesa-libwayland-egl-17.2.3-8.20171019.el7.x86_64            2/29
  Installing : cairo-gobject-1.14.8-2.el7.x86_64                           3/29
  Installing : wayland-devel-1.14.0-2.el7.x86_64                           4/29
  Installing : at-spi2-core-2.22.0-1.el7.x86_64                            5/29
  Installing : at-spi2-atk-2.22.0-2.el7.x86_64                             6/29
  Installing : mesa-libwayland-egl-devel-17.2.3-8.20171019.el7.x86_64      7/29
  Installing : cairo-gobject-devel-1.14.8-2.el7.x86_64                     8/29
  Installing : dconf-0.26.0-3.el7_5.1.x86_64                               9/29
  Installing : adwaita-cursor-theme-3.26.0-1.el7.noarch                   10/29
  Installing : adwaita-icon-theme-3.26.0-1.el7.noarch                     11/29
  Installing : libgusb-0.2.9-1.el7.x86_64                                 12/29
  Installing : colord-libs-1.3.4-1.el7.x86_64                             13/29
  Installing : gsettings-desktop-schemas-3.24.1-2.el7_5.x86_64            14/29
  Installing : wayland-protocols-devel-1.10-1.el7.noarch                  15/29
  Installing : json-glib-1.2.6-1.el7.x86_64                               16/29
  Installing : 1:dbus-devel-1.10.24-7.el7.x86_64                          17/29
  Installing : at-spi2-core-devel-2.22.0-1.el7.x86_64                     18/29
  Installing : at-spi2-atk-devel-2.22.0-2.el7.x86_64                      19/29
  Installing : xkeyboard-config-2.20-1.el7.noarch                         20/29
  Installing : libxkbcommon-0.7.1-1.el7.x86_64                            21/29
  Installing : libxkbcommon-devel-0.7.1-1.el7.x86_64                      22/29
  Installing : libmodman-2.0.1-8.el7.x86_64                               23/29
  Installing : libproxy-0.4.11-11.el7.x86_64                              24/29
  Installing : glib-networking-2.50.0-1.el7.x86_64                        25/29
  Installing : libsoup-2.56.0-6.el7.x86_64                                26/29
  Installing : rest-0.8.0-2.el7.x86_64                                    27/29
  Installing : gtk3-3.22.26-4.el7_5.x86_64                                28/29
  Installing : gtk3-devel-3.22.26-4.el7_5.x86_64                          29/29
  Verifying  : gtk3-devel-3.22.26-4.el7_5.x86_64                           1/29
  Verifying  : cairo-gobject-1.14.8-2.el7.x86_64                           2/29
  Verifying  : libmodman-2.0.1-8.el7.x86_64                                3/29
  Verifying  : mesa-libwayland-egl-17.2.3-8.20171019.el7.x86_64            4/29
  Verifying  : mesa-libwayland-egl-devel-17.2.3-8.20171019.el7.x86_64      5/29
  Verifying  : xkeyboard-config-2.20-1.el7.noarch                          6/29
  Verifying  : colord-libs-1.3.4-1.el7.x86_64                              7/29
  Verifying  : libwayland-cursor-1.14.0-2.el7.x86_64                       8/29
  Verifying  : wayland-devel-1.14.0-2.el7.x86_64                           9/29
  Verifying  : cairo-gobject-devel-1.14.8-2.el7.x86_64                    10/29
  Verifying  : 1:dbus-devel-1.10.24-7.el7.x86_64                          11/29
  Verifying  : at-spi2-core-devel-2.22.0-1.el7.x86_64                     12/29
  Verifying  : json-glib-1.2.6-1.el7.x86_64                               13/29
  Verifying  : libxkbcommon-devel-0.7.1-1.el7.x86_64                      14/29
  Verifying  : wayland-protocols-devel-1.10-1.el7.noarch                  15/29
  Verifying  : adwaita-icon-theme-3.26.0-1.el7.noarch                     16/29
  Verifying  : gsettings-desktop-schemas-3.24.1-2.el7_5.x86_64            17/29
  Verifying  : at-spi2-atk-devel-2.22.0-2.el7.x86_64                      18/29
  Verifying  : rest-0.8.0-2.el7.x86_64                                    19/29
  Verifying  : libgusb-0.2.9-1.el7.x86_64                                 20/29
  Verifying  : libsoup-2.56.0-6.el7.x86_64                                21/29
  Verifying  : libproxy-0.4.11-11.el7.x86_64                              22/29
  Verifying  : at-spi2-atk-2.22.0-2.el7.x86_64                            23/29
  Verifying  : gtk3-3.22.26-4.el7_5.x86_64                                24/29
  Verifying  : libxkbcommon-0.7.1-1.el7.x86_64                            25/29
  Verifying  : glib-networking-2.50.0-1.el7.x86_64                        26/29
  Verifying  : at-spi2-core-2.22.0-1.el7.x86_64                           27/29
  Verifying  : adwaita-cursor-theme-3.26.0-1.el7.noarch                   28/29
  Verifying  : dconf-0.26.0-3.el7_5.1.x86_64                              29/29

Installed:
  gtk3-devel.x86_64 0:3.22.26-4.el7_5

Dependency Installed:
  adwaita-cursor-theme.noarch 0:3.26.0-1.el7
  adwaita-icon-theme.noarch 0:3.26.0-1.el7
  at-spi2-atk.x86_64 0:2.22.0-2.el7
  at-spi2-atk-devel.x86_64 0:2.22.0-2.el7
  at-spi2-core.x86_64 0:2.22.0-1.el7
  at-spi2-core-devel.x86_64 0:2.22.0-1.el7
  cairo-gobject.x86_64 0:1.14.8-2.el7
  cairo-gobject-devel.x86_64 0:1.14.8-2.el7
  colord-libs.x86_64 0:1.3.4-1.el7
  dbus-devel.x86_64 1:1.10.24-7.el7
  dconf.x86_64 0:0.26.0-3.el7_5.1
  glib-networking.x86_64 0:2.50.0-1.el7
  gsettings-desktop-schemas.x86_64 0:3.24.1-2.el7_5
  gtk3.x86_64 0:3.22.26-4.el7_5
  json-glib.x86_64 0:1.2.6-1.el7
  libgusb.x86_64 0:0.2.9-1.el7
  libmodman.x86_64 0:2.0.1-8.el7
  libproxy.x86_64 0:0.4.11-11.el7
  libsoup.x86_64 0:2.56.0-6.el7
  libwayland-cursor.x86_64 0:1.14.0-2.el7
  libxkbcommon.x86_64 0:0.7.1-1.el7
  libxkbcommon-devel.x86_64 0:0.7.1-1.el7
  mesa-libwayland-egl.x86_64 0:17.2.3-8.20171019.el7
  mesa-libwayland-egl-devel.x86_64 0:17.2.3-8.20171019.el7
  rest.x86_64 0:0.8.0-2.el7
  wayland-devel.x86_64 0:1.14.0-2.el7
  wayland-protocols-devel.noarch 0:1.10-1.el7
  xkeyboard-config.noarch 0:2.20-1.el7

Complete!

Step 6: manual download ippicv_linux_20151201.tgz

cd /root/opencv-3.1.0/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e

Download: https://raw.githubusercontent.com/opencv/opencv_3rdparty/ippicv/master_20151201/ippicv/ippicv_linux_20151201.tgz

[root@tutorialspots linux-808b791a6eac9ed78d32a7666804320e]# wget https://raw.githubus
ercontent.com/opencv/opencv_3rdparty/ippicv/master_20151201/ippicv/ippicv_linux_
20151201.tgz -O ippicv_linux_20151201.tgz
--2018-10-04 11:28:48--  https://raw.githubusercontent.com/opencv/opencv_3rdpart
y/ippicv/master_20151201/ippicv/ippicv_linux_20151201.tgz
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.148.1
33
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.148.
133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36533175 (35M) [application/octet-stream]
Saving to: `ippicv_linux_20151201.tgz'

100%[======================================>] 36,533,175  50.0MB/s   in 0.7s

2018-10-04 11:28:50 (50.0 MB/s) - `ippicv_linux_20151201.tgz' saved [36533175/36
533175]

Step 7: install optinal dependencies:

yum install -y libpng-devel
yum install -y libjpeg-turbo-devel
yum install -y jasper-devel
yum install -y openexr-devel
yum install -y libtiff-devel
yum install -y libwebp-devel
yum install -y tbb-devel
yum install -y eigen3-devel
yum install -y python-sphinx
yum install -y texlive

Step 8:
Download any OpenCV version here, i choose version 3.1.0

[root@tutorialspots ~]# wget https://github.com/opencv/opencv/archive/3.1.0.zip -O ope
ncv.zip
--2018-10-04 10:13:57--  https://github.com/opencv/opencv/archive/3.1.0.zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/opencv/opencv/zip/3.1.0 [following]
--2018-10-04 10:13:57--  https://codeload.github.com/opencv/opencv/zip/3.1.0
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.25
3.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... c
onnected.
HTTP request sent, awaiting response... 200 OK
Length: 79186131 (76M) [application/zip]
Saving to: `opencv.zip'

100%[======================================>] 79,186,131  40.4MB/s   in 1.9s

2018-10-04 10:13:59 (40.4 MB/s) - `opencv.zip' saved [79186131/79186131]

and opencv_contrib here, i choose version 3.1.0

[root@tutorialspots ~]# wget https://github.com/opencv/opencv_contrib/archive/3.1.0.zi
p -O opencv_contrib.zip
--2018-10-04 10:09:24--  https://github.com/opencv/opencv_contrib/archive/3.1.0.
zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/opencv/opencv_contrib/zip/3.1.0 [following
]
--2018-10-04 10:09:24--  https://codeload.github.com/opencv/opencv_contrib/zip/3
.1.0
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.25
3.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... c
onnected.
HTTP request sent, awaiting response... 200 OK
Length: 55182211 (53M) [application/zip]
Saving to: `opencv_contrib.zip'

100%[======================================>] 55,182,211  32.2MB/s   in 1.6s

2018-10-04 10:09:26 (32.2 MB/s) - `opencv_contrib.zip' saved [55182211/55182211]

Step 8.2 upzip

unzip opencv.zip
unzip opencv_contrib.zip

Step 9: Building OpenCV
9.1:

cd ~/opencv-3.1.0
mkdir build
cd build

9.2: You can choose some cases, recommenced 9.2c
9.2a

cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=OFF \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D BUILD_EXAMPLES=ON ..

result:

--     3rdparty dependencies:       libprotobuf
--
--   OpenCV modules:
--     To be built:                 core flann imgproc ml photo reg surface_matc
hing video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres ts
xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor salienc
y text calib3d ccalib datasets rgbd stereo structured_light tracking videostab x
features2d ximgproc aruco optflow stitching python2
--     Disabled:                    world contrib_world
--     Disabled by dependency:      -
--     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures
2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudaw
arping cudev java python3 viz cvv hdf matlab sfm
--
--   GUI:
--     QT:                          NO
--     GTK+ 3.x:                    YES (ver 3.22.26)
--     GThread :                    YES (ver 2.54.2)
--     GtkGlExt:                    NO
--     OpenGL support:              NO
--     VTK support:                 NO
--
--   Media I/O:
--     ZLib:                        /lib64/libz.so (ver 1.2.7)
--     JPEG:                        /lib64/libjpeg.so (ver )
--     WEBP:                        /lib64/libwebp.so (ver encoder: 0x0201)
--     PNG:                         /lib64/libpng.so (ver 1.5.13)
--     TIFF:                        /lib64/libtiff.so (ver 42 - 4.0.3)
--     JPEG 2000:                   /lib64/libjasper.so (ver 1.900.1)
--     OpenEXR:                     /lib64/libImath.so /lib64/libIlmImf.so /lib6
4/libIex.so /lib64/libHalf.so /lib64/libIlmThread.so (ver 1.7.1)
--     GDAL:                        NO
--
--   Video I/O:
--     DC1394 1.x:                  NO
--     DC1394 2.x:                  YES (ver 2.2.2)
--     FFMPEG:                      YES
--       codec:                     YES (ver 56.60.100)
--       format:                    YES (ver 56.40.101)
--       util:                      YES (ver 54.31.100)
--       swscale:                   YES (ver 3.1.101)
--       resample:                  YES (ver 2.1.0)
--       gentoo-style:              YES
--     GStreamer:
--       base:                      YES (ver 0.10.36)
--       video:                     YES (ver 0.10.36)
--       app:                       YES (ver 0.10.36)
--       riff:                      YES (ver 0.10.36)
--       pbutils:                   YES (ver 0.10.36)
--     OpenNI:                      NO
--     OpenNI PrimeSensor Modules:  NO
--     OpenNI2:                     NO
--     PvAPI:                       NO
--     GigEVisionSDK:               NO
--     UniCap:                      NO
--     UniCap ucil:                 NO
--     V4L/V4L2:                    Using libv4l1 (ver 0.9.5) / libv4l2 (ver 0.9
.5)
--     XIMEA:                       NO
--     Xine:                        NO
--     gPhoto2:                     YES
--
--   Parallel framework:            pthreads
--
--   Other third-party libraries:
--     Use IPP:                     9.0.1 [9.0.1]
--          at:                     /root/opencv-3.1.0/3rdparty/ippicv/unpack/ip
picv_lnx
--     Use IPP Async:               NO
--     Use VA:                      NO
--     Use Intel VA-API/OpenCL:     NO
--     Use Eigen:                   YES (ver 3.3.4)
--     Use Cuda:                    NO
--     Use OpenCL:                  YES
--     Use custom HAL:              NO
--
--   OpenCL:
--     Version:                     dynamic
--     Include path:                /root/opencv-3.1.0/3rdparty/include/opencl/1
.2
--     Use AMDFFT:                  NO
--     Use AMDBLAS:                 NO
--
--   Python 2:
--     Interpreter:                 /usr/bin/python2.7 (ver 2.7.5)
--     Libraries:                   /lib64/libpython2.7.so (ver 2.7.5)
--     numpy:                       /usr/lib64/python2.7/site-packages/numpy/cor
e/include (ver 1.7.1)
--     packages path:               lib/python2.7/site-packages
--
--   Python 3:
--     Interpreter:                 NO
--
--   Python (for build):            /usr/bin/python2.7
--
--   Java:
--     ant:                         NO
--     JNI:                         NO
--     Java wrappers:               NO
--     Java tests:                  NO
--
--   Matlab:                        Matlab not found or implicitly disabled
--
--   Documentation:
--     Doxygen:                     NO
--     PlantUML:                    NO
--
--   Tests and samples:
--     Tests:                       YES
--     Performance tests:           YES
--     C/C++ Examples:              YES
--
--   Install path:                  /usr/local
--
--   cvconfig.h is in:              /root/opencv-3.1.0/build
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /root/opencv-3.1.0/build

9.2b

cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=OFF \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.1.0/modules \
-D BUILD_EXAMPLES=ON ..

9.2c (recommenced)

cmake -D CMAKE_BUILD_TYPE=RELEASE \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D INSTALL_C_EXAMPLES=OFF \
  -D INSTALL_PYTHON_EXAMPLES=ON \
  -D BUILD_EXAMPLES=ON \
  -D PYTHON3_EXECUTABLE=$(which python3) \
  -D PYTHON_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
  -D PYTHON_INCLUDE_DIR2=$(python3 -c "from os.path import dirname; from distutils.sysconfig import get_config_h_filename; print(dirname(get_config_h_filename()))") \
  -D PYTHON_LIBRARY=$(python3 -c "from distutils.sysconfig import get_config_var;from os.path import dirname,join ; print(join(dirname(get_config_var('LIBPC')),get_config_var('LDLIBRARY')))") \
  -D PYTHON3_NUMPY_INCLUDE_DIRS=$(python3 -c "import numpy; print(numpy.get_include())") \
  -D PYTHON3_PACKAGES_PATH=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") \
  -D WITH_QT=OFF \
  -D WITH_TBB=ON \
  -D WITH_V4L=ON \
  -D WITH_EIGEN=ON ..

result:

[root@tutorialspots build]# cmake -D CMAKE_BUILD_TYPE=RELEASE \
>   -D CMAKE_INSTALL_PREFIX=/usr/local \
>   -D INSTALL_C_EXAMPLES=OFF \
>   -D INSTALL_PYTHON_EXAMPLES=ON \
>   -D BUILD_EXAMPLES=ON \
>   -D PYTHON3_EXECUTABLE=$(which python3) \
>   -D PYTHON_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_pyth
on_inc; print(get_python_inc())") \
>   -D PYTHON_INCLUDE_DIR2=$(python3 -c "from os.path import dirname; from distu
tils.sysconfig import get_config_h_filename; print(dirname(get_config_h_filename
()))") \
>   -D PYTHON_LIBRARY=$(python3 -c "from distutils.sysconfig import get_config_v
ar;from os.path import dirname,join ; print(join(dirname(get_config_var('LIBPC')
),get_config_var('LDLIBRARY')))") \
>   -D PYTHON3_NUMPY_INCLUDE_DIRS=$(python3 -c "import numpy; print(numpy.get_in
clude())") \
>   -D PYTHON3_PACKAGES_PATH=$(python3 -c "from distutils.sysconfig import get_p
ython_lib; print(get_python_lib())") \
>   -D WITH_QT=OFF \
>   -D WITH_TBB=ON \
>   -D WITH_V4L=ON \
>   -D WITH_EIGEN=ON ..
-- Detected version of GNU GCC: 48 (408)
-- Found ZLIB: /lib64/libz.so (found suitable version "1.2.7", minimum required
is "1.2.3")
-- Found ZLIB: /lib64/libz.so (found version "1.2.7")
-- Found OpenEXR: /lib64/libIlmImf.so
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - not found
-- Looking for ffmpeg/avformat.h
-- Looking for ffmpeg/avformat.h - not found
-- checking for module 'tbb'
--   found tbb, version 4.1.3
-- found IPP (ICV version): 9.0.1 [9.0.1]
-- at: /root/opencv-3.1.0/3rdparty/ippicv/unpack/ippicv_lnx
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DP
LANTUML_JAR=<filepath> option to cmake
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.5", minim
um required is "2.7")
-- Could NOT find PythonLibs: Found unsuitable version "3.4.9", but required is
exact version "2.7.5" (found /usr/lib64/libpython3.4m.so)
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.4.9", minimum
 required is "3.4")
-- Found PythonLibs: /usr/lib64/libpython3.4m.so (found suitable exact version "
3.4.9")
-- Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_
PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
-- Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB
_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_
BIN)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to
 VTK install subdirectory with VTKConfig.cmake file
-- Caffe:   NO
-- Protobuf:   NO
-- Glog:   NO
-- Could NOT find HDF5 (missing:  HDF5_LIBRARIES HDF5_INCLUDE_DIRS)
-- Module opencv_sfm disabled because the following dependencies are not found:
Glog/Gflags
-- Tesseract:   NO
-- Could NOT find PROTOBUF (missing:  PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
-- Build libprotobuf from sources:
--     libprotobuf not found into system
--     The protocol buffer compiler not found
-- Tesseract:   NO
CMake Warning (dev) in /root/opencv_contrib-3.1.0/modules/dnn/CMakeLists.txt:
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "opencv_dnn".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in /root/opencv_contrib-3.1.0/modules/dnn/3rdparty/protobuf/
CMakeLists.txt:
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "libprotobuf".  Use
  the target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

This warning is for project developers.  Use -Wno-dev to suppress it.

--
-- General configuration for OpenCV 3.1.0 =====================================
--   Version control:               unknown
--
--   Platform:
--     Host:                        Linux 3.10.0-862.11.6.el7.x86_64 x86_64
--     CMake:                       3.0.0-rc2
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /usr/bin/gmake
--     Configuration:               RELEASE
--
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ Compiler:                /usr/bin/c++  (ver 4.8.5)
--     C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -
Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=
format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wsha
dow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-
option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3
 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvi
sibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -
Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=
format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wsha
dow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-
option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3
 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvi
sibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
--     C Compiler:                  /usr/bin/cc
--     C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -
Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=
format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
-Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-o
ption -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3
-mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -
DNDEBUG  -DNDEBUG
--     C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -
Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=
format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
-Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-o
ption -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3
-mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g  -
O0 -DDEBUG -D_DEBUG
--     Linker flags (Release):
--     Linker flags (Debug):
--     Precompiled headers:         YES
--     Extra dependencies:          /lib64/libwebp.so /lib64/libpng.so /lib64/li
bz.so /lib64/libtiff.so /lib64/libjasper.so /lib64/libjpeg.so /lib64/libImath.so
 /lib64/libIlmImf.so /lib64/libIex.so /lib64/libHalf.so /lib64/libIlmThread.so g
tk-3 gdk-3 atk-1.0 gio-2.0 pangocairo-1.0 gdk_pixbuf-2.0 cairo-gobject pango-1.0
 cairo gthread-2.0 gstvideo-1.0 gstapp-1.0 gstbase-1.0 gstriff-1.0 gstpbutils-1.
0 gstreamer-1.0 gobject-2.0 glib-2.0 dc1394 v4l1 v4l2 avcodec avformat avutil sw
scale avresample gphoto2 gphoto2_port dl m pthread rt tbb
--     3rdparty dependencies:       libprotobuf
--
--   OpenCV modules:
--     To be built:                 core flann imgproc ml photo reg surface_matc
hing video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres ts
xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor salienc
y text calib3d ccalib datasets rgbd stereo structured_light tracking videostab x
features2d ximgproc aruco optflow stitching python3
--     Disabled:                    world contrib_world
--     Disabled by dependency:      -
--     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures
2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudaw
arping cudev java python2 viz cvv hdf matlab sfm
--
--   GUI:
--     QT:                          NO
--     GTK+ 3.x:                    YES (ver 3.22.26)
--     GThread :                    YES (ver 2.54.2)
--     GtkGlExt:                    NO
--     OpenGL support:              NO
--     VTK support:                 NO
--
--   Media I/O:
--     ZLib:                        /lib64/libz.so (ver 1.2.7)
--     JPEG:                        /lib64/libjpeg.so (ver )
--     WEBP:                        /lib64/libwebp.so (ver encoder: 0x0201)
--     PNG:                         /lib64/libpng.so (ver 1.5.13)
--     TIFF:                        /lib64/libtiff.so (ver 42 - 4.0.3)
--     JPEG 2000:                   /lib64/libjasper.so (ver 1.900.1)
--     OpenEXR:                     /lib64/libImath.so /lib64/libIlmImf.so /lib6
4/libIex.so /lib64/libHalf.so /lib64/libIlmThread.so (ver 1.7.1)
--     GDAL:                        NO
--
--   Video I/O:
--     DC1394 1.x:                  NO
--     DC1394 2.x:                  YES (ver 2.2.2)
--     FFMPEG:                      YES
--       codec:                     YES (ver 56.60.100)
--       format:                    YES (ver 56.40.101)
--       util:                      YES (ver 54.31.100)
--       swscale:                   YES (ver 3.1.101)
--       resample:                  YES (ver 2.1.0)
--       gentoo-style:              YES
--     GStreamer:
--       base:                      YES (ver 1.10.4)
--       video:                     YES (ver 1.10.4)
--       app:                       YES (ver 1.10.4)
--       riff:                      YES (ver 1.10.4)
--       pbutils:                   YES (ver 1.10.4)
--     OpenNI:                      NO
--     OpenNI PrimeSensor Modules:  NO
--     OpenNI2:                     NO
--     PvAPI:                       NO
--     GigEVisionSDK:               NO
--     UniCap:                      NO
--     UniCap ucil:                 NO
--     V4L/V4L2:                    Using libv4l1 (ver 0.9.5) / libv4l2 (ver 0.9
.5)
--     XIMEA:                       NO
--     Xine:                        NO
--     gPhoto2:                     YES
--
--   Parallel framework:            TBB (ver 4.1 interface 6103)
--
--   Other third-party libraries:
--     Use IPP:                     9.0.1 [9.0.1]
--          at:                     /root/opencv-3.1.0/3rdparty/ippicv/unpack/ip
picv_lnx
--     Use IPP Async:               NO
--     Use VA:                      NO
--     Use Intel VA-API/OpenCL:     NO
--     Use Eigen:                   YES (ver 3.3.4)
--     Use Cuda:                    NO
--     Use OpenCL:                  YES
--     Use custom HAL:              NO
--
--   OpenCL:
--     Version:                     dynamic
--     Include path:                /root/opencv-3.1.0/3rdparty/include/opencl/1
.2
--     Use AMDFFT:                  NO
--     Use AMDBLAS:                 NO
--
--   Python 2:
--     Interpreter:                 /usr/bin/python2.7 (ver 2.7.5)
--     Libraries:                   NO
--     numpy:                       /usr/lib64/python2.7/site-packages/numpy/cor
e/include (ver 1.7.1)
--     packages path:               lib/python2.7/site-packages
--
--   Python 3:
--     Interpreter:                 /usr/bin/python3 (ver 3.4.9)
--     Libraries:                   /usr/lib64/libpython3.4m.so (ver 3.4.9)
--     numpy:                       /usr/lib64/python3.4/site-packages/numpy/cor
e/include (ver 1.10.4)
--     packages path:               /usr/lib/python3.4/site-packages
--
--   Python (for build):            /usr/bin/python2.7
--
--   Java:
--     ant:                         NO
--     JNI:                         NO
--     Java wrappers:               NO
--     Java tests:                  NO
--
--   Matlab:                        Matlab not found or implicitly disabled
--
--   Documentation:
--     Doxygen:                     NO
--     PlantUML:                    NO
--
--   Tests and samples:
--     Tests:                       YES
--     Performance tests:           YES
--     C/C++ Examples:              YES
--
--   Install path:                  /usr/local
--
--   cvconfig.h is in:              /root/opencv-3.1.0/build
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /root/opencv-3.1.0/build

Step 10:

make -j4 # runs 4 jobs in parallel

This step takes a long time to run. Be patient.

If you get errors, you can re-use this command to continue.

Output of successful job:

...
[ 98%] Built target tutorial_objectDetection2
[ 98%] Built target tutorial_objectDetection
Scanning dependencies of target tutorial_video-write
Scanning dependencies of target tutorial_video-input-psnr-ssim
[ 98%] [100%] Building CXX object samples/cpp/CMakeFiles/tutorial_video-input-ps
nr-ssim.dir/tutorial_code/HighGUI/video-input-psnr-ssim/video-input-psnr-ssim.cp
p.o
Building CXX object samples/cpp/CMakeFiles/tutorial_video-write.dir/tutorial_cod
e/HighGUI/video-write/video-write.cpp.o
Linking CXX executable ../../bin/cpp-tutorial-pointPolygonTest_demo
[100%] Built target tutorial_pointPolygonTest_demo
Linking CXX executable ../../bin/cpp-tutorial-video-write
Linking CXX executable ../../bin/cpp-tutorial-planar_tracking
[100%] Built target tutorial_video-write
[100%] Built target tutorial_planar_tracking
Linking CXX executable ../../bin/cpp-tutorial-video-input-psnr-ssim
[100%] Built target tutorial_video-input-psnr-ssim

Step 11:

make install

Output:

...
-- Installing: /usr/local/include/opencv2/xphoto/white_balance.hpp
-- Installing: /usr/local/lib/libopencv_bgsegm.so.3.1.0
-- Installing: /usr/local/lib/libopencv_bgsegm.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_bgsegm.so.3.1.0" to "/usr/local
/lib"
-- Installing: /usr/local/lib/libopencv_bgsegm.so
-- Installing: /usr/local/include/opencv2/bgsegm.hpp
-- Installing: /usr/local/lib/libopencv_bioinspired.so.3.1.0
-- Installing: /usr/local/lib/libopencv_bioinspired.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_bioinspired.so.3.1.0" to "/usr/
local/lib"
-- Installing: /usr/local/lib/libopencv_bioinspired.so
-- Installing: /usr/local/include/opencv2/bioinspired.hpp
-- Installing: /usr/local/include/opencv2/bioinspired/retinafasttonemapping.hpp
-- Installing: /usr/local/include/opencv2/bioinspired/bioinspired.hpp
-- Installing: /usr/local/include/opencv2/bioinspired/retina.hpp
-- Installing: /usr/local/include/opencv2/bioinspired/transientareassegmentation
module.hpp
-- Installing: /usr/local/lib/libopencv_dpm.so.3.1.0
-- Installing: /usr/local/lib/libopencv_dpm.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_dpm.so.3.1.0" to "/usr/local/li
b"
-- Installing: /usr/local/lib/libopencv_dpm.so
-- Installing: /usr/local/include/opencv2/dpm.hpp
-- Installing: /usr/local/lib/libopencv_face.so.3.1.0
-- Installing: /usr/local/lib/libopencv_face.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_face.so.3.1.0" to "/usr/local/l
ib"
-- Installing: /usr/local/lib/libopencv_face.so
-- Installing: /usr/local/include/opencv2/face.hpp
-- Installing: /usr/local/include/opencv2/face/facerec.hpp
-- Installing: /usr/local/include/opencv2/face/predict_collector.hpp
-- Installing: /usr/local/lib/libopencv_features2d.so.3.1.0
-- Installing: /usr/local/lib/libopencv_features2d.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_features2d.so.3.1.0" to "/usr/l
ocal/lib"
-- Installing: /usr/local/lib/libopencv_features2d.so
-- Installing: /usr/local/include/opencv2/features2d.hpp
-- Installing: /usr/local/include/opencv2/features2d/features2d.hpp
-- Installing: /usr/local/lib/libopencv_line_descriptor.so.3.1.0
-- Installing: /usr/local/lib/libopencv_line_descriptor.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_line_descriptor.so.3.1.0" to "/
usr/local/lib"
-- Installing: /usr/local/lib/libopencv_line_descriptor.so
-- Installing: /usr/local/include/opencv2/line_descriptor.hpp
-- Installing: /usr/local/include/opencv2/line_descriptor/descriptor.hpp
-- Installing: /usr/local/lib/libopencv_saliency.so.3.1.0
-- Installing: /usr/local/lib/libopencv_saliency.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_saliency.so.3.1.0" to "/usr/loc
al/lib"
-- Installing: /usr/local/lib/libopencv_saliency.so
-- Installing: /usr/local/include/opencv2/saliency.hpp
-- Installing: /usr/local/include/opencv2/saliency/saliencySpecializedClasses.hp
p
-- Installing: /usr/local/include/opencv2/saliency/saliencyBaseClasses.hpp
-- Installing: /usr/local/lib/libopencv_text.so.3.1.0
-- Installing: /usr/local/lib/libopencv_text.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_text.so.3.1.0" to "/usr/local/l
ib"
-- Installing: /usr/local/lib/libopencv_text.so
-- Installing: /usr/local/include/opencv2/text.hpp
-- Installing: /usr/local/include/opencv2/text/erfilter.hpp
-- Installing: /usr/local/include/opencv2/text/ocr.hpp
-- Installing: /usr/local/lib/libopencv_calib3d.so.3.1.0
-- Installing: /usr/local/lib/libopencv_calib3d.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_calib3d.so.3.1.0" to "/usr/loca
l/lib"
-- Installing: /usr/local/lib/libopencv_calib3d.so
-- Installing: /usr/local/include/opencv2/calib3d.hpp
-- Installing: /usr/local/include/opencv2/calib3d/calib3d.hpp
-- Installing: /usr/local/include/opencv2/calib3d/calib3d_c.h
-- Installing: /usr/local/lib/libopencv_ccalib.so.3.1.0
-- Installing: /usr/local/lib/libopencv_ccalib.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_ccalib.so.3.1.0" to "/usr/local
/lib"
-- Installing: /usr/local/lib/libopencv_ccalib.so
-- Installing: /usr/local/include/opencv2/ccalib.hpp
-- Installing: /usr/local/include/opencv2/ccalib/omnidir.hpp
-- Installing: /usr/local/include/opencv2/ccalib/multicalib.hpp
-- Installing: /usr/local/include/opencv2/ccalib/randpattern.hpp
-- Installing: /usr/local/lib/libopencv_datasets.so.3.1.0
-- Installing: /usr/local/lib/libopencv_datasets.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_datasets.so.3.1.0" to "/usr/loc
al/lib"
-- Installing: /usr/local/lib/libopencv_datasets.so
-- Installing: /usr/local/include/opencv2/datasets/or_sun.hpp
-- Installing: /usr/local/include/opencv2/datasets/ir_robot.hpp
-- Installing: /usr/local/include/opencv2/datasets/gr_chalearn.hpp
-- Installing: /usr/local/include/opencv2/datasets/tr_chars.hpp
-- Installing: /usr/local/include/opencv2/datasets/track_vot.hpp
-- Installing: /usr/local/include/opencv2/datasets/tr_icdar.hpp
-- Installing: /usr/local/include/opencv2/datasets/ar_sports.hpp
-- Installing: /usr/local/include/opencv2/datasets/slam_kitti.hpp
-- Installing: /usr/local/include/opencv2/datasets/hpe_parse.hpp
-- Installing: /usr/local/include/opencv2/datasets/or_imagenet.hpp
-- Installing: /usr/local/include/opencv2/datasets/ir_affine.hpp
-- Installing: /usr/local/include/opencv2/datasets/hpe_humaneva.hpp
-- Installing: /usr/local/include/opencv2/datasets/is_weizmann.hpp
-- Installing: /usr/local/include/opencv2/datasets/or_pascal.hpp
-- Installing: /usr/local/include/opencv2/datasets/tr_svt.hpp
-- Installing: /usr/local/include/opencv2/datasets/or_mnist.hpp
-- Installing: /usr/local/include/opencv2/datasets/fr_lfw.hpp
-- Installing: /usr/local/include/opencv2/datasets/pd_inria.hpp
-- Installing: /usr/local/include/opencv2/datasets/msm_middlebury.hpp
-- Installing: /usr/local/include/opencv2/datasets/is_bsds.hpp
-- Installing: /usr/local/include/opencv2/datasets/gr_skig.hpp
-- Installing: /usr/local/include/opencv2/datasets/util.hpp
-- Installing: /usr/local/include/opencv2/datasets/ar_hmdb.hpp
-- Installing: /usr/local/include/opencv2/datasets/msm_epfl.hpp
-- Installing: /usr/local/include/opencv2/datasets/fr_adience.hpp
-- Installing: /usr/local/include/opencv2/datasets/slam_tumindoor.hpp
-- Installing: /usr/local/include/opencv2/datasets/dataset.hpp
-- Installing: /usr/local/include/opencv2/datasets/pd_caltech.hpp
-- Installing: /usr/local/lib/libopencv_rgbd.so.3.1.0
-- Installing: /usr/local/lib/libopencv_rgbd.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_rgbd.so.3.1.0" to "/usr/local/l
ib"
-- Installing: /usr/local/lib/libopencv_rgbd.so
-- Installing: /usr/local/include/opencv2/rgbd.hpp
-- Installing: /usr/local/include/opencv2/rgbd/linemod.hpp
-- Installing: /usr/local/lib/libopencv_stereo.so.3.1.0
-- Installing: /usr/local/lib/libopencv_stereo.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_stereo.so.3.1.0" to "/usr/local
/lib"
-- Installing: /usr/local/lib/libopencv_stereo.so
-- Installing: /usr/local/include/opencv2/stereo.hpp
-- Installing: /usr/local/include/opencv2/stereo/descriptor.hpp
-- Installing: /usr/local/include/opencv2/stereo/matching.hpp
-- Installing: /usr/local/include/opencv2/stereo/stereo.hpp
-- Installing: /usr/local/lib/libopencv_structured_light.so.3.1.0
-- Installing: /usr/local/lib/libopencv_structured_light.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_structured_light.so.3.1.0" to "
/usr/local/lib"
-- Installing: /usr/local/lib/libopencv_structured_light.so
-- Installing: /usr/local/include/opencv2/structured_light.hpp
-- Installing: /usr/local/include/opencv2/structured_light/graycodepattern.hpp
-- Installing: /usr/local/include/opencv2/structured_light/structured_light.hpp
-- Installing: /usr/local/lib/libopencv_tracking.so.3.1.0
-- Installing: /usr/local/lib/libopencv_tracking.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_tracking.so.3.1.0" to "/usr/loc
al/lib"
-- Installing: /usr/local/lib/libopencv_tracking.so
-- Installing: /usr/local/include/opencv2/tracking.hpp
-- Installing: /usr/local/include/opencv2/tracking/feature.hpp
-- Installing: /usr/local/include/opencv2/tracking/tracking.hpp
-- Installing: /usr/local/include/opencv2/tracking/tldDataset.hpp
-- Installing: /usr/local/include/opencv2/tracking/onlineBoosting.hpp
-- Installing: /usr/local/include/opencv2/tracking/kalman_filters.hpp
-- Installing: /usr/local/include/opencv2/tracking/onlineMIL.hpp
-- Installing: /usr/local/include/opencv2/tracking/tracker.hpp
-- Installing: /usr/local/lib/libopencv_videostab.so.3.1.0
-- Installing: /usr/local/lib/libopencv_videostab.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_videostab.so.3.1.0" to "/usr/lo
cal/lib"
-- Installing: /usr/local/lib/libopencv_videostab.so
-- Installing: /usr/local/include/opencv2/videostab.hpp
-- Installing: /usr/local/include/opencv2/videostab/motion_stabilizing.hpp
-- Installing: /usr/local/include/opencv2/videostab/deblurring.hpp
-- Installing: /usr/local/include/opencv2/videostab/log.hpp
-- Installing: /usr/local/include/opencv2/videostab/motion_core.hpp
-- Installing: /usr/local/include/opencv2/videostab/inpainting.hpp
-- Installing: /usr/local/include/opencv2/videostab/optical_flow.hpp
-- Installing: /usr/local/include/opencv2/videostab/fast_marching_inl.hpp
-- Installing: /usr/local/include/opencv2/videostab/wobble_suppression.hpp
-- Installing: /usr/local/include/opencv2/videostab/outlier_rejection.hpp
-- Installing: /usr/local/include/opencv2/videostab/stabilizer.hpp
-- Installing: /usr/local/include/opencv2/videostab/frame_source.hpp
-- Installing: /usr/local/include/opencv2/videostab/ring_buffer.hpp
-- Installing: /usr/local/include/opencv2/videostab/fast_marching.hpp
-- Installing: /usr/local/include/opencv2/videostab/global_motion.hpp
-- Installing: /usr/local/lib/libopencv_xfeatures2d.so.3.1.0
-- Installing: /usr/local/lib/libopencv_xfeatures2d.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_xfeatures2d.so.3.1.0" to "/usr/
local/lib"
-- Installing: /usr/local/lib/libopencv_xfeatures2d.so
-- Installing: /usr/local/include/opencv2/xfeatures2d.hpp
-- Installing: /usr/local/include/opencv2/xfeatures2d/cuda.hpp
-- Installing: /usr/local/include/opencv2/xfeatures2d/nonfree.hpp
-- Installing: /usr/local/lib/libopencv_ximgproc.so.3.1.0
-- Installing: /usr/local/lib/libopencv_ximgproc.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_ximgproc.so.3.1.0" to "/usr/loc
al/lib"
-- Installing: /usr/local/lib/libopencv_ximgproc.so
-- Installing: /usr/local/include/opencv2/ximgproc.hpp
-- Installing: /usr/local/include/opencv2/ximgproc/estimated_covariance.hpp
-- Installing: /usr/local/include/opencv2/ximgproc/disparity_filter.hpp
-- Installing: /usr/local/include/opencv2/ximgproc/slic.hpp
-- Installing: /usr/local/include/opencv2/ximgproc/lsc.hpp
-- Installing: /usr/local/include/opencv2/ximgproc/sparse_match_interpolator.hpp
-- Installing: /usr/local/include/opencv2/ximgproc/edge_filter.hpp
-- Installing: /usr/local/include/opencv2/ximgproc/seeds.hpp
-- Installing: /usr/local/include/opencv2/ximgproc/structured_edge_detection.hpp
-- Installing: /usr/local/include/opencv2/ximgproc/segmentation.hpp
-- Installing: /usr/local/include/opencv2/ximgproc/fast_hough_transform.hpp
-- Installing: /usr/local/lib/libopencv_aruco.so.3.1.0
-- Installing: /usr/local/lib/libopencv_aruco.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_aruco.so.3.1.0" to "/usr/local/
lib"
-- Installing: /usr/local/lib/libopencv_aruco.so
-- Installing: /usr/local/include/opencv2/aruco.hpp
-- Installing: /usr/local/include/opencv2/aruco/charuco.hpp
-- Installing: /usr/local/include/opencv2/aruco/dictionary.hpp
-- Installing: /usr/local/lib/libopencv_optflow.so.3.1.0
-- Installing: /usr/local/lib/libopencv_optflow.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_optflow.so.3.1.0" to "/usr/loca
l/lib"
-- Installing: /usr/local/lib/libopencv_optflow.so
-- Installing: /usr/local/include/opencv2/optflow.hpp
-- Installing: /usr/local/include/opencv2/optflow/motempl.hpp
-- Installing: /usr/local/lib/libopencv_stitching.so.3.1.0
-- Installing: /usr/local/lib/libopencv_stitching.so.3.1
-- Set runtime path of "/usr/local/lib/libopencv_stitching.so.3.1.0" to "/usr/lo
cal/lib"
-- Installing: /usr/local/lib/libopencv_stitching.so
-- Installing: /usr/local/include/opencv2/stitching.hpp
-- Installing: /usr/local/include/opencv2/stitching/warpers.hpp
-- Installing: /usr/local/include/opencv2/stitching/detail/blenders.hpp
-- Installing: /usr/local/include/opencv2/stitching/detail/seam_finders.hpp
-- Installing: /usr/local/include/opencv2/stitching/detail/warpers_inl.hpp
-- Installing: /usr/local/include/opencv2/stitching/detail/motion_estimators.hpp
-- Installing: /usr/local/include/opencv2/stitching/detail/matchers.hpp
-- Installing: /usr/local/include/opencv2/stitching/detail/camera.hpp
-- Installing: /usr/local/include/opencv2/stitching/detail/autocalib.hpp
-- Installing: /usr/local/include/opencv2/stitching/detail/warpers.hpp
-- Installing: /usr/local/include/opencv2/stitching/detail/exposure_compensate.h
pp
-- Installing: /usr/local/include/opencv2/stitching/detail/util_inl.hpp
-- Installing: /usr/local/include/opencv2/stitching/detail/timelapsers.hpp
-- Installing: /usr/local/include/opencv2/stitching/detail/util.hpp
-- Installing: /usr/lib/python3.4/site-packages/cv2.cpython-34m.so
-- Set runtime path of "/usr/lib/python3.4/site-packages/cv2.cpython-34m.so" to
"/usr/local/lib"
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_lowerbody.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_eye.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_fullbody.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt_
tree.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_defa
ult.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_frontalcatface_e
xtended.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_frontalcatface.x
ml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_smile.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_upperbody.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_lefteye_2splits.
xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt2
.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.
xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_eye_tree_eyeglas
ses.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_profileface.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_righteye_2splits
.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_licence_plate_ru
s_16stages.xml
-- Installing: /usr/local/share/OpenCV/haarcascades/haarcascade_russian_plate_nu
mber.xml
-- Installing: /usr/local/share/OpenCV/lbpcascades/lbpcascade_frontalcatface.xml
-- Installing: /usr/local/share/OpenCV/lbpcascades/lbpcascade_silverware.xml
-- Installing: /usr/local/share/OpenCV/lbpcascades/lbpcascade_frontalface.xml
-- Installing: /usr/local/share/OpenCV/lbpcascades/lbpcascade_profileface.xml
-- Installing: /usr/local/bin/opencv_traincascade
-- Set runtime path of "/usr/local/bin/opencv_traincascade" to "/usr/local/lib"
-- Installing: /usr/local/bin/opencv_createsamples
-- Set runtime path of "/usr/local/bin/opencv_createsamples" to "/usr/local/lib"
-- Installing: /usr/local/bin/opencv_annotation
-- Set runtime path of "/usr/local/bin/opencv_annotation" to "/usr/local/lib"
-- Installing: /usr/local/share/OpenCV/samples/python/hist.py
-- Installing: /usr/local/share/OpenCV/samples/python/lk_track.py
-- Installing: /usr/local/share/OpenCV/samples/python/opencv_version.py
-- Installing: /usr/local/share/OpenCV/samples/python/color_histogram.py
-- Installing: /usr/local/share/OpenCV/samples/python/floodfill.py
-- Installing: /usr/local/share/OpenCV/samples/python/digits_adjust.py
-- Installing: /usr/local/share/OpenCV/samples/python/stereo_match.py
-- Installing: /usr/local/share/OpenCV/samples/python/digits_video.py
-- Installing: /usr/local/share/OpenCV/samples/python/inpaint.py
-- Installing: /usr/local/share/OpenCV/samples/python/kmeans.py
-- Installing: /usr/local/share/OpenCV/samples/python/video.py
-- Installing: /usr/local/share/OpenCV/samples/python/grabcut.py
-- Installing: /usr/local/share/OpenCV/samples/python/texture_flow.py
-- Installing: /usr/local/share/OpenCV/samples/python/distrans.py
-- Installing: /usr/local/share/OpenCV/samples/python/lappyr.py
-- Installing: /usr/local/share/OpenCV/samples/python/asift.py
-- Installing: /usr/local/share/OpenCV/samples/python/lk_homography.py
-- Installing: /usr/local/share/OpenCV/samples/python/logpolar.py
-- Installing: /usr/local/share/OpenCV/samples/python/watershed.py
-- Installing: /usr/local/share/OpenCV/samples/python/camshift.py
-- Installing: /usr/local/share/OpenCV/samples/python/common.py
-- Installing: /usr/local/share/OpenCV/samples/python/houghlines.py
-- Installing: /usr/local/share/OpenCV/samples/python/demo.py
-- Installing: /usr/local/share/OpenCV/samples/python/browse.py
-- Installing: /usr/local/share/OpenCV/samples/python/calibrate.py
-- Installing: /usr/local/share/OpenCV/samples/python/find_obj.py
-- Installing: /usr/local/share/OpenCV/samples/python/feature_homography.py
-- Installing: /usr/local/share/OpenCV/samples/python/mouse_and_match.py
-- Installing: /usr/local/share/OpenCV/samples/python/fitline.py
-- Installing: /usr/local/share/OpenCV/samples/python/mosse.py
-- Installing: /usr/local/share/OpenCV/samples/python/edge.py
-- Installing: /usr/local/share/OpenCV/samples/python/coherence.py
-- Installing: /usr/local/share/OpenCV/samples/python/dft.py
-- Installing: /usr/local/share/OpenCV/samples/python/turing.py
-- Installing: /usr/local/share/OpenCV/samples/python/mser.py
-- Installing: /usr/local/share/OpenCV/samples/python/morphology.py
-- Installing: /usr/local/share/OpenCV/samples/python/houghcircles.py
-- Installing: /usr/local/share/OpenCV/samples/python/gabor_threads.py
-- Installing: /usr/local/share/OpenCV/samples/python/peopledetect.py
-- Installing: /usr/local/share/OpenCV/samples/python/deconvolution.py
-- Installing: /usr/local/share/OpenCV/samples/python/_doc.py
-- Installing: /usr/local/share/OpenCV/samples/python/letter_recog.py
-- Installing: /usr/local/share/OpenCV/samples/python/_coverage.py
-- Installing: /usr/local/share/OpenCV/samples/python/kalman.py
-- Installing: /usr/local/share/OpenCV/samples/python/opt_flow.py
-- Installing: /usr/local/share/OpenCV/samples/python/plane_ar.py
-- Installing: /usr/local/share/OpenCV/samples/python/plane_tracker.py
-- Installing: /usr/local/share/OpenCV/samples/python/video_threaded.py
-- Installing: /usr/local/share/OpenCV/samples/python/squares.py
-- Installing: /usr/local/share/OpenCV/samples/python/gaussian_mix.py
-- Installing: /usr/local/share/OpenCV/samples/python/contours.py
-- Installing: /usr/local/share/OpenCV/samples/python/video_v4l2.py
-- Installing: /usr/local/share/OpenCV/samples/python/facedetect.py
-- Installing: /usr/local/share/OpenCV/samples/python/digits.py

1 Comment

Leave a Reply