The LAME package contains an MP3 encoder and optionally, an MP3 frame analyzer. This is useful for creating and analyzing compressed audio files.
This package is known to build and work properly using an LFS-7.9 platform.
Download (HTTP): http://downloads.sourceforge.net/lame/lame-3.99.5.tar.gz
Download MD5 sum: 84835b313d4a8b68f5349816d33e07ce
Download size: 1.4 MB
Estimated disk space required: 11 MB
Estimated build time: 0.3 SBU
Dmalloc, Electric Fence, libsndfile-1.0.26 and NASM-2.11.08
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/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 ;; esac
Install LAME by running the following commands:
./configure --prefix=/usr --enable-mp3rtp --disable-static && make
To test the results, issue: make test.
Now, as the root
user:
make pkghtmldir=/usr/share/doc/lame-3.99.5 install
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
: This
switch prevents installation of static versions of the libraries.
--enable-nasm
: Enable the use of
NASM-2.11.08 to compile optimized assembly
routines.
Last updated on 2016-02-24 00:06:22 -0800