The glycin package contains a sandboxed and extendable image loading framework.
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.
Download (HTTP): https://download.gnome.org/sources/glycin/2.0/glycin-2.0.7.tar.xz
Download MD5 sum: 14ea548305203fc0ab09d7a39ba303ec
Download size: 6.3 MB
Estimated disk space required: 1.1 GB (additional 775 MB for tests)
Estimated build time: 6.4 SBU (additional 9.5 SBU for tests)
Recommended patch (required if installing Xorg into
/opt):
https://www.linuxfromscratch.org/patches/blfs/svn/glycin-2.0.7-xorg_prefix-1.patch
bubblewrap-0.11.0 (runtime), Fontconfig-2.17.1, GLib-2.86.1 (GObject Introspection recommended), Little CMS-2.17, libseccomp-2.6.0, and rustc-1.91.0
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.
libheif-1.20.2, libjxl-0.11.1, librsvg-2.61.3, and Vala-0.56.18
Gi-DocGen-2025.5, GTK-4.20.2 (for
libglycin-gtk4 and the test suite),
and libopenraw
If installing Xorg into /opt,
download the needed Rust crates now and apply a patch to allow
accessing $XORG_PREFIX/lib from the
sandbox (note that the patch requires XORG_PREFIX set properly for the current user and
root following Xorg build environment
before building glycin):
cargo vendor && patch -Np1 -i ../glycin-2.0.7-xorg_prefix-1.patch
Install glycin by running the following commands:
mkdir build &&
cd build &&
meson setup --prefix=/usr \
--buildtype=release \
-D libglycin-gtk4=false \
-D tests=false &&
ninja
If you have installed Gi-DocGen-2025.5, you can build the documentation by issuing:
sed "/install_dir:.*doc/s|,$| / 'glycin-' + meson.project_version()&|" \
-i ../libglycin/meson.build &&
meson configure -D capi_docs=true &&
ninja
To test the results, ensure GTK-4.20.2 is installed, then issue: meson configure -D tests=true && ninja test.
Now as the root user:
ninja install
-D glycin_gtk4=false: This
parameter disables the build of libglycin-gtk4 (which is not used by any BLFS
packages yet) so this package can be built without GTK-4.20.2 installed.
-D glycin-loaders=...: Use this option
to specify the image loaders to be built. The default is
glycin-heif,glycin-image-rs,glycin-jxl,glycin-svg,
covering the support for all commonly used image formats. You may
remove the glycin-heif, glycin-jxl, or glycin-svg loader if the corresponding recommended
dependency is not installed, but doing so will cause test failures
and hamper the functionality of this package. There are also
loaders for the JPEG 2000 and RAW formats but they are not enabled
by default.
-D vapi=false: This option allows
building this package without Vala-0.56.18 installed.