Linux HOWTOs

About | Home | Search


HOWTO: libexif
Description: Library for parsing, editing, and saving EXIF data
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


# libexif
# =======
# Slackware 9.0's 'libexif' package includes version 0.5.9, 9.1 and 10.0's
# include 0.5.12, 10.1's includes 0.6.11, and 10.2's includes 0.6.12

# Some apps that use libexif are The Gimp, gphoto2, and ImageMagick

# Prerequisites:
# gawk
# sed
# grep
# gettext
# pkg-config

# There are two versions of libexif here, the latest in the 0.6.x series and
# the latest in the 0.5.x series.  The latter is for apps like gphoto2 that
# don't build against 0.6.x - though the last time I built it, it worked
# just fine with 0.6.x  As of libexif-gtk version 0.3.5, it will build
# against libexif 0.5.x and 0.6.x

# libexif-gtk is at the bottom


# libexif 0.6.13
# ==============
cd
test -f installed/libexif-0.6.13.tar.bz2 &&
 mv installed/libexif-0.6.13.tar.bz2 .
test ! -f libexif-0.6.13.tar.bz2 &&
 wget http://download.sf.net/libexif/libexif-0.6.13.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libexif-*" -exec rm -r {} \;
tar xjvf ~/libexif-0.6.13.tar.bz2
cd libexif-0.6.13
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib \
 --disable-nls
make

# Become root to install it
su

removepkg libexif
rm -f /usr/lib/libexif.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libexif-*.tar.*
mv libexif-0.6.13.tar.bz2 installed/

# If you ever need to uninstall libexif, cd into the source directory, run
# 'make uninstall', remove that directory, then remove the tarball


# libexif 0.5.12
# ==============
cd
test -f installed/libexif-0.5.12.tar.gz &&
 mv installed/libexif-0.5.12.tar.gz .
test ! -f libexif-0.5.12.tar.gz &&
 wget http://download.sf.net/libexif/libexif-0.5.12.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libexif-*" -exec rm -r {} \;
tar xzvf ~/libexif-0.5.12.tar.gz
cd libexif-0.5.12
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib \
 --disable-nls
make

# Become root to install it
su

removepkg libexif
rm -f /usr/lib/libexif.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libexif-*.tar.*
mv libexif-0.5.12.tar.gz installed/

# If you ever need to uninstall libexif, cd into the source directory, run
# 'make uninstall', remove that directory, then remove the tarball


# libexif-gtk 0.3.5
# =================
# Prerequisites (beyond those listed above):
# libiconv
# bison

cd
test -f installed/libexif-gtk-0.3.5.tar.bz2 &&
 mv installed/libexif-gtk-0.3.5.tar.bz2 .
test ! -f libexif-gtk-0.3.5.tar.bz2 &&
 wget http://download.sf.net/libexif/libexif-gtk-0.3.5.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libexif-gtk-*" -exec rm -r {} \;
tar xjvf ~/libexif-gtk-0.3.5.tar.bz2
cd libexif-gtk-0.3.5
test $UID = 0 && chown -R root:root .

# Apply this patch if you have libexif >= 0.6.13 installed:
wget -nc http://englanders.cc/pub/linux/patches/\
libexif-gtk-0.3.5-libexif-0.6.13.patch &&
 patch -p0 < libexif-gtk-0.3.5-libexif-0.6.13.patch
autoreconf -f -i

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib \
 --disable-nls
make

# Become root to install it
su

rm -f /usr/lib/libexif-gtk.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libexif-gtk-*.tar.*
mv libexif-gtk-0.3.5.tar.bz2 installed/

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>