February 2020
Intermediate to advanced
372 pages
9h 26m
English
To build OpenCV from source, we need a C++ build environment and the CMake build configuration system. Specifically, we need CMake 3. On Ubuntu 14.04, Linux Mint 17, and related systems, the cmake package is CMake 2, but a more up-to-date cmake3 package is also available. On these systems, run the following commands to ensure that the necessary versions of CMake and other build tools are installed:
$ sudo apt-get remove cmake$ sudo apt-get install build-essential cmake3 pkg-config
On the other hand, on more recent operating systems, the cmake package is CMake 3, and we can simply run the following command:
$ sudo apt-get install build-essential cmake pkg-config
As part of the build process for OpenCV, CMake will ...