[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 " ">
|
---|
[7d35ee59] | 8 | <!ENTITY inkscape-md5sum "6f6bcbd0237ecd064460315465467b04">
|
---|
[83d18450] | 9 | <!ENTITY inkscape-size "30 MB">
|
---|
[7d35ee59] | 10 | <!ENTITY inkscape-buildsize "526 MB (add 8 MB for tests)">
|
---|
| 11 | <!ENTITY inkscape-time "4.9 SBU (add 0.2 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 |
|
---|
[75c3086] | 37 | &lfs80_checked;
|
---|
[7d35ee59] | 38 | &gcc7_checked;
|
---|
[9945e31] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&inkscape-download-http;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&inkscape-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download MD5 sum: &inkscape-md5sum;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Download size: &inkscape-size;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated disk space required: &inkscape-buildsize;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Estimated build time: &inkscape-time;
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[7d35ee59] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 75 | <itemizedlist spacing="compact">
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>Required patch: <ulink url="&patch-root;/inkscape-&inkscape-version;-use_versioned_ImageMagick6-1.patch"/></para>
|
---|
| 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
| 80 |
|
---|
[9945e31] | 81 | <bridgehead renderas="sect3">Inkscape Dependencies</bridgehead>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 84 | <para role="required">
|
---|
| 85 | <xref linkend="boost"/>,
|
---|
[bc6e56d] | 86 | <xref linkend="gc"/>,
|
---|
[81e3aeaa] | 87 | <xref linkend="gsl"/>,
|
---|
[8e5b57e] | 88 | <xref linkend="gtkmm2"/>
|
---|
| 89 | (or <xref linkend="gtkmm3"/> and
|
---|
| 90 | <ulink url="http://ftp.gnome.org/pub/gnome/sources/gdl/">gnome docking library</ulink>
|
---|
| 91 | for the experimental gtk+-3 build),
|
---|
[7d35ee59] | 92 | <xref linkend="libxslt"/>,
|
---|
| 93 | <xref linkend="popt"/> and
|
---|
| 94 | <xref linkend="wget"/> (to download the test dependencies)
|
---|
[bc6e56d] | 95 | </para>
|
---|
| 96 |
|
---|
| 97 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 98 | <para role="recommended">
|
---|
[d113301] | 99 | <xref linkend="imagemagick6"/>,
|
---|
[8e5b57e] | 100 | <xref linkend="lcms2"/> or
|
---|
[7d35ee59] | 101 | <xref linkend="lcms"/>,
|
---|
| 102 | <xref linkend="potrace"/> (for the bucket-fill tool),
|
---|
| 103 | <xref linkend="lxml"/> and
|
---|
| 104 | <xref linkend="scour"/> (both at runtime, for Save As Optimized SVG).
|
---|
[9945e31] | 105 | </para>
|
---|
| 106 |
|
---|
| 107 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 108 | <para role="optional">
|
---|
[bc6e56d] | 109 | <xref linkend="aspell"/>,
|
---|
[7d35ee59] | 110 | <xref linkend="dbus"/> (to run inkscape from scripts),
|
---|
[bc6e56d] | 111 | <xref linkend="doxygen"/>,
|
---|
[e47938a] | 112 | <xref linkend="poppler"/>,
|
---|
| 113 |
|
---|
| 114 | <!-- these document foundation links work from firefox's address bar, or
|
---|
| 115 | from google (pages telling you how to get it from git), but when I link
|
---|
| 116 | them here I get "There is currently no text in this page...". Ken or
|
---|
| 117 | developer: wiki.documentfoundation.org pages don't like trailing / -->
|
---|
[0134954] | 118 | <!--<ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr">libcdr</ulink>,
|
---|
| 119 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio">libvisio</ulink>,-->
|
---|
[8e5b57e] | 120 | <ulink url="https://github.com/LibreOffice/libcdr">libcdr</ulink>,
|
---|
| 121 | <ulink url="https://github.com/LibreOffice/libvisio">libvisio</ulink>,
|
---|
[7d35ee59] | 122 | <ulink url="http://libwpg.sourceforge.net/">libwpg</ulink> (or
|
---|
| 123 | <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>) and
|
---|
[8e5b57e] | 124 | <ulink url="https://sourceforge.net/projects/NumPy/files/">NumPy</ulink>
|
---|
[7d35ee59] | 125 | (at runtime for some extensions)
|
---|
[9945e31] | 126 | </para>
|
---|
| 127 |
|
---|
[dc6bfb82] | 128 | <bridgehead renderas="sect4">Optional Runtime Dependencies
|
---|
| 129 | (for some of the Inkscape extensions)</bridgehead>
|
---|
| 130 | <para role="optional">
|
---|
| 131 | <ulink url="http://search.cpan.org/~tjmather/XML-XQL-0.68/lib/XML/XQL.pm">XML::XQL</ulink>
|
---|
| 132 | </para>
|
---|
| 133 |
|
---|
[9945e31] | 134 | <para condition="html" role="usernotes">
|
---|
| 135 | User Notes: <ulink url="&blfs-wiki;/inkscape"/>
|
---|
| 136 | </para>
|
---|
| 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="installation">
|
---|
| 140 | <title>Installation of Inkscape</title>
|
---|
| 141 |
|
---|
[7d35ee59] | 142 | <para>Ensure that the libraries from <xref linkend="imagemagick6"/> can be used:</para>
|
---|
| 143 |
|
---|
| 144 | <screen><userinput>patch -Np1 -i ../inkscape-&inkscape-version;-use_versioned_ImageMagick6-1.patch</userinput></screen>
|
---|
| 145 |
|
---|
[ac67709] | 146 | <para>
|
---|
| 147 | Fix a build issue with <application>GCC-7.1</application>:
|
---|
| 148 | </para>
|
---|
| 149 |
|
---|
| 150 | <screen><userinput>sed -i 's| abs(| std::fabs(|g' src/ui/tools/flood-tool.cpp</userinput></screen>
|
---|
| 151 |
|
---|
[7d35ee59] | 152 | <para>
|
---|
| 153 | If you wish to run the testsuite, download the required versions of
|
---|
| 154 | <application>googletest</application> and
|
---|
| 155 | <application>googlemock</application> by running:
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
| 158 | <screen><userinput>bash download-gtest.sh</userinput></screen>
|
---|
| 159 |
|
---|
[9945e31] | 160 | <para>
|
---|
| 161 | Install <application>Inkscape</application> by running the following
|
---|
| 162 | commands:
|
---|
| 163 | </para>
|
---|
| 164 |
|
---|
[7d35ee59] | 165 | <screen><userinput>
|
---|
| 166 | mkdir build &&
|
---|
| 167 | cd build &&
|
---|
[81d8cac] | 168 |
|
---|
[7d35ee59] | 169 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 170 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 171 | .. &&
|
---|
[80cfbfb] | 172 |
|
---|
[8874b6f] | 173 | make</userinput></screen>
|
---|
[9945e31] | 174 |
|
---|
| 175 | <para>
|
---|
| 176 | To test the results, issue: <command>make check</command>.
|
---|
| 177 | </para>
|
---|
| 178 | <para>
|
---|
| 179 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 180 | </para>
|
---|
| 181 |
|
---|
[7d35ee59] | 182 | <screen role="root"><userinput>make install &&
|
---|
| 183 | rm -v /usr/lib/inkscape/lib*_LIB.a</userinput></screen>
|
---|
[9945e31] | 184 |
|
---|
[dc6bfb82] | 185 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 186 | href="../../xincludes/update-icons-and-desktop.xml"/>
|
---|
[87dfe6b] | 187 |
|
---|
| 188 | </sect2>
|
---|
[0f23f29] | 189 |
|
---|
[87dfe6b] | 190 | <sect2 role="commands">
|
---|
| 191 | <title>Command Explanations</title>
|
---|
| 192 |
|
---|
[19bcba7d] | 193 | <para>
|
---|
[7d35ee59] | 194 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
---|
| 195 | build the release library without any debug `assert` in the code.
|
---|
| 196 | </para>
|
---|
| 197 |
|
---|
| 198 | <para>
|
---|
| 199 | <parameter>rm -v /usr/lib/inkscape/lib*_LIB.a</parameter>: The conversion
|
---|
| 200 | of the package to use <command>cmake</command> has led to these libraries
|
---|
| 201 | getting installed, but they are not usable (there are no header files to
|
---|
| 202 | let a program know what they contain). So remove them.
|
---|
| 203 | </para>
|
---|
| 204 |
|
---|
| 205 | <para>
|
---|
| 206 | <option>-DWITH_DBUS=ON</option>: use this if you wish to use
|
---|
| 207 | <command>inkscape</command> in interactive scripts which manipulate
|
---|
| 208 | images.
|
---|
[80cfbfb] | 209 | </para>
|
---|
| 210 |
|
---|
[0f23f29] | 211 | </sect2>
|
---|
[9945e31] | 212 |
|
---|
| 213 | <sect2 role="content">
|
---|
| 214 | <title>Contents</title>
|
---|
| 215 |
|
---|
| 216 | <segmentedlist>
|
---|
| 217 | <segtitle>Installed Programs</segtitle>
|
---|
[7d35ee59] | 218 | <segtitle>Installed Library</segtitle>
|
---|
| 219 | <segtitle>Installed Directories</segtitle>
|
---|
[9945e31] | 220 |
|
---|
| 221 | <seglistitem>
|
---|
[bc6e56d] | 222 | <seg>
|
---|
| 223 | inkscape and inkview
|
---|
| 224 | </seg>
|
---|
[c3c56b2] | 225 | <seg>
|
---|
[7d35ee59] | 226 | libinkscape_base.so
|
---|
[c3c56b2] | 227 | </seg>
|
---|
[bc6e56d] | 228 | <seg>
|
---|
[7d35ee59] | 229 | /usr/lib/inkscape and /usr/share/inkscape
|
---|
[bc6e56d] | 230 | </seg>
|
---|
[9945e31] | 231 | </seglistitem>
|
---|
| 232 | </segmentedlist>
|
---|
| 233 |
|
---|
| 234 | <variablelist>
|
---|
| 235 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 236 | <?dbfo list-presentation="list"?>
|
---|
| 237 | <?dbhtml list-presentation="table"?>
|
---|
| 238 |
|
---|
| 239 | <varlistentry id="inkscape-prog">
|
---|
| 240 | <term><command>inkscape</command></term>
|
---|
| 241 | <listitem>
|
---|
| 242 | <para>
|
---|
| 243 | an SVG (Scalable Vector Graphics) editing program.
|
---|
| 244 | </para>
|
---|
| 245 | <indexterm zone="inkscape inkscape-prog">
|
---|
| 246 | <primary sortas="b-inkscape">inkscape</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="inkview">
|
---|
| 252 | <term><command>inkview</command></term>
|
---|
| 253 | <listitem>
|
---|
| 254 | <para>
|
---|
| 255 | is a simple program for displaying SVG files.
|
---|
| 256 | </para>
|
---|
| 257 | <indexterm zone="inkscape inkview">
|
---|
| 258 | <primary sortas="b-inkview">inkview</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
[bc6e56d] | 262 |
|
---|
[7d35ee59] | 263 | <varlistentry id="libinkscape_base">
|
---|
| 264 | <term><filename class="libraryfile">libinkscape_base.so</filename></term>
|
---|
| 265 | <listitem>
|
---|
| 266 | <para>
|
---|
| 267 | provides the routines used by inkscape and inkview.
|
---|
| 268 | </para>
|
---|
| 269 | <indexterm zone="inkscape libinkscape_base">
|
---|
| 270 | <primary sortas="c-libinkscape_base">libinkscape_base.so</primary>
|
---|
| 271 | </indexterm>
|
---|
| 272 | </listitem>
|
---|
| 273 | </varlistentry>
|
---|
| 274 |
|
---|
[9945e31] | 275 | </variablelist>
|
---|
[bc6e56d] | 276 |
|
---|
[9945e31] | 277 | </sect2>
|
---|
[bc6e56d] | 278 |
|
---|
[9945e31] | 279 | </sect1>
|
---|