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-11.0 platform.
Download (HTTP): https://download.gnome.org/sources/librsvg/2.50/librsvg-2.50.7.tar.xz
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/librsvg/2.50/librsvg-2.50.7.tar.xz
Download MD5 sum: e6ac4051ef7653cd8b1e27a4da051600
Download size: 21 MB
Estimated disk space required: 1.2 GB (96 MB installed), add 1.0 GB for tests
Estimated build time: 1.0 SBU (Using parallelism=4), add 0.7 SBU for tests
gdk-pixbuf-2.42.6, Cairo-1.17.4, Pango-1.48.9, and rustc-1.52.0
gobject-introspection-1.68.0 and Vala-0.52.5
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/librsvg
Install librsvg by running the following commands:
./configure --prefix=/usr \ --enable-vala \ --disable-static \ --docdir=/usr/share/doc/librsvg-2.50.7 && make
Many of the tests in 'reftests' may fail (over half in May 2021) because they produce, and then diff, graphic files with text and the details such as spacing vary when the system versions of cairo, freetype, pixman, pango and perhaps harfbuzz differ from the versions on the system where the reference files were created. For this reason, running the tests is not recommended. To test the results anyway, issue: make check.
Now, as the root
user:
make install
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
--enable-vala
: This switch
enables building of the Vala bindings. Remove this switch if you
don't have Vala-0.52.5 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.
--enable-gtk-doc
: Use this parameter if
GTK-Doc is installed and you wish
to rebuild and install the API documentation.
Last updated on