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-7.10 platform.
Download (HTTP): http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/3.1.0/opencv-3.1.0.zip
Download MD5 sum: 6082ee2124d4066581a7386972bfd52a
Download size: 76 MB
Estimated disk space required: 1.8 GB
Estimated build time: 4.9 SBU
Optional file: https://raw.githubusercontent.com/Itseez/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_linux_20151201.tgz
CMake-3.6.1 and UnZip-6.0
FFmpeg-3.1.3, gst-plugins-base-1.8.3, GTK+-3.20.9, JasPer-1.900.1, libjpeg-turbo-1.5.0, libpng-1.6.24, LibTIFF-4.0.6, libwebp-0.5.1, Python-2.7.12, v4l-utils-1.10.1, and xine-lib-1.2.6
apache-ant-1.9.7, Doxygen-1.8.11, Java-1.8.0.102, Python-3.5.2, 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 the optional Integrated Performance Primitives (IPP) package has been downloaded, put it in place so the cmake script does not try to download it again:
ipp_file=../ippicv_linux_20151201.tgz && ipp_hash=$(md5sum $ipp_file | cut -d" " -f1) && ipp_dir=3rdparty/ippicv/downloads/linux-$ipp_hash && mkdir -p $ipp_dir && cp $ipp_file $ipp_dir
Install opencv by running the following commands:
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DWITH_XINE=ON \ -DBUILD_TESTS=OFF \ -DENABLE_PRECOMPILED_HEADERS=OFF \ -Wno-dev .. && make
The package does not come with an operable test suite.
Now, as the root
user:
make install && mv -v /usr/share/OpenCV/3rdparty/lib/libippicv.a /usr/lib && rm -rv /usr/share/OpenCV/3rdparty
-DWITH_XINE=ON
: This option
instructs the make procedure to use xine-lib-1.2.6.
-DENABLE_PRECOMPILED_HEADERS=OFF
:
This option is needed for compatibiiity with gcc-6.1 and later.
-DWITH_IPP=ON
: This option
instructs the make procedure to use the downloaded IPP package.
mv -v /usr/share/OpenCV/3rdparty/lib/libippicv.a /usr/lib: This command move a library to a location where it can be found.
Last updated on 2016-08-29 20:28:42 -0700