source: general/graphlib/opencv.xml@ e6ce0692

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e6ce0692 was e6ce0692, checked in by Fernando de Oliveira <fernando@…>, 8 years ago
  • Update to opencv-3.1.0.
  • Fix build of frei0r-snapshot-27-01-15 with opencv-3.1.0.

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

  • Property mode set to 100644
File size: 7.8 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 &lfs78_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 -Wno-dev ..
166make</userinput></screen>
167
168 <para>
169 The package does not come with an operable test suite.
170 </para>
171
172 <para>
173 Now, as the <systemitem class="username">root</systemitem> user:
174 </para>
175
176<screen role="root"><userinput>make install</userinput></screen>
177
178 </sect2>
179
180 <sect2 role="commands">
181 <title>Command Explanations</title>
182
183 <para><parameter>-DWITH_XINE=ON</parameter>: This option instructs the make
184 procedure to use <xref linkend="xine-lib"/>.</para>
185
186 <para><parameter>-DWITH_IPP=ON</parameter>: This option instructs the make
187 procedure to use the downloaded IPP package.</para>
188
189 </sect2>
190
191 <sect2 role="content">
192 <title>Contents</title>
193
194 <segmentedlist>
195 <segtitle>Installed Programs</segtitle>
196 <segtitle>Installed Libraries</segtitle>
197 <segtitle>Installed Directories</segtitle>
198
199 <seglistitem>
200 <seg>
201 opencv_annotation,
202 opencv_createsamples, and
203 opencv_traincascade
204 </seg>
205 <seg>
206 libopencv_calib3d.so,
207 libopencv_core.so,
208 libopencv_features2d.so,
209 libopencv_flann.so,
210 libopencv_highgui.so,
211 libopencv_imgcodecs.so,
212 libopencv_imgproc.so,
213 libopencv_ml.so,
214 libopencv_objdetect.so,
215 libopencv_photo.so,
216 libopencv_shape.so,
217 libopencv_stitching.so,
218 libopencv_superres.so,
219 libopencv_ts.a,
220 libopencv_video.so,
221 libopencv_videoio.so, and
222 libopencv_videostab.so
223 </seg>
224 <seg>
225 /usr/include/opencv{,2} and
226 /usr/share/OpenCV
227 </seg>
228 </seglistitem>
229 </segmentedlist>
230<!--
231 <variablelist>
232 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
233 <?dbfo list-presentation="list"?>
234 <?dbhtml list-presentation="table"?>
235
236 <varlistentry id="opencv_annotation">
237 <term><command>opencv_annotation</command></term>
238 <listitem>
239 <para>
240 ???
241 </para>
242 <indexterm zone="opencv opencv_annotation">
243 <primary sortas="b-opencv">opencv_annotation</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 </variablelist>
249-->
250 </sect2>
251
252</sect1>
Note: See TracBrowser for help on using the repository browser.