Linux HOWTOs

About | Home | Search


HOWTO: imlib2
Description: The successor to imlib; an image processing (load/save/render/...) library
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# Imlib2 1.4.0
# ============
# Slackware 9.1, 10.0, 10.1, 10.2, 11.0, and 12.0 include imlib, but not imlib2

# Prerequisites:
# Freetype
# XFree86 or X.org
# libjpeg
# libpng
# libtiff
# libungif
# zlib
# bzip2
# libid3tag (optional)

cd
test -f installed/imlib2-1.4.0.tar.gz && mv installed/imlib2-1.4.0.tar.gz .
test ! -f imlib2-1.4.0.tar.gz &&
 wget http://downloads.sf.net/enlightenment/imlib2-1.4.0.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "imlib2-*" -exec rm -r {} \;
tar xzvf ~/imlib2-1.4.0.tar.gz
cd imlib2-1.4.0
test $UID = 0 && chown -R root:root .
./configure
make

# Become root to install it
su

rm -f /usr/local/lib/libImlib2.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/imlib2-*.tar.*
mv imlib2-1.4.0.tar.gz installed/


# If you ever want to uninstall Imlib2, this should do it:
cd
su
test -d src/imlib2-* && ( cd src/imlib2-* ; make uninstall )
test -d /usr/local/lib/imlib2 && rm -r /usr/local/lib/imlib2
test -d /usr/local/share/imlib2 && rm -r /usr/local/share/imlib2
( cd /usr/local/bin ; rm -f imlib2_* imlib2-config )
rm -f /usr/local/lib/libImlib2.la /usr/local/include/Imlib2.h \
 /usr/local/lib/pkgconfig/imlib2.pc
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "imlib2-*" -exec rm -r {} \;
rm -f ~/installed/imlib2-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>