source: general/graphlib/opencv.xml@ 5b5575b1

10.0 10.1 11.0 8.4 9.0 9.1 bdubbs/svn elogind ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 5b5575b1 was 5b5575b1, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

iBring Chapter 10 up to date

Update to pixman-0.36.0.
Update to opencv_contrib-3.4.4.
Update to libwebp-1.0.1.
Update to librsvg-2.44.9.
Update to libjpeg-turbo-2.0.1.
Update to harfbuzz-2.2.0.
Update to babl-0.1.60.
Update to LibRaw-0.19.1.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20764 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY opencv-download-http "https://sourceforge.net/projects/opencvlibrary/files/opencv-unix/&opencv-version;/opencv-&opencv-version;.zip">
8 <!ENTITY opencv-download-ftp " ">
9 <!ENTITY opencv-md5sum "d63393fad89ae38eeddbc51b15d807fa">
10 <!ENTITY opencv-size "87 MB">
11 <!ENTITY opencv-buildsize "570 MB">
12 <!ENTITY opencv-time "2.6 SBU (using parallelism=4)">
13
14
15 <!ENTITY ippicv-version "ippicv_2017u3_lnx_intel64_general_20180518">
16 <!ENTITY ippicv_binaries_commit "bdb7bb85f34a8cb0d35e40a81f58da431aa1557a">
17
18 <!ENTITY opencv-contrib-download "https://github.com/opencv/opencv_contrib/archive/&opencv-version;/opencv_contrib-&opencv-contrib-version;.tar.gz">
19]>
20
21<sect1 id="opencv" xreflabel="opencv-&opencv-version;">
22 <?dbhtml filename="opencv.html"?>
23
24 <sect1info>
25 <othername>$LastChangedBy$</othername>
26 <date>$Date$</date>
27 </sect1info>
28
29 <title>opencv-&opencv-version;</title>
30
31 <indexterm zone="opencv">
32 <primary sortas="a-opencv">opencv</primary>
33 </indexterm>
34
35 <sect2 role="package">
36 <title>Introduction to opencv</title>
37
38 <para>
39 The <application>opencv</application> package contains graphics libraries
40 mainly aimed at real-time computer vision.
41 </para>
42
43 &lfs83_checked;
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
48 <para>
49 Download (HTTP): <ulink url="&opencv-download-http;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download (FTP): <ulink url="&opencv-download-ftp;"/>
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download MD5 sum: &opencv-md5sum;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Download size: &opencv-size;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated disk space required: &opencv-buildsize;
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Estimated build time: &opencv-time;
75 </para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
80 <itemizedlist spacing="compact">
81 <listitem>
82 <para>
83 Optional file (x86_64 only; will be downloaded when running cmake if not present):
84 <ulink
85 url="https://raw.githubusercontent.com/opencv/opencv_3rdparty/&ippicv_binaries_commit;/ippicv/&ippicv-version;.tgz"/>
86 </para>
87 </listitem>
88 <listitem>
89 <para>
90 Optional additional modules: <ulink
91 url="&opencv-contrib-download;"/>
92 </para>
93 </listitem>
94 </itemizedlist>
95
96 <bridgehead renderas="sect3">opencv Dependencies</bridgehead>
97
98 <bridgehead renderas="sect4">Required</bridgehead>
99 <para role="required">
100 <xref linkend="cmake"/> and
101 <xref linkend="unzip"/>
102 </para>
103
104 <bridgehead renderas="sect4">Recommended</bridgehead>
105 <para role="recommended">
106 <xref linkend="ffmpeg"/>,
107 <xref linkend="gst10-plugins-base"/>,
108 <xref linkend="gtk3"/>,
109 <xref linkend="jasper"/>,
110 <xref linkend="libjpeg"/>,
111 <xref linkend="libpng"/>,
112 <xref linkend="libtiff"/>,
113 <xref linkend="libwebp"/>,
114 <xref linkend="v4l-utils"/>, and
115 <xref linkend="xine-lib"/>
116 </para>
117
118 <bridgehead renderas="sect4">Optional</bridgehead>
119 <para role="optional">
120 <xref linkend="apache-ant"/>,
121 <xref linkend="doxygen"/>,
122 <xref linkend="java"/>,
123 <xref linkend="python2"/>,
124 <ulink url="https://developer.nvidia.com/cuda-zone">Cuda</ulink>,
125 <ulink url="http://eigen.tuxfamily.org/">Eigen</ulink>,
126 <ulink url="http://www.openexr.com/">OpenEXR</ulink>,
127 <ulink url="http://gcd.joewheaton.org/">GCD</ulink>,
128 <ulink url="http://www.gdal.org/">GDAL</ulink>,
129 <ulink url="http://www.jai.com/en/support/gigevisionsdkcontroltoolv130">GigEVisionSDK</ulink>,
130 <ulink url="http://jackaudio.org/">JACK</ulink>,
131 <ulink url="http://sourceforge.net/projects/libdc1394/">libdc1394</ulink>,
132 <ulink url="http://www.gphoto.org/">libgphoto2</ulink>,
133 <ulink url="http://www.numpy.org/">NumPy</ulink>,
134 <ulink url="http://structure.io/openni">OpenNI</ulink>,
135 <ulink url="http://plantuml.sourceforge.net/">PlanetUML</ulink>,
136 <ulink url="http://www.1stvision.com/AVT-gige-camera-software-downloads.html">PvAPI</ulink>,
137 <ulink url="https://www.threadingbuildingblocks.org/">Threading Building Blocks (TBB)</ulink>,
138 <ulink url="http://unicap-imaging.org/">UniCap</ulink>,
139 <ulink url="http://www.vtk.org/">VTK - The Visualization Toolkit</ulink>, and
140 <ulink url="http://www.ximea.com/">XIMEA</ulink>
141 </para>
142
143 <para condition="html" role="usernotes">
144 User Notes: <ulink url="&blfs-wiki;/opencv"/>
145 </para>
146 </sect2>
147
148 <sect2 role="installation">
149 <title>Installation of opencv</title>
150
151 <para>
152 If the optional Integrated Performance Primitives (IPP) package has been
153 downloaded, put it in place so the cmake script does not try to download
154 it again:
155 </para>
156
157<screen><userinput>ipp_file=&ippicv-version;.tgz &amp;&amp;
158ipp_hash=$(md5sum ../$ipp_file | cut -d" " -f1) &amp;&amp;
159ipp_dir=.cache/ippicv &amp;&amp;
160
161mkdir -p $ipp_dir &amp;&amp;
162cp ../$ipp_file $ipp_dir/$ipp_hash-$ipp_file</userinput></screen>
163
164 <para>
165 If needed, unpack the additional modules package:
166 </para>
167
168<screen><userinput>tar xf ../opencv_contrib-&opencv-version;.tar.gz</userinput></screen>
169
170 <para>
171 Install <application>opencv</application> by running the following
172 commands:
173 </para>
174
175<screen><userinput>mkdir build &amp;&amp;
176cd build &amp;&amp;
177
178cmake -DCMAKE_INSTALL_PREFIX=/usr \
179 -DCMAKE_BUILD_TYPE=Release \
180 -DENABLE_CXX11=ON \
181 -DBUILD_PERF_TESTS=OFF \
182 -DWITH_XINE=ON \
183 -DBUILD_TESTS=OFF \
184 -DENABLE_PRECOMPILED_HEADERS=OFF \
185 -DCMAKE_SKIP_RPATH=ON \
186 -DBUILD_WITH_DEBUG_INFO=OFF \
187 -Wno-dev .. &amp;&amp;
188make</userinput></screen>
189
190 <para>
191 The package does not come with an operable test suite.
192 </para>
193
194 <para>
195 Now, as the <systemitem class="username">root</systemitem> user:
196 </para>
197
198<screen role="root"><userinput>make install &amp;&amp;
199
200case $(uname -m) in
201 x86_64) ARCH=intel64 ;;
202 *) ARCH=ia32 ;;
203esac &amp;&amp;
204
205cp -v 3rdparty/ippicv/ippicv_lnx/lib/$ARCH/libippicv.a /usr/lib &amp;&amp;
206unset ARCH</userinput></screen>
207
208 </sect2>
209
210 <sect2 role="commands">
211 <title>Command Explanations</title>
212
213 <para><parameter>-DWITH_XINE=ON</parameter>: This option instructs the make
214 procedure to use <xref linkend="xine-lib"/>.</para>
215
216 <para><parameter>-DENABLE_PRECOMPILED_HEADERS=OFF</parameter>: This option
217 is needed for compatibiiity with gcc-6.1 and later.</para>
218
219 <para><option>-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-&opencv-version;/modules</option>:
220 instructs the build system to build the additional modules.</para>
221
222 <para><command>cp -v 3rdparty/.../libippicv.a /usr/lib</command>:
223 This command installs a 3rdparty library.</para>
224
225 </sect2>
226
227 <sect2 role="content">
228 <title>Contents</title>
229
230 <segmentedlist>
231 <segtitle>Installed Programs</segtitle>
232 <segtitle>Installed Libraries</segtitle>
233 <segtitle>Installed Directories</segtitle>
234
235 <seglistitem>
236 <seg>
237 opencv_annotation,
238 opencv_createsamples, and
239 opencv_traincascade
240 </seg>
241 <seg>
242 libippicv.a,
243 libopencv_calib3d.so,
244 libopencv_core.so,
245 libopencv_features2d.so,
246 libopencv_flann.so,
247 libopencv_highgui.so,
248 libopencv_imgcodecs.so,
249 libopencv_imgproc.so,
250 libopencv_ml.so,
251 libopencv_objdetect.so,
252 libopencv_photo.so,
253 libopencv_shape.so,
254 libopencv_stitching.so,
255 libopencv_superres.so,
256 libopencv_ts.a,
257 libopencv_video.so,
258 libopencv_videoio.so, and
259 libopencv_videostab.so
260 </seg>
261 <seg>
262 /usr/include/opencv{,2} and
263 /usr/share/OpenCV
264 </seg>
265 </seglistitem>
266 </segmentedlist>
267<!--
268 <variablelist>
269 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
270 <?dbfo list-presentation="list"?>
271 <?dbhtml list-presentation="table"?>
272
273 <varlistentry id="opencv_annotation">
274 <term><command>opencv_annotation</command></term>
275 <listitem>
276 <para>
277 ???
278 </para>
279 <indexterm zone="opencv opencv_annotation">
280 <primary sortas="b-opencv">opencv_annotation</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 </variablelist>
286-->
287 </sect2>
288
289</sect1>
Note: See TracBrowser for help on using the repository browser.