source: general/graphlib/opencv.xml@ d455680

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 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 d455680 was d455680, checked in by Pierre Labastie <pieere@…>, 7 years ago

Fix building of gst-plugins-bad when opencv is present

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

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