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.

本パッケージは LFS-8.1 において正しくビルドでき動作することが確認されています。

Package Information

LAME Dependencies


Dmalloc, Electric Fence, libsndfile-1.0.28 and NASM-2.13.01

User Notes:

Installation of LAME

First, fix a compiler error introduced by gcc-4.9.0 on 32-bit machines:

case $(uname -m) in
   i?86) sed -i -e '/xmmintrin\.h/d' configure ;;

Install LAME by running the following commands:

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

To test the results, issue: make test.

Now, as the root user:

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

Command Explanations

sed -i -e '/xmmintrin\.h/d' configure : with gcc-4.9.0 and above, the compiler issues an error on 32-bit machines, while compiling xmm_quantize_sub.c. The error message is: error: inlining failed in call to always_inline '_mm_loadu_ps'. This sed makes it appear as if xmmintrin.h is not present. Do not use this on other versions of gcc.

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

--disable-static: このスイッチはスタティックライブラリをインストールしないようにします。

--enable-nasm: Enable the use of NASM-2.13.01 to compile optimized assembly routines.


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

Short Descriptions


creates MP3 audio files from raw PCM or .wav data.


is used to encode MP3 with RTP streaming of the output.

libraries provide the functions necessary to convert raw PCM and WAV files to MP3 files.

最終更新日: 2017-08-22 11:54:38 +0900