source: xsoft/other/inkscape.xml@ 622c1021

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 622c1021 was 622c1021, checked in by Pierre Labastie <pieere@…>, 4 years ago

Format xsoft chapter

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

  • Property mode set to 100644
File size: 10.6 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 <!ENTITY inkscape-download-http "https://media.inkscape.org/dl/resources/file/inkscape-&inkscape-version;.tar.bz2">
7 <!ENTITY inkscape-download-ftp " ">
8 <!ENTITY inkscape-md5sum "ac30f6d5747fd9c620c00dad500f414f">
9 <!ENTITY inkscape-size "30 MB">
10 <!ENTITY inkscape-buildsize "534 MB (134 MB installed, add 8 MB for tests)">
11 <!ENTITY inkscape-time "4.8 SBU (add 0.2 SBU for tests, both with parallelism=4)">
12]>
13
14<sect1 id="inkscape" xreflabel="Inkscape-&inkscape-version;">
15 <?dbhtml filename="inkscape.html"?>
16
17 <sect1info>
18 <othername>$LastChangedBy$</othername>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>Inkscape-&inkscape-version;</title>
23
24 <indexterm zone="inkscape">
25 <primary sortas="a-Inkscape">Inkscape</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to Inkscape</title>
30
31 <para>
32 <application>Inkscape</application> is a what you see is what you get
33 Scalable Vector Graphics editor. It is useful for creating, viewing and
34 changing SVG images.
35 </para>
36
37 &lfs91_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&inkscape-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&inkscape-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &inkscape-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &inkscape-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &inkscape-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &inkscape-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Required patch: <ulink
78 url="&patch-root;/inkscape-&inkscape-version;-use_versioned_ImageMagick6-1.patch"/>
79 </para>
80 </listitem>
81 <listitem>
82 <para>
83 Required patch: <ulink
84 url="&patch-root;/inkscape-&inkscape-version;-upstream_fixes-1.patch"/>
85 </para>
86 </listitem>
87 <listitem>
88 <para>
89 Required patch: <ulink
90 url="&patch-root;/inkscape-&inkscape-version;-poppler_0_83_0_fixes-1.patch"/>
91 </para>
92 </listitem>
93 </itemizedlist>
94
95 <bridgehead renderas="sect3">Inkscape Dependencies</bridgehead>
96
97 <bridgehead renderas="sect4">Required</bridgehead>
98 <para role="required">
99 <xref linkend="boost"/>,
100 <xref linkend="gc"/>,
101 <xref linkend="gsl"/>,
102 <xref linkend="gtkmm2"/>
103 (or <xref linkend="gtkmm3"/> and
104 <ulink url="http://ftp.gnome.org/pub/gnome/sources/gdl/">gnome docking library</ulink>
105 for the experimental gtk+-3 build),
106 <xref linkend="libxslt"/>,
107 <xref linkend="poppler"/>,
108 <xref linkend="popt"/> and
109 <xref linkend="wget"/> (to download the test dependencies)
110 </para>
111
112 <bridgehead renderas="sect4">Recommended</bridgehead>
113 <para role="recommended">
114 <xref linkend="imagemagick6"/>,
115 <xref linkend="lcms2"/> or
116 <xref role="nodep" linkend="lcms"/>,
117 <xref linkend="libcanberra"/> (to eliminate plugin warnings),
118 <xref linkend="potrace"/> (for the bucket-fill tool),
119 <xref role="runtime" linkend="lxml"/> and
120 <xref role="runtime" linkend="scour"/> (both at runtime, for Save As
121 Optimized SVG).
122 </para>
123
124 <bridgehead renderas="sect4">Optional</bridgehead>
125 <para role="optional">
126 <xref linkend="aspell"/>,
127 <xref linkend="dbus"/> (to run inkscape from scripts),
128 <xref linkend="doxygen"/>,
129
130 <!-- these document foundation links work from firefox's address bar, or
131 from google (pages telling you how to get it from git), but when I link
132 them here I get "There is currently no text in this page...". Ken or
133 developer: wiki.documentfoundation.org pages don't like trailing / -->
134 <!--<ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr">libcdr</ulink>,
135 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio">libvisio</ulink>,-->
136 <ulink url="https://github.com/LibreOffice/libcdr">libcdr</ulink>,
137 <ulink url="https://github.com/LibreOffice/libvisio">libvisio</ulink>,
138 <ulink url="http://libwpg.sourceforge.net/">libwpg</ulink> (or
139 <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>) and
140 <ulink role="runtime"
141 url="https://sourceforge.net/projects/NumPy/files/">NumPy</ulink>
142 (at runtime for some extensions)
143 </para>
144
145 <bridgehead renderas="sect4">Optional Runtime Dependencies
146 (for some of the Inkscape extensions)</bridgehead>
147 <para role="optional">
148 <ulink role="runtime"
149 url="https://metacpan.org/pod/release/TJMATHER/XML-XQL-0.68/lib/XML/XQL.pm">XML::XQL</ulink>
150 </para>
151
152 <para condition="html" role="usernotes">
153 User Notes: <ulink url="&blfs-wiki;/inkscape"/>
154 </para>
155 </sect2>
156
157 <sect2 role="installation">
158 <title>Installation of Inkscape</title>
159
160 <para>
161 First, fix a problem introduced by Poppler-0.76.1.
162 </para>
163
164<screen><userinput remap="pre">sed -e 's|new Lexer(xref, obj)|obj|g' -i src/extension/internal/pdfinput/pdf-parser.cpp</userinput></screen>
165
166 <para>
167 Next, fix Inkscape to be able to build with poppler-0.82.0 and higher:
168 </para>
169
170<screen><userinput remap="pre">sed -e 's|Unicode \*u|Unicode const *u|g' -i src/extension/internal/pdfinput/*</userinput></screen>
171
172 <para>
173 Now fix Inkscape to build with poppler-0.83.0:
174 </para>
175
176<screen><userinput remap="pre">patch -Np1 -i ../inkscape-&inkscape-version;-poppler_0_83_0_fixes-1.patch</userinput></screen>
177
178 <para>
179 Ensure that the libraries from <xref linkend="imagemagick6"/> can be used:
180 </para>
181
182<screen><userinput>patch -Np1 -i ../inkscape-&inkscape-version;-use_versioned_ImageMagick6-1.patch</userinput></screen>
183
184 <para>
185 Apply a patch to prevent out-of-bounds writes in the text and fill-bucket
186 tools:
187 </para>
188
189<screen><userinput>patch -Np1 -i ../inkscape-&inkscape-version;-upstream_fixes-1.patch</userinput></screen>
190
191<!-- If there is no test suite, then this is not needed.
192 There is none if the command below is not run. -->
193 <para>
194 If you wish to run the testsuite, download the required versions of
195 <application>googletest</application> and
196 <application>googlemock</application> by running:
197 </para>
198
199<screen remap="test"><userinput>bash download-gtest.sh</userinput></screen>
200
201 <para>
202 Install <application>Inkscape</application> by running the following
203 commands:
204 </para>
205
206<screen><userinput>mkdir build &amp;&amp;
207cd build &amp;&amp;
208
209cmake -DCMAKE_INSTALL_PREFIX=/usr \
210 -DCMAKE_BUILD_TYPE=Release \
211 .. &amp;&amp;
212make</userinput></screen>
213
214 <para>
215 To test the results, issue: <command>make check</command>.<!-- Ken or
216 other devs, there is no test suite in this package. -renodr
217 A small test suite is built if you download the necessary programs
218 with the command above (bash download-gtest.sh) -pierre
219 This package does not come with a test suite. -->
220 </para>
221
222 <para>
223 Now, as the <systemitem class="username">root</systemitem> user:
224 </para>
225
226<screen role="root"><userinput>make install &amp;&amp;
227rm -v /usr/lib/inkscape/lib*_LIB.a</userinput></screen>
228
229 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
230 href="../../xincludes/update-icons-and-desktop.xml"/>
231
232 </sect2>
233
234 <sect2 role="commands">
235 <title>Command Explanations</title>
236
237 <para>
238 <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
239 build the release library without any debug `assert` in the code.
240 </para>
241
242 <para>
243 <command>rm -v /usr/lib/inkscape/lib*_LIB.a</command>: The conversion
244 of the package to use <command>cmake</command> has led to these libraries
245 getting installed, but they are not usable (there are no header files to
246 let a program know what they contain). So remove them.
247 </para>
248
249 <para>
250 <option>-DWITH_DBUS=ON</option>: use this if you wish to use
251 <command>inkscape</command> in interactive scripts which manipulate
252 images.
253 </para>
254
255 </sect2>
256
257 <sect2 role="content">
258 <title>Contents</title>
259
260 <segmentedlist>
261 <segtitle>Installed Programs</segtitle>
262 <segtitle>Installed Library</segtitle>
263 <segtitle>Installed Directories</segtitle>
264
265 <seglistitem>
266 <seg>
267 inkscape and inkview
268 </seg>
269 <seg>
270 libinkscape_base.so
271 </seg>
272 <seg>
273 /usr/lib/inkscape and /usr/share/inkscape
274 </seg>
275 </seglistitem>
276 </segmentedlist>
277
278 <variablelist>
279 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
280 <?dbfo list-presentation="list"?>
281 <?dbhtml list-presentation="table"?>
282
283 <varlistentry id="inkscape-prog">
284 <term><command>inkscape</command></term>
285 <listitem>
286 <para>
287 an SVG (Scalable Vector Graphics) editing program.
288 </para>
289 <indexterm zone="inkscape inkscape-prog">
290 <primary sortas="b-inkscape">inkscape</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="inkview">
296 <term><command>inkview</command></term>
297 <listitem>
298 <para>
299 is a simple program for displaying SVG files.
300 </para>
301 <indexterm zone="inkscape inkview">
302 <primary sortas="b-inkview">inkview</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 <varlistentry id="libinkscape_base">
308 <term><filename class="libraryfile">libinkscape_base.so</filename></term>
309 <listitem>
310 <para>
311 provides the routines used by inkscape and inkview.
312 </para>
313 <indexterm zone="inkscape libinkscape_base">
314 <primary sortas="c-libinkscape_base">libinkscape_base.so</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 </variablelist>
320
321 </sect2>
322
323</sect1>
Note: See TracBrowser for help on using the repository browser.