librsvg-2.58.3

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

### Chapter 10. Graphics and Font Libraries

- Prev

  libraw-0.21.2

- Next

  Libspiro-20220722

- Up
- Home

# librsvg-2.58.3

## Introduction to librsvg

The librsvg package contains a library and tools used to manipulate, convert and view Scalable Vector Graphic (SVG) images.

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

### Package Information

- Download (HTTP): https://download.gnome.org/sources/librsvg/2.58/librsvg-2.58.3.tar.xz

- Download MD5 sum: 8f954b5c25ffff602b4e62813c98c8c9

- Download size: 5.9 MB

- Estimated disk space required: 723 MB (17 MB installed), add 545 MB for tests

- Estimated build time: 0.7 SBU (add 0.7 SBU for tests; both using parallelism=4)

### librsvg Dependencies

#### Required

Cairo-1.18.0, gdk-pixbuf-2.42.12, Pango-1.54.0, and rustc-1.80.1

### Note

An Internet connection is needed for building this package.

#### Recommended

GLib-2.80.4 (with GObject Introspection) and Vala-0.56.17

#### Optional

docutils-0.21.2 (for man pages), Gi-DocGen-2024.1 (for documentation), and Xorg Fonts (for tests)

## Installation of librsvg

Install librsvg by running the following commands:

    ./configure --prefix=/usr    \
                --enable-vala    \
                --disable-static \
                --docdir=/usr/share/doc/librsvg-2.58.3 &&
    make

To test the results, issue:

    cargo update --precise 0.3.36 time &&
    LC_ALL=C make check -k

All 68 tests should pass.

Now, as the `root` user:

    make DOC_INSTALL_DIR='$(docdir)' install

### Note

If you installed the package on to your system using a “DESTDIR” method, an important file was not installed and should be copied and/or generated. Generate it using the following command as the `root` user:

    gdk-pixbuf-query-loaders --update-cache

## Command Explanations

`--enable-vala`: This switch enables building of the Vala bindings. Remove this switch if you don't have Vala-0.56.17 installed.

`--disable-static`: This switch prevents installation of static versions of the libraries.

`DOC_INSTALL_DIR='$(docdir)'`: This override ensures installing the API documentation into the expected location if Gi-DocGen-2024.1 is installed.

cargo update --precise=0.3.36 time: This updates the `Cargo.lock` file to refer to version 0.3.36 of the time crate for the test suite. Originally it refers to version 0.3.34, which fails to build with Rustc-1.80.0 or later.

`--disable-introspection`: Use this switch if you have not installed Gobject Introspection.

`--disable-gtk-doc`: This switch prevents building the API documentation, even if Gi-DocGen-2024.1 (despite the name of the option) is available.

## Contents

Installed Programs: rsvg-convert
Installed Library: librsvg-2.so and libpixbufloader-svg.so (installed in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders)
Installed Directories: /usr/include/librsvg-2.0 and /usr/share/doc/librsvg-2.58.3

### Short Descriptions

rsvg-convert | is used to convert images into PNG, PDF, PS, SVG and other formats
`librsvg-2.so` | provides the functions to render Scalable Vector Graphics
`libpixbufloader-svg.so` | is the Gdk Pixbuf plugin that allows GTK+ applications to render Scalable Vector Graphics images

- Prev

  libraw-0.21.2

- Next

  Libspiro-20220722

- Up
- Home