Linux HOWTOs

About | Home | Search


HOWTO: libavc1394
Description: API for the 1394 Trade Association AV/C Digital Interface Command Set
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


# libavc1394 0.5.3
# ================
# gawk
# sed
# grep
# pkg-config
# libraw1394

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

# Become root to install it
su

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

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libavc1394-*.tar.*
mv libavc1394-0.5.3.tar.gz installed/


# If you ever want to uninstall libavc1394, this should do it:
cd
su
test -d src/libavc1394-* && ( cd src/libavc1394-* ; make uninstall )
( /usr/local/bin ; rm -f dvcont mkrfc2734 panelctl )
test -d /usr/local/include/libavc1394 &&
 rm -r /usr/local/include/libavc1394
( cd /usr/local/lib ; rm -f libavc1394.* librom1394.* )
( cd /usr/local/man/man1 ; rm -f dvcont.1 mkrfc2734.1 panelctl.1 )
rm -f /usr/local/lib/pkgconfig/libavc1394.pc
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libavc1394-*" -exec rm -r {} \;
rm -f ~/installed/libavc1394-*.tar.*

Back to the list


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