#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-491

### Chapter 10. Graphics and Font Libraries

- Prev

  libraw-0.22.1

- Next

  Libspiro-20220722

- Up
- Home

# librsvg-2.62.1

## Introduction to librsvg

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

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

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

- Download MD5 sum: 3469f8635f571fe7f294c0eec9fbe426

- Download size: 6.5 MB

- Estimated disk space required: 1.8 GB (with tests; 22 MB installed)

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

### librsvg Dependencies

#### Required

Cairo-1.18.4, cargo-c-0.10.21, and Pango-1.57.1

### Note

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

#### Recommended

gdk-pixbuf-2.44.6, GLib-2.88.0 (with GObject Introspection), and Vala-0.56.19

#### Optional

dav1d-1.5.3 (to support embedded AVIF in SVG), docutils-0.22.4 (for man pages), and Gi-DocGen-2026.1 (for documentation)

## Installation of librsvg

First, fix the installation path of the API documentation:

    sed -e "/OUTDIR/s|,| / 'librsvg-2.62.1', '--no-namespace-dir',|" \
        -e '/output/s|Rsvg-2.0|librsvg-2.62.1|'                      \
        -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:

    meson test -v

Now, as the `root` user:

    ninja install

## Contents

Installed Programs: rsvg-convert
Installed Library: librsvg-2.so
Installed Directories: /usr/include/librsvg-2.0 and /usr/share/doc/librsvg-2.62.1

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

- Prev

  libraw-0.22.1

- Next

  Libspiro-20220722

- Up
- Home