FLAC-1.5.0

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 7. Audio

- Prev

  libvorbis-1.3.7

- Next

  Opus-1.6.1

- Up
- Home

# FLAC-1.5.0

## Introduction to FLAC

FLAC is an audio CODEC similar to MP3, but lossless, meaning that audio is compressed without losing any information.

- Download: https://github.com/xiph/flac/releases/download/1.5.0/flac-1.5.0.tar.xz

### FLAC Dependencies

Optional
libogg-1.3.6, 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.5.0 &&

    make

Now, as the `root` user:

    make install

## lib32 Installation of FLAC

Install lib32-FLAC by running the following commands:

    make distclean &&
    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

### Note

Run ./configure --help for a full list of options.

`--disable-thorough-tests`: This parameter is used so that only basic tests are built. Tests can't be fully disabled.

## Contents

Installed Programs: flac and metaflac
Installed Libraries: libFLAC and libFLAC++
Installed Directories: /usr/include/FLAC, /usr/include/FLAC++ and /usr/share/doc/flac-1.5.0

### 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{,++}` | these libraries provide native FLAC and Ogg FLAC C/C++ APIs for programs utilizing FLAC

- Prev

  libvorbis-1.3.7

- Next

  Opus-1.6.1

- Up
- Home