source: general/graphlib/opencv.xml@ 57d4073

10.0 10.1 11.0 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 57d4073 was 57d4073, checked in by Bruce Dubbs <bdubbs@…>, 15 months ago

Update to opencv-4.4.0.
Update to mc-4.8.25.

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

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