source: general/graphlib/opencv.xml@ e4d2b8d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 e4d2b8d was e4d2b8d, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Remove reference to qt4 in avahi and networkmanager.
Update to vlc-3.0.0-20160606.
Move opnecv 3rd party static library to /usr/lib.

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

  • Property mode set to 100644
File size: 8.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 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 -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 &amp;&amp;
177mv -v /usr/share/OpenCV/3rdparty/lib/libippicv.a /usr/lib &amp;&amp;
178rm -rv /usr/share/OpenCV/3rdparty
179</userinput></screen>
180
181 </sect2>
182
183 <sect2 role="commands">
184 <title>Command Explanations</title>
185
186 <para><parameter>-DWITH_XINE=ON</parameter>: This option instructs the make
187 procedure to use <xref linkend="xine-lib"/>.</para>
188
189 <para><parameter>-DWITH_IPP=ON</parameter>: This option instructs the make
190 procedure to use the downloaded IPP package.</para>
191
192 <para><command>mv -v /usr/share/OpenCV/3rdparty/lib/libippicv.a
193 /usr/lib</command>: This command move a library to a location where it
194 can be found.</para>
195
196 </sect2>
197
198 <sect2 role="content">
199 <title>Contents</title>
200
201 <segmentedlist>
202 <segtitle>Installed Programs</segtitle>
203 <segtitle>Installed Libraries</segtitle>
204 <segtitle>Installed Directories</segtitle>
205
206 <seglistitem>
207 <seg>
208 opencv_annotation,
209 opencv_createsamples, and
210 opencv_traincascade
211 </seg>
212 <seg>
213 libopencv_calib3d.so,
214 libopencv_core.so,
215 libopencv_features2d.so,
216 libopencv_flann.so,
217 libopencv_highgui.so,
218 libopencv_imgcodecs.so,
219 libopencv_imgproc.so,
220 libopencv_ml.so,
221 libopencv_objdetect.so,
222 libopencv_photo.so,
223 libopencv_shape.so,
224 libopencv_stitching.so,
225 libopencv_superres.so,
226 libopencv_ts.a,
227 libopencv_video.so,
228 libopencv_videoio.so, and
229 libopencv_videostab.so
230 </seg>
231 <seg>
232 /usr/include/opencv{,2} and
233 /usr/share/OpenCV
234 </seg>
235 </seglistitem>
236 </segmentedlist>
237<!--
238 <variablelist>
239 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
240 <?dbfo list-presentation="list"?>
241 <?dbhtml list-presentation="table"?>
242
243 <varlistentry id="opencv_annotation">
244 <term><command>opencv_annotation</command></term>
245 <listitem>
246 <para>
247 ???
248 </para>
249 <indexterm zone="opencv opencv_annotation">
250 <primary sortas="b-opencv">opencv_annotation</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 </variablelist>
256-->
257 </sect2>
258
259</sect1>
Note: See TracBrowser for help on using the repository browser.