librsvg-2.56.0

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 dependencies have been updated since the most recent stable versions of the book.

Package Information

librsvg Dependencies

Required

Cairo-1.17.6, gdk-pixbuf-2.42.10, Pango-1.50.14, and rustc-1.69.0

[Note]

Note

An Internet connection is needed for building this package.

Recommended

Optional

docutils-0.19 (for man pages), Gi-DocGen-2023.1 (for documentation), and Xorg Fonts (for tests)

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/librsvg

Installation of librsvg

Install librsvg by running the following commands:

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

To test the results, issue: make -k check. During testing some binaries are rebuilt with a different debug level, so you should run make again after the tests are complete to ensure everything is ready to be installed.

Now, as the root user:

make install
[Note]

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.7 installed.

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

--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-2023.1 (despite the name of the option) is available.

Contents

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

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