Linux HOWTOs

About | Home | Search


HOWTO: libquicktime
Description: Library for reading and writing quicktime 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


# libquicktime
# ============
# I include two versions below.  The latest stable release and
# instructions for installing it from CVS.

# If you want to uninstall libquicktime or if you need to downgrade to the
# stable or rc versions from the CVS version, skip down to the bottom for
# uninstall instructions.

# Prerequisites (for either version):
# Vorbis
# lame
# XFree86 or X.org
# pkg-config
# ALSA >= 0.9
# GTK+ >= 2.4.0
# libdv >= 0.102
# jpeg
# libpng
# ffmpeg's libavcodec


# libquicktime 0.9.10
# ===================
# Prerequisites (beyond those listed above):
# jpeg-mmx
# libraw1394 (for firewire support)
# libavc1394 (for firewire support)
# faac (if --enable-gpl)
# faad2 (if --enable-gpl)

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

# I had to change two occurances of i_rf_constant in plugins/x264/x264.c
# to f_rf_constant.  I've read that the CVS version already includes that
# fix, it's due to a change in recent versions of x264.

./configure --enable-gpl
make

# Become root to install it
su

rm -f /usr/local/lib/libquicktime.*
make install
ldconfig
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libquicktime-*.tar.* installed/libquicktime.README
mv libquicktime-0.9.10.tar.gz installed/


# libquicktime CVS
# ================
# Prerequisites (in addition to those listed above):
# autoconf
# automake
# libtool
# faac (if --enable-gpl)
# faad2 (if --enable-gpl)

cd
rm -f installed/libquicktime-*.tar.*
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libquicktime-*" -exec rm -r {} \;
test -d libquicktime && ( cd libquicktime ; cvs update )
test ! -d libquicktime &&
 ( cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/libquicktime login
   # Hit enter for the password
   cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/libquicktime co \
    libquicktime )
cd libquicktime
test $UID = 0 && chown -R root:root .
./autogen.sh
./configure --enable-gpl
make

# Become root to install it
su

( cd /usr/local/lib ; rm -f libquicktime.* libquicktime_mjpeg.* )
make install
ldconfig

# Become yourself again
exit

cd
echo 'libquicktime was installed from CVS' > installed/libquicktime.README
echo '~/src/libquicktime' >> installed/libquicktime.README
chmod 600 installed/libquicktime.README


# If you ever want to uninstall libquicktime, this should do it:
cd
su
test -d src/libquicktime-* && ( cd src/libquicktime-* ; make uninstall )
test -d src/libquicktime && ( cd src/libquicktime ; make uninstall )
( cd /usr/local/bin ; rm -f libquicktime_config lqt_config lqt_transcode \
 lqtplay qtdechunk qtdump qtinfo qtrechunk qtstreamize qtyuv4toyuv )
test -d /usr/local/include/lqt && rm -r /usr/local/include/lqt
test -d /usr/local/lib/libquicktime && rm -r /usr/local/lib/libquicktime
rm -f /usr/local/lib/libquicktime.* \
 /usr/local/lib/pkgconfig/libquicktime.pc /usr/local/man/man1/lqtplay.1 \
 /usr/local/share/aclocal/lqt.m4
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libquicktime-*" -exec rm -r {} \;
test -d ~/src/libquicktime && rm -r ~/src/libquicktime
rm -f ~/installed/libquicktime-*.tar.* ~/installed/libquicktime.README

Back to the list


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