LAME-3.100

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

### Chapter 22. GS

- Prev

  fdk-aac-2.0.3

- Next

  libvpx-1.16.0

- Up
- Home

# LAME-3.100

## Introduction to LAME

The LAME package contains an MP3 encoder and optionally, an MP3 frame analyzer. This is useful for creating and analyzing compressed audio files.

- Download: https://downloads.sourceforge.net/lame/lame-3.100.tar.gz

### LAME Dependencies

Optional
Dmalloc, Electric Fence, libsndfile-1.2.2 and NASM-3.01

## Installation of LAME

Prevent the source code directory from being mistakenly hardcoded as a shared library search path in the installed programs:

    sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure

Install LAME by running the following commands:

    ./configure --prefix=/usr   \
                --enable-mp3rtp \
                --disable-static &&

    make

Now, as the `root` user:

    make pkghtmldir=/usr/share/doc/lame-3.100 install

## lib32 Installation of LAME

Install lib32-LAME by running the following commands:

    make distclean &&
    CC="gcc -m32" CXX="g++ -m32"         \
    PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
    ./configure --prefix=/usr            \
                --libdir=/usr/lib32      \
                --host=i686-pc-linux-gnu \
                --enable-mp3rtp          \
                --disable-static         \
                --enable-nasm &&

    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.

`--enable-mp3rtp`: This switch enables building the encode-to-RTP program.

`--disable-static`: This switch prevents installation of static versions of the libraries.

`--enable-nasm`: This option enables the use of NASM-3.01 to compile optimized assembly routines for 32-bit. This is not enabled for x86_64 as it has no effect.

## Contents

Installed Programs: lame and mp3rtp
Installed Library: libmp3lame
Installed Directories: /usr/include/lame and /usr/share/doc/lame-3.100

### Short Descriptions

lame | creates MP3 audio files from raw PCM or `.wav` data
mp3rtp | is used to encode MP3 with RTP streaming of the output
`libmp3lame` | provides the functions necessary to convert raw PCM and WAV files to MP3 files

- Prev

  fdk-aac-2.0.3

- Next

  libvpx-1.16.0

- Up
- Home