Linux HOWTOs

About | Home | Search


HOWTO: libdvdnav
Description: DVD menu navigation 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


# libdvdnav 0.1.10
# ================
# Prerequisites:
# autoconf, automake, and libtool (if you have to run autoreconf below)
# doxygen (optional)

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

# The build system is set up for automake 1.6 (1.10 is current as I write
# this).  If you don't have automake 1.6 installed, run this to quiet build
# complaints:
autoreconf -f -i

./configure
make

# Become root to install it
su

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

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libdvdnav-*.tar.*
mv libdvdnav-0.1.10.tar.gz installed/


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

Back to the list


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