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.8 platform.
Download (HTTP): http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/3.0.0/opencv-3.0.0.zip
Download MD5 sum: 09004c275d8092cbdf5b61675cecd399
Download size: 96 MB
Estimated disk space required: 528 MB
Estimated build time: 5.5 SBU
Optional file: http://sourceforge.net/projects/opencvlibrary/files/3rdparty/ippicv/ippicv_linux_20141027.tgz
CMake-3.3.1 and UnZip-6.0
FFmpeg-2.7.2, gst-plugins-base-1.4.5, GTK+-3.16.6, JasPer-1.900.1, libjpeg-turbo-1.4.1, libpng-1.6.18, LibTIFF-4.0.5, libwebp-0.4.3, Python-2.7.10, v4l-utils-1.6.3, and xine-lib-1.2.6
apache-ant-1.9.6, Doxygen-1.8.10, Java-1.8.0.60, Python-3.4.3, 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_20141027.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 \ -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 instucts
the make procedure to use xine-lib-1.2.6.
-DWITH_IPP=ON
: This option instucts the
make procedure to use the downloaded IPP package.
Last updated on 2015-09-20 15:38:20 -0700