#### Beyond Linux® From Scratch (System V Edition) - Version 12.3

### Chapter 10. Graphics and Font Libraries

- Prev

  libraw-0.21.3

- Next

  Libspiro-20220722

- Up
- Home

# librsvg-2.59.2

## 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.3 platform.

### Package Information

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

- Download MD5 sum: 6d495c8bb2ee0cb0a62856c790a67298

- Download size: 6.3 MB

- Estimated disk space required: 1.2 GB (17 MB installed), add 492 MB for tests

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

### librsvg Dependencies

#### Required

Cairo-1.18.2, cargo-c-0.10.11, gdk-pixbuf-2.42.12, Pango-1.56.1, and rustc-1.85.0

### Note

An Internet connection is needed for building this package. The system certificate store may need to be set up with make-ca-1.15 before building this package.

#### Recommended

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

#### Optional

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

## Installation of librsvg

First, fix the installation path of the API documentation:

    sed -e "/OUTDIR/s|,| / 'librsvg-2.59.2', '--no-namespace-dir',|" \
        -e '/output/s|Rsvg-2.0|librsvg-2.59.2|'                      \
        -i doc/meson.build

Install librsvg by running the following commands:

    mkdir build &&
    cd    build &&

    meson setup --prefix=/usr --buildtype=release .. &&
    ninja

To test the results, issue:

    ninja test

One test, Rust tests (rsvg), is known to fail.

Now, as the `root` user:

    ninja install

## 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.59.2

### 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.3

- Next

  Libspiro-20220722

- Up
- Home