Linux HOWTOs

About | Home | Search


HOWTO: libwmf
Description: Library for converting WMF (Window$ Metafile Format) files
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


# libwmf 0.2.8.4
# ==============
# Slackware 10.0 and 10.1's 'libwmf' and 'libwmf-docs' packages include
# version 0.2.8.2, 10.2's includes 0.2.8.3

# Prerequisites:
# gawk
# sed
# grep
# XFree86 or X.org
# expat
# freetype
# zlib
# libpng
# libjpeg
# GD
# pkg-config
# glib's gdk-pixbuf (for the gdk-pixbuf plug-in)

# This used to be covered in the wv howto, move files from ~/installed/wv/
# into the right place, remove source directories in there:
mv ~/installed/wv/libwmf-*.tar.* ~/installed/
find ~/src/wv -maxdepth 1 -type d -name "wv-*" -exec rm -r {} \;

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

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg libwmf
( cd /usr/local/lib ; rm -f libwmf.* libwmf-*.so.* libwmflite.* \
  libwmflite-*.so.* )
make install
ldconfig
chown -R $USER .

# Become yourself again
exit

cd
rm -f installed/libwmf-*.tar.gz
mv libwmf-0.2.8.4.tar.gz installed/

# If you ever want to uninstall libwmv, cd into the source directory, run
# 'make uninstall', remove the source directory, then remove the tarball

Back to the list


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