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