Introduction to opencv

The opencv package contains graphics libraries mainly aimed at real-time computer vision.

This package is known to build and work properly using an LFS-10.1 platform.

Package Information

Additional Downloads



One additional file that starts with "ippicv" (integrated performance primitives) will be automatically downloaded during the cmake portion of the build procedure. This download is specific to the system architecture.

opencv Dependencies


CMake-3.19.5 and UnZip-6.0



apache-ant-1.10.9, Doxygen-1.9.1, Java-15.0.2, Python-2.7.18, Cuda, Eigen, OpenEXR, GCD, GDAL, GigEVisionSDK, JACK, libdc1394, libgphoto2, NumPy, OpenNI, PlanetUML, PvAPI, Threading Building Blocks (TBB), UniCap, VTK - The Visualization Toolkit, and XIMEA

User Notes:

Installation of opencv

If needed, unpack the additional modules package:

tar xf ../opencv_contrib-4.5.1.tar.gz

Install opencv by running the following commands:

mkdir build &&
cd    build &&

cmake -DCMAKE_INSTALL_PREFIX=/usr      \
      -DCMAKE_BUILD_TYPE=Release       \
      -DENABLE_CXX11=ON                \
      -DBUILD_PERF_TESTS=OFF           \
      -DWITH_XINE=ON                   \
      -DBUILD_TESTS=OFF                \
      -DCMAKE_SKIP_RPATH=ON            \
      -Wno-dev  ..                     &&

The package does not come with an operable test suite.

Now, as the root user:

make install

Command Explanations

-DWITH_XINE=ON: This option instructs the make procedure to use xine-lib-1.2.11.

-DENABLE_PRECOMPILED_HEADERS=OFF: This option is needed for compatibiiity with gcc-6.1 and later.

-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-4.5.1/modules: instructs the build system to build additional modules.


Installed Programs: opencv_annotation, opencv_interactive-calibration, opencv_version, opencv_visualisation, and
Installed Libraries:,,,,,,,,,,,,,, and
Installed Directories: /usr/include/opencv4 /usr/lib/cmake/opencv4, /usr/share/opencv4, and /usr/share/java/opencv4

Last updated on 2021-02-23 18:13:38 -0800