Inkscape-0.92.4

#### Beyond Linux® From Scratch (systemd Edition) - Version 9.0

### Chapter 41. Other X-based Programs

- Prev

  HexChat-2.14.2

- Next

  Pidgin-2.13.0

- Up
- Home

# Inkscape-0.92.4

## Introduction to Inkscape

Inkscape is a what you see is what you get Scalable Vector Graphics editor. It is useful for creating, viewing and changing SVG images.

This package is known to build and work properly using an LFS-9.0 platform.

### Package Information

- Download (HTTP): https://media.inkscape.org/dl/resources/file/inkscape-0.92.4.tar.bz2

- Download MD5 sum: ac30f6d5747fd9c620c00dad500f414f

- Download size: 30 MB

- Estimated disk space required: 534 MB (134 MB installed, add 8 MB for tests)

- Estimated build time: 4.8 SBU (add 0.2 SBU for tests, both with parallelism=4)

### Additional Downloads

- Required patch: http://www.linuxfromscratch.org/patches/blfs/9.0/inkscape-0.92.4-use_versioned_ImageMagick6-1.patch

- Required patch: http://www.linuxfromscratch.org/patches/blfs/9.0/inkscape-0.92.4-upstream_fixes-1.patch

### Inkscape Dependencies

#### Required

Boost-1.70.0, GC-8.0.4, Gsl-2.6, Gtkmm-2.24.5 (or Gtkmm-3.24.1 and gnome docking library for the experimental gtk+-3 build), libxslt-1.1.33, Poppler-0.79.0, popt-1.16 and Wget-1.20.3 (to download the test dependencies)

#### Recommended

ImageMagick-6.9.10-60 libraries, Little CMS-2.9 or Little CMS-1.19, libcanberra-0.30 (to eliminate plugin warnings), Potrace-1.15 (for the bucket-fill tool), lxml-4.4.1 and Scour-0.37 (both at runtime, for Save As Optimized SVG).

#### Optional

Aspell-0.60.7, dbus-1.12.16 (to run inkscape from scripts), Doxygen-1.8.16, libcdr, libvisio, libwpg (or libwpd) and NumPy (at runtime for some extensions)

#### Optional Runtime Dependencies (for some of the Inkscape extensions)

XML::XQL

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/inkscape

## Installation of Inkscape

First, fix a problem introduced by Poppler-0.76.1.

    sed -e 's|new Lexer(xref, obj)|obj|g' -i src/extension/internal/pdfinput/pdf-parser.cpp

Ensure that the libraries from ImageMagick-6.9.10-60 libraries can be used:

    patch -Np1 -i ../inkscape-0.92.4-use_versioned_ImageMagick6-1.patch

Apply a patch to prevent out-of-bounds writes in the text and fill-bucket tools:

    patch -Np1 -i ../inkscape-0.92.4-upstream_fixes-1.patch

If you wish to run the testsuite, download the required versions of googletest and googlemock by running:

    bash download-gtest.sh

Install Inkscape by running the following commands:

    mkdir build &&
    cd    build &&

    cmake -DCMAKE_INSTALL_PREFIX=/usr \
          -DCMAKE_BUILD_TYPE=Release  \
          ..                          &&
    make

To test the results, issue: make check.

Now, as the `root` user:

    make install                      &&
    rm -v /usr/lib/inkscape/lib*_LIB.a

### Note

This package installs icon files into the `/usr/share/icons/hicolor` hierarchy and desktop files into the `/usr/share/applications` hierarchy. You can improve system performance and memory usage by updating `/usr/share/icons/hicolor/index.theme` and `/usr/share/applications/mimeinfo.cache`. To perform the update you must have GTK+-2.24.32 or GTK+-3.24.10 installed (for the icon cache) and desktop-file-utils-0.24 (for the desktop cache) and issue the following commands as the `root` user:

    gtk-update-icon-cache -qtf /usr/share/icons/hicolor &&
    update-desktop-database -q

## Command Explanations

`-DCMAKE_BUILD_TYPE=Release`: This switch is used to build the release library without any debug `assert` in the code.

`rm -v /usr/lib/inkscape/lib*_LIB.a`: The conversion of the package to use cmake has led to these libraries getting installed, but they are not usable (there are no header files to let a program know what they contain). So remove them.

`-DWITH_DBUS=ON`: use this if you wish to use inkscape in interactive scripts which manipulate images.

## Contents

Installed Programs: inkscape and inkview
Installed Library: libinkscape_base.so
Installed Directories: /usr/lib/inkscape and /usr/share/inkscape

### Short Descriptions

inkscape | an SVG (Scalable Vector Graphics) editing program.
inkview | is a simple program for displaying SVG files.
`libinkscape_base.so` | provides the routines used by inkscape and inkview.

Last updated on 2019-08-20 11:51:59 -0700

- Prev

  HexChat-2.14.2

- Next

  Pidgin-2.13.0

- Up
- Home