source: general/graphlib/opencv.xml@ 0134954

10.0 10.1 11.0 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind ken/refactor-virt lazarus nosym perl-modules qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 0134954 was 0134954, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Initial 7.10 tags; only 765 to go

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

  • Property mode set to 100644
File size: 8.3 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 cvdir "/projects/opencvlibrary/files">
8
9 <!ENTITY opencv-download-http "&sourceforge-repo2;&cvdir;/opencv-unix/&opencv-version;/opencv-&opencv-version;.zip">
10 <!ENTITY opencv-download-ftp " ">
11 <!ENTITY opencv-md5sum "6082ee2124d4066581a7386972bfd52a">
12 <!ENTITY opencv-size "76 MB">
13 <!ENTITY opencv-buildsize "1.8 GB">
14 <!ENTITY opencv-time "4.9 SBU">
15
16 <!ENTITY ippicv-version "20151201">
17 <!ENTITY ippicv_binaries_commit "81a676001ca8075ada498583e4166079e5744668">
18
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 &lfs79_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 <para>Optional file: <ulink
81 url="https://raw.githubusercontent.com/Itseez/opencv_3rdparty/&ippicv_binaries_commit;/ippicv/ippicv_linux_&ippicv-version;.tgz">
82 https://raw.githubusercontent.com/Itseez/opencv_3rdparty/&ippicv_binaries_commit;/ippicv/ippicv_linux_&ippicv-version;.tgz</ulink>
83 </para>
84
85 <bridgehead renderas="sect3">opencv Dependencies</bridgehead>
86
87 <bridgehead renderas="sect4">Required</bridgehead>
88 <para role="required">
89 <xref linkend="cmake"/> and
90 <xref linkend="unzip"/>
91 </para>
92
93 <bridgehead renderas="sect4">Recommended</bridgehead>
94 <para role="recommended">
95 <xref linkend="ffmpeg"/>,
96 <xref linkend="gst10-plugins-base"/>,
97 <xref linkend="gtk3"/>,
98 <xref linkend="jasper"/>,
99 <xref linkend="libjpeg"/>,
100 <xref linkend="libpng"/>,
101 <xref linkend="libtiff"/>,
102 <xref linkend="libwebp"/>,
103 <xref linkend="python2"/>,
104 <xref linkend="v4l-utils"/>, and
105 <xref linkend="xine-lib"/>
106 </para>
107
108 <bridgehead renderas="sect4">Optional</bridgehead>
109 <para role="optional">
110 <xref linkend="apache-ant"/>,
111 <xref linkend="doxygen"/>,
112 <xref linkend="java"/>,
113 <xref linkend="python3"/>,
114 <ulink url="https://developer.nvidia.com/cuda-zone">Cuda</ulink>,
115 <ulink url="http://eigen.tuxfamily.org/">Eigen</ulink>,
116 <ulink url="http://www.openexr.com/">OpenEXR</ulink>,
117 <ulink url="http://gcd.joewheaton.org/">GCD</ulink>,
118 <ulink url="http://www.gdal.org/">GDAL</ulink>,
119 <ulink url="http://www.jai.com/en/support/gigevisionsdkcontroltoolv130">GigEVisionSDK</ulink>,
120 <ulink url="http://jackaudio.org/">JACK</ulink>,
121 <ulink url="http://sourceforge.net/projects/libdc1394/">libdc1394</ulink>,
122 <ulink url="http://www.gphoto.org/">libgphoto2</ulink>,
123 <ulink url="http://www.numpy.org/">NumPy</ulink>,
124 <ulink url="http://structure.io/openni">OpenNI</ulink>,
125 <ulink url="http://plantuml.sourceforge.net/">PlanetUML</ulink>,
126 <ulink url="http://www.1stvision.com/AVT-gige-camera-software-downloads.html">PvAPI</ulink>,
127 <ulink url="https://www.threadingbuildingblocks.org/">Threading Building Blocks (TBB)</ulink>,
128 <ulink url="http://unicap-imaging.org/">UniCap</ulink>,
129 <ulink url="http://www.vtk.org/">VTK - The Visualization Toolkit</ulink>, and
130 <ulink url="http://www.ximea.com/">XIMEA</ulink>
131 </para>
132
133 <para condition="html" role="usernotes">
134 User Notes: <ulink url="&blfs-wiki;/opencv"/>
135 </para>
136 </sect2>
137
138 <sect2 role="installation">
139 <title>Installation of opencv</title>
140
141 <para>
142 If the optional Integrated Performance Primitives (IPP) package has been
143 downloaded, put it in place so the cmake script does not try to download
144 it again:
145 </para>
146
147<screen><userinput>ipp_file=../ippicv_linux_&ippicv-version;.tgz &amp;&amp;
148ipp_hash=$(md5sum $ipp_file | cut -d" " -f1) &amp;&amp;
149ipp_dir=3rdparty/ippicv/downloads/linux-$ipp_hash &amp;&amp;
150
151mkdir -p $ipp_dir &amp;&amp;
152cp $ipp_file $ipp_dir</userinput></screen>
153
154 <para>
155 Install <application>opencv</application> by running the following
156 commands:
157 </para>
158
159<screen><userinput>mkdir build &amp;&amp;
160cd build &amp;&amp;
161
162cmake -DCMAKE_INSTALL_PREFIX=/usr \
163 -DWITH_XINE=ON \
164 -DBUILD_TESTS=OFF \
165 -DENABLE_PRECOMPILED_HEADERS=OFF \
166 -Wno-dev .. &amp;&amp;
167make</userinput></screen>
168
169 <para>
170 The package does not come with an operable test suite.
171 </para>
172
173 <para>
174 Now, as the <systemitem class="username">root</systemitem> user:
175 </para>
176
177<screen role="root"><userinput>make install &amp;&amp;
178mv -v /usr/share/OpenCV/3rdparty/lib/libippicv.a /usr/lib &amp;&amp;
179rm -rv /usr/share/OpenCV/3rdparty
180</userinput></screen>
181
182 </sect2>
183
184 <sect2 role="commands">
185 <title>Command Explanations</title>
186
187 <para><parameter>-DWITH_XINE=ON</parameter>: This option instructs the make
188 procedure to use <xref linkend="xine-lib"/>.</para>
189
190 <para><parameter>-DENABLE_PRECOMPILED_HEADERS=OFF</parameter>: This option
191 is needed for compatibiiity with gcc-6.1 and later.</para>
192
193 <para><parameter>-DWITH_IPP=ON</parameter>: This option instructs the make
194 procedure to use the downloaded IPP package.</para>
195
196 <para><command>mv -v /usr/share/OpenCV/3rdparty/lib/libippicv.a
197 /usr/lib</command>: This command move a library to a location where it
198 can be found.</para>
199
200 </sect2>
201
202 <sect2 role="content">
203 <title>Contents</title>
204
205 <segmentedlist>
206 <segtitle>Installed Programs</segtitle>
207 <segtitle>Installed Libraries</segtitle>
208 <segtitle>Installed Directories</segtitle>
209
210 <seglistitem>
211 <seg>
212 opencv_annotation,
213 opencv_createsamples, and
214 opencv_traincascade
215 </seg>
216 <seg>
217 libopencv_calib3d.so,
218 libopencv_core.so,
219 libopencv_features2d.so,
220 libopencv_flann.so,
221 libopencv_highgui.so,
222 libopencv_imgcodecs.so,
223 libopencv_imgproc.so,
224 libopencv_ml.so,
225 libopencv_objdetect.so,
226 libopencv_photo.so,
227 libopencv_shape.so,
228 libopencv_stitching.so,
229 libopencv_superres.so,
230 libopencv_ts.a,
231 libopencv_video.so,
232 libopencv_videoio.so, and
233 libopencv_videostab.so
234 </seg>
235 <seg>
236 /usr/include/opencv{,2} and
237 /usr/share/OpenCV
238 </seg>
239 </seglistitem>
240 </segmentedlist>
241<!--
242 <variablelist>
243 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
244 <?dbfo list-presentation="list"?>
245 <?dbhtml list-presentation="table"?>
246
247 <varlistentry id="opencv_annotation">
248 <term><command>opencv_annotation</command></term>
249 <listitem>
250 <para>
251 ???
252 </para>
253 <indexterm zone="opencv opencv_annotation">
254 <primary sortas="b-opencv">opencv_annotation</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 </variablelist>
260-->
261 </sect2>
262
263</sect1>
Note: See TracBrowser for help on using the repository browser.