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

Package Information

Imlib2 Dependencies


Xorg Libraries


libpng-1.6.16, libjpeg-turbo-1.4.0, LibTIFF-4.0.3, giflib-5.1.1, and libid3tag

User Notes:

Installation of Imlib2

Install Imlib2 by running the following commands:

sed -i 's/@my_libs@//'    &&
sed -e '/DGifOpen/s:fd:&, NULL:'           \
    -e '/DGifCloseFile/s:gif:&, NULL:'     \
    -i src/modules/loaders/loader_gif.c    &&

./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 ...: The first command fix 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 2015-03-02 14:33:58 -0800