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.0 platform.
Download (HTTP): https://github.com/opencv/opencv/archive/4.4.0/opencv-4.4.0.tar.gz
Download MD5 sum: 04e485da95fb189ce6f293abc71bc54e
Download size: 85 MB
Estimated disk space required: 676 MB
Estimated build time: 3.1 SBU (using parallelism=4)
Optional additional modules: https://github.com/opencv/opencv_contrib/archive/4.4.0/opencv_contrib-4.4.0.tar.gz
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.
FFmpeg-4.3.1, gst-plugins-base-1.16.2, GTK+-3.24.22, JasPer-2.0.14, libjpeg-turbo-2.0.5, libpng-1.6.37, LibTIFF-4.1.0, libwebp-1.1.0, v4l-utils-1.20.0, and xine-lib-1.2.10
apache-ant-1.10.8, Doxygen-1.8.19, Java-14.0.1, 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: http://wiki.linuxfromscratch.org/blfs/wiki/opencv
If needed, unpack the additional modules package:
tar xf ../opencv_contrib-4.4.0.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 \ -DENABLE_PRECOMPILED_HEADERS=OFF \ -DCMAKE_SKIP_RPATH=ON \ -DBUILD_WITH_DEBUG_INFO=OFF \ -Wno-dev .. && make
The package does not come with an operable test suite.
Now, as the root
user:
make install
-DWITH_XINE=ON
: This option
instructs the make procedure to use xine-lib-1.2.10.
-DENABLE_PRECOMPILED_HEADERS=OFF
:
This option is needed for compatibiiity with gcc-6.1 and later.
-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-4.4.0/modules
:
instructs the build system to build additional modules.
Last updated on 2020-08-22 20:38:33 -0700