Introduction to Imlib2

Imlib2 is a graphics library for fast file loading, saving, rendering and manipulation.

This package is known to build and work properly using an LFS-7.5 platform.

Package Information

Imlib2 Dependencies


Xorg Libraries


libpng-1.6.9, libjpeg-turbo-1.3.0, LibTIFF-4.0.3, giflib-5.0.5, and libid3tag

User Notes:

Installation of Imlib2

Install Imlib2 by running the following commands:

sed -i '/DGifOpen/s:fd:&, NULL:' src/modules/loaders/loader_gif.c &&
sed -i 's/@my_libs@//' &&
./configure --prefix=/usr --disable-static &&

This package does not come with a test suite.

Now, as the root user:

make install &&
install -v -m755 -d /usr/share/doc/imlib2-1.4.6 &&
install -v -m644    doc/{*.gif,index.html} \

Command Explanations

sed -i ...: First command fixes building with recent versions of Giflib and the second one corrects linker flags for libImlib2 usage.

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


Installed Programs: imlib2_bumpmap, imlib2_colorspace, imlib2-config, imlib2_conv, imlib2_grab, imlib2_poly, imlib2_show, imlib2_test, and imlib2_view
Installed Libraries: and various filters and image loader modules.
Installed Directories: /usr/lib/imlib2, /usr/share/doc/imlib2-1.4.6, and /usr/share/imlib2

Short Descriptions

provides the functions for programs to deal with various image data formats.

Last updated on 2014-02-20 04:20:28 -0800