Introduction to FLAC
FLAC is an audio CODEC similar to
MP3, but lossless, meaning that audio is compressed without losing
any information.
FLAC Dependencies
Optional
libogg-1.3.5,
DocBook-utils, Doxygen,
and Valgrind
Installation of FLAC
Install FLAC by running the
following commands:
./configure --prefix=/usr \
--disable-thorough-tests \
--docdir=/usr/share/doc/flac-1.4.3 &&
make
To test the results, issue: make
check. Note that if you passed the --enable-exhaustive-tests
and --enable-valgrind-testing
parameters to
configure and then
run the test suite, it will take a very long time (up to 300 SBUs) and use
about 375 MB of disk space.
Now, as the root
user:
make install
32-bit Installation of FLAC
First clean the directory:
make distclean
Install lib32-FLAC by running the
following commands:
CC="gcc -m32" CXX="g++ -m32" \
CFLAGS="-L/usr/lib32" CXXFLAGS="-L/usr/lib32" \
./configure --prefix=/usr \
--libdir=/usr/lib32 \
--host=i686-pc-linux-gnu \
--disable-thorough-tests &&
make
Now, as the root
user:
make DESTDIR=$PWD/DESTDIR install &&
cp -vr DESTDIR/usr/lib32/* /usr/lib32 &&
rm -rf DESTDIR &&
ldconfig
Command Explanations
--disable-thorough-tests
:
This parameter is used so that the test suite will complete in a
reasonable amount of time. Remove it if you desire more extensive
tests.
Contents
Installed Programs:
flac and metaflac
Installed Libraries:
libFLAC.so and libFLAC++.so
Installed Directories:
/usr/include/FLAC, /usr/include/FLAC++
and /usr/share/doc/flac-1.4.3
Short Descriptions
flac
|
is a command-line utility for encoding, decoding and
converting FLAC files
|
metaflac
|
is a program for listing, adding, removing, or editing
metadata in one or more FLAC files
|
libFLAC{,++}.so
|
these libraries provide native FLAC and Ogg FLAC C/C++
APIs for programs utilizing FLAC
|