[9945e31] | 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;
|
---|
[b8ff9ea] | 6 | <!ENTITY inkscape-download-http "https://media.inkscape.org/dl/resources/file/inkscape-&inkscape-version;.tar.xz">
|
---|
[9945e31] | 7 | <!ENTITY inkscape-download-ftp " ">
|
---|
[b8ff9ea] | 8 | <!ENTITY inkscape-md5sum "e5f1ee6b32ac0a94bdd5d99190e7bb9e">
|
---|
| 9 | <!ENTITY inkscape-size "30 MB">
|
---|
| 10 | <!ENTITY inkscape-buildsize "722 MB (165 MB installed)">
|
---|
| 11 | <!ENTITY inkscape-time "5.7 SBU (with parallelism=4)">
|
---|
[9945e31] | 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">
|
---|
[bc6e56d] | 25 | <primary sortas="a-Inkscape">Inkscape</primary>
|
---|
[9945e31] | 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 |
|
---|
[c14025f4] | 37 | &lfs91_checked;
|
---|
[9945e31] | 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 |
|
---|
[b8ff9ea] | 73 | <!-- With 1.0.0, there is now a dependency on IM7 instead of IM6.
|
---|
| 74 | It's explicitly searched for in CMakeLists.txt.
|
---|
[7d35ee59] | 75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 76 | <itemizedlist spacing="compact">
|
---|
| 77 | <listitem>
|
---|
[622c1021] | 78 | <para>
|
---|
| 79 | Required patch: <ulink
|
---|
| 80 | url="&patch-root;/inkscape-&inkscape-version;-use_versioned_ImageMagick6-1.patch"/>
|
---|
| 81 | </para>
|
---|
[7d35ee59] | 82 | </listitem>
|
---|
[b8ff9ea] | 83 | -->
|
---|
[9851978] | 84 | <!-- These are not needed right now. Inkscape builds/runs fine with the
|
---|
| 85 | latest poppler as of this update (0.87.0). However, history says
|
---|
| 86 | that almost every poppler version has broke inkscape, and history
|
---|
| 87 | tends to repeat itself ;-). Keep these patches commented until
|
---|
| 88 | they are inevitably needed.
|
---|
[e20c93bd] | 89 | <listitem>
|
---|
[622c1021] | 90 | <para>
|
---|
| 91 | Required patch: <ulink
|
---|
| 92 | url="&patch-root;/inkscape-&inkscape-version;-upstream_fixes-1.patch"/>
|
---|
| 93 | </para>
|
---|
[e20c93bd] | 94 | </listitem>
|
---|
[a353c3a] | 95 | <listitem>
|
---|
[622c1021] | 96 | <para>
|
---|
| 97 | Required patch: <ulink
|
---|
| 98 | url="&patch-root;/inkscape-&inkscape-version;-poppler_0_83_0_fixes-1.patch"/>
|
---|
| 99 | </para>
|
---|
[e146aca] | 100 | </listitem>
|
---|
[7d35ee59] | 101 | </itemizedlist>
|
---|
[b8ff9ea] | 102 | -->
|
---|
| 103 |
|
---|
| 104 | <!-- I've asked upstream about this and was unable to find an answer. -renodr -->
|
---|
| 105 | <note>
|
---|
| 106 | <para>
|
---|
| 107 | The tarball <emphasis>inkscape-&inkscape-version;.tar.xz</emphasis>
|
---|
| 108 | will extract to
|
---|
| 109 | <emphasis>inkscape-&inkscape-version;_2020-05-01_4035a4fb49</emphasis>
|
---|
| 110 | </para>
|
---|
| 111 | </note>
|
---|
[7d35ee59] | 112 |
|
---|
[9945e31] | 113 | <bridgehead renderas="sect3">Inkscape Dependencies</bridgehead>
|
---|
| 114 |
|
---|
| 115 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 116 | <para role="required">
|
---|
| 117 | <xref linkend="boost"/>,
|
---|
[b8ff9ea] | 118 | <xref linkend="double-conversion"/>,
|
---|
[bc6e56d] | 119 | <xref linkend="gc"/>,
|
---|
[b8ff9ea] | 120 | <xref linkend="gdl"/>,
|
---|
[81e3aeaa] | 121 | <xref linkend="gsl"/>,
|
---|
[b8ff9ea] | 122 | <xref linkend="gtkmm3"/>,
|
---|
| 123 | <xref linkend="libsoup"/>,
|
---|
[7d35ee59] | 124 | <xref linkend="libxslt"/>,
|
---|
[0fa27361] | 125 | <xref linkend="poppler"/>,
|
---|
[7d35ee59] | 126 | <xref linkend="popt"/> and
|
---|
| 127 | <xref linkend="wget"/> (to download the test dependencies)
|
---|
[bc6e56d] | 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 131 | <para role="recommended">
|
---|
[b8ff9ea] | 132 | <xref linkend="imagemagick"/>,
|
---|
[8e5b57e] | 133 | <xref linkend="lcms2"/> or
|
---|
[cac7f93] | 134 | <xref role="nodep" linkend="lcms"/>,
|
---|
[2abdf08b] | 135 | <xref linkend="libcanberra"/> (to eliminate plugin warnings),
|
---|
[7d35ee59] | 136 | <xref linkend="potrace"/> (for the bucket-fill tool),
|
---|
[57c1a7f] | 137 | <xref role="runtime" linkend="lxml"/> and
|
---|
| 138 | <xref role="runtime" linkend="scour"/> (both at runtime, for Save As
|
---|
| 139 | Optimized SVG).
|
---|
[9945e31] | 140 | </para>
|
---|
| 141 |
|
---|
| 142 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 143 | <para role="optional">
|
---|
[bc6e56d] | 144 | <xref linkend="aspell"/>,
|
---|
[7d35ee59] | 145 | <xref linkend="dbus"/> (to run inkscape from scripts),
|
---|
[bc6e56d] | 146 | <xref linkend="doxygen"/>,
|
---|
[e47938a] | 147 |
|
---|
| 148 | <!-- these document foundation links work from firefox's address bar, or
|
---|
| 149 | from google (pages telling you how to get it from git), but when I link
|
---|
| 150 | them here I get "There is currently no text in this page...". Ken or
|
---|
| 151 | developer: wiki.documentfoundation.org pages don't like trailing / -->
|
---|
[0134954] | 152 | <!--<ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr">libcdr</ulink>,
|
---|
| 153 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio">libvisio</ulink>,-->
|
---|
[b8ff9ea] | 154 | <ulink url="http://gtkspell.sourceforge.net">gtkspell</ulink>,
|
---|
[8e5b57e] | 155 | <ulink url="https://github.com/LibreOffice/libcdr">libcdr</ulink>,
|
---|
| 156 | <ulink url="https://github.com/LibreOffice/libvisio">libvisio</ulink>,
|
---|
[7d35ee59] | 157 | <ulink url="http://libwpg.sourceforge.net/">libwpg</ulink> (or
|
---|
| 158 | <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>) and
|
---|
[c8b93dfd] | 159 | <ulink role="runtime"
|
---|
| 160 | url="https://sourceforge.net/projects/NumPy/files/">NumPy</ulink>
|
---|
[7d35ee59] | 161 | (at runtime for some extensions)
|
---|
[9945e31] | 162 | </para>
|
---|
| 163 |
|
---|
[dc6bfb82] | 164 | <bridgehead renderas="sect4">Optional Runtime Dependencies
|
---|
| 165 | (for some of the Inkscape extensions)</bridgehead>
|
---|
| 166 | <para role="optional">
|
---|
[c8b93dfd] | 167 | <ulink role="runtime"
|
---|
[b69e5dc] | 168 | url="https://metacpan.org/pod/release/TJMATHER/XML-XQL-0.68/lib/XML/XQL.pm">XML::XQL</ulink>
|
---|
[dc6bfb82] | 169 | </para>
|
---|
| 170 |
|
---|
[9945e31] | 171 | <para condition="html" role="usernotes">
|
---|
| 172 | User Notes: <ulink url="&blfs-wiki;/inkscape"/>
|
---|
| 173 | </para>
|
---|
| 174 | </sect2>
|
---|
| 175 |
|
---|
| 176 | <sect2 role="installation">
|
---|
| 177 | <title>Installation of Inkscape</title>
|
---|
[096730a] | 178 |
|
---|
[9851978] | 179 | <!-- Not needed with 0.92.5, but let's keep the template instead.
|
---|
[096730a] | 180 | <para>
|
---|
| 181 | First, fix a problem introduced by Poppler-0.76.1.
|
---|
| 182 | </para>
|
---|
| 183 |
|
---|
[77c3644] | 184 | <screen><userinput remap="pre">sed -e 's|new Lexer(xref, obj)|obj|g' -i src/extension/internal/pdfinput/pdf-parser.cpp</userinput></screen>
|
---|
[096730a] | 185 |
|
---|
[a353c3a] | 186 | <para>
|
---|
| 187 | Next, fix Inkscape to be able to build with poppler-0.82.0 and higher:
|
---|
| 188 | </para>
|
---|
| 189 |
|
---|
[e146aca] | 190 | <screen><userinput remap="pre">sed -e 's|Unicode \*u|Unicode const *u|g' -i src/extension/internal/pdfinput/*</userinput></screen>
|
---|
| 191 |
|
---|
| 192 | <para>
|
---|
| 193 | Now fix Inkscape to build with poppler-0.83.0:
|
---|
| 194 | </para>
|
---|
| 195 |
|
---|
| 196 | <screen><userinput remap="pre">patch -Np1 -i ../inkscape-&inkscape-version;-poppler_0_83_0_fixes-1.patch</userinput></screen>
|
---|
[9851978] | 197 | -->
|
---|
[a353c3a] | 198 |
|
---|
[b8ff9ea] | 199 | <!-- Inkscape now has a hard dependency on IM7.
|
---|
[ac67709] | 200 | <para>
|
---|
[18b9eae] | 201 | Ensure that the libraries from <xref linkend="imagemagick6"/> can be used:
|
---|
[ac67709] | 202 | </para>
|
---|
| 203 |
|
---|
[18b9eae] | 204 | <screen><userinput>patch -Np1 -i ../inkscape-&inkscape-version;-use_versioned_ImageMagick6-1.patch</userinput></screen>
|
---|
[b8ff9ea] | 205 | -->
|
---|
[9851978] | 206 | <!--
|
---|
[e20c93bd] | 207 | <para>
|
---|
| 208 | Apply a patch to prevent out-of-bounds writes in the text and fill-bucket
|
---|
| 209 | tools:
|
---|
| 210 | </para>
|
---|
| 211 |
|
---|
| 212 | <screen><userinput>patch -Np1 -i ../inkscape-&inkscape-version;-upstream_fixes-1.patch</userinput></screen>
|
---|
[9851978] | 213 | -->
|
---|
[e20c93bd] | 214 |
|
---|
[57c1a7f] | 215 | <!-- If there is no test suite, then this is not needed.
|
---|
[b8ff9ea] | 216 | There is none if the command below is not run.
|
---|
| 217 | With 1.0, this support is broken, so let's comment it out for now to
|
---|
| 218 | prevent confusion.
|
---|
[7d35ee59] | 219 | <para>
|
---|
| 220 | If you wish to run the testsuite, download the required versions of
|
---|
| 221 | <application>googletest</application> and
|
---|
| 222 | <application>googlemock</application> by running:
|
---|
| 223 | </para>
|
---|
| 224 |
|
---|
[e7d4e823] | 225 | <screen remap="test"><userinput>bash download-gtest.sh</userinput></screen>
|
---|
[b8ff9ea] | 226 | -->
|
---|
[7d35ee59] | 227 |
|
---|
[9945e31] | 228 | <para>
|
---|
| 229 | Install <application>Inkscape</application> by running the following
|
---|
| 230 | commands:
|
---|
| 231 | </para>
|
---|
| 232 |
|
---|
[0fa27361] | 233 | <screen><userinput>mkdir build &&
|
---|
[f1e50963] | 234 | cd build &&
|
---|
[81d8cac] | 235 |
|
---|
[7d35ee59] | 236 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 237 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 238 | .. &&
|
---|
[8874b6f] | 239 | make</userinput></screen>
|
---|
[9945e31] | 240 |
|
---|
[b8ff9ea] | 241 | <!--
|
---|
[9945e31] | 242 | <para>
|
---|
[b8ff9ea] | 243 | To test the results, issue: <command>make check</command>.<!- - Ken or
|
---|
[57c1a7f] | 244 | other devs, there is no test suite in this package. -renodr
|
---|
| 245 | A small test suite is built if you download the necessary programs
|
---|
| 246 | with the command above (bash download-gtest.sh) -pierre
|
---|
[b8ff9ea] | 247 | This package does not come with a test suite. - ->
|
---|
| 248 |
|
---|
| 249 | At the moment, the test suite does not function with the
|
---|
| 250 | "bash download-gtest.sh". CMake is unable to find gtest.
|
---|
[9945e31] | 251 | </para>
|
---|
[b8ff9ea] | 252 | -->
|
---|
[0fa27361] | 253 |
|
---|
[270505a] | 254 | <para>
|
---|
| 255 | This package does not come with a working test suite.
|
---|
| 256 | </para>
|
---|
| 257 |
|
---|
[9945e31] | 258 | <para>
|
---|
| 259 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 260 | </para>
|
---|
| 261 |
|
---|
[b8ff9ea] | 262 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[9945e31] | 263 |
|
---|
[dc6bfb82] | 264 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 265 | href="../../xincludes/update-icons-and-desktop.xml"/>
|
---|
[87dfe6b] | 266 |
|
---|
| 267 | </sect2>
|
---|
[0f23f29] | 268 |
|
---|
[87dfe6b] | 269 | <sect2 role="commands">
|
---|
| 270 | <title>Command Explanations</title>
|
---|
| 271 |
|
---|
[19bcba7d] | 272 | <para>
|
---|
[7d35ee59] | 273 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
---|
| 274 | build the release library without any debug `assert` in the code.
|
---|
| 275 | </para>
|
---|
| 276 |
|
---|
| 277 | <para>
|
---|
| 278 | <option>-DWITH_DBUS=ON</option>: use this if you wish to use
|
---|
| 279 | <command>inkscape</command> in interactive scripts which manipulate
|
---|
| 280 | images.
|
---|
[80cfbfb] | 281 | </para>
|
---|
| 282 |
|
---|
[0f23f29] | 283 | </sect2>
|
---|
[9945e31] | 284 |
|
---|
| 285 | <sect2 role="content">
|
---|
| 286 | <title>Contents</title>
|
---|
| 287 |
|
---|
| 288 | <segmentedlist>
|
---|
| 289 | <segtitle>Installed Programs</segtitle>
|
---|
[7d35ee59] | 290 | <segtitle>Installed Library</segtitle>
|
---|
| 291 | <segtitle>Installed Directories</segtitle>
|
---|
[9945e31] | 292 |
|
---|
| 293 | <seglistitem>
|
---|
[bc6e56d] | 294 | <seg>
|
---|
| 295 | inkscape and inkview
|
---|
| 296 | </seg>
|
---|
[c3c56b2] | 297 | <seg>
|
---|
[7d35ee59] | 298 | libinkscape_base.so
|
---|
[c3c56b2] | 299 | </seg>
|
---|
[bc6e56d] | 300 | <seg>
|
---|
[7d35ee59] | 301 | /usr/lib/inkscape and /usr/share/inkscape
|
---|
[bc6e56d] | 302 | </seg>
|
---|
[9945e31] | 303 | </seglistitem>
|
---|
| 304 | </segmentedlist>
|
---|
| 305 |
|
---|
| 306 | <variablelist>
|
---|
| 307 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 308 | <?dbfo list-presentation="list"?>
|
---|
| 309 | <?dbhtml list-presentation="table"?>
|
---|
| 310 |
|
---|
| 311 | <varlistentry id="inkscape-prog">
|
---|
| 312 | <term><command>inkscape</command></term>
|
---|
| 313 | <listitem>
|
---|
| 314 | <para>
|
---|
[9851978] | 315 | is a SVG (Scalable Vector Graphics) editing program.
|
---|
[9945e31] | 316 | </para>
|
---|
| 317 | <indexterm zone="inkscape inkscape-prog">
|
---|
| 318 | <primary sortas="b-inkscape">inkscape</primary>
|
---|
| 319 | </indexterm>
|
---|
| 320 | </listitem>
|
---|
| 321 | </varlistentry>
|
---|
| 322 |
|
---|
| 323 | <varlistentry id="inkview">
|
---|
| 324 | <term><command>inkview</command></term>
|
---|
| 325 | <listitem>
|
---|
| 326 | <para>
|
---|
| 327 | is a simple program for displaying SVG files.
|
---|
| 328 | </para>
|
---|
| 329 | <indexterm zone="inkscape inkview">
|
---|
| 330 | <primary sortas="b-inkview">inkview</primary>
|
---|
| 331 | </indexterm>
|
---|
| 332 | </listitem>
|
---|
| 333 | </varlistentry>
|
---|
[bc6e56d] | 334 |
|
---|
[7d35ee59] | 335 | <varlistentry id="libinkscape_base">
|
---|
| 336 | <term><filename class="libraryfile">libinkscape_base.so</filename></term>
|
---|
| 337 | <listitem>
|
---|
| 338 | <para>
|
---|
| 339 | provides the routines used by inkscape and inkview.
|
---|
| 340 | </para>
|
---|
| 341 | <indexterm zone="inkscape libinkscape_base">
|
---|
| 342 | <primary sortas="c-libinkscape_base">libinkscape_base.so</primary>
|
---|
| 343 | </indexterm>
|
---|
| 344 | </listitem>
|
---|
| 345 | </varlistentry>
|
---|
| 346 |
|
---|
[9945e31] | 347 | </variablelist>
|
---|
[bc6e56d] | 348 |
|
---|
[9945e31] | 349 | </sect2>
|
---|
[bc6e56d] | 350 |
|
---|
[9945e31] | 351 | </sect1>
|
---|