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-8.4 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 architectorue.

opencv Dependencies


CMake-3.13.4 and UnZip-6.0



apache-ant-1.10.5, Doxygen-1.8.15, Java-11.0.2, Python-2.7.15, 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.0.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.9.

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

-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-4.0.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 2019-02-17 18:28:59 -0600