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.

[Note]

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

librsvg Dependencies

Required

Cairo-1.18.2, cargo-c-0.10.7, gdk-pixbuf-2.42.12, Pango-1.55.0, and rustc-1.83.0

[Note]

Note

An Internet connection is needed for building this package.

Recommended

Optional

docutils-0.21.2 (for man pages), Gi-DocGen-2024.1 (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