Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-11-2004, 06:07 PM   #16
Registered: Jul 2004
Location: Rexburg, ID
Distribution: Mandrakelinux 10.0
Posts: 34

Original Poster
Rep: Reputation: 15

Ok, so I downloaded the LAME tar.gz file from KDE's site, and am looking at the INSTALL text file that it came bundled with..... it's not making any sense to me. How do I install the file encoding feature to allow Kaudio to rip into .mp3? Do I simply add the extension (ie. --enable-mp3rtp) to the end of the % ./configure command, or do I add it after the the % make install command? Or is there some other way to load it that I just don't know about?

Here's the INSTALL text below:

Compile time options
There are serveral targets which can be built from this
source code:

lame, lame.exe The command line encoder

mp3x A GTK based graphical MP3 frame analyzer. For debugging,
development, and studing MP3 frames produced by any

lame_enc.dll a Windows DLL used by many GUIs which support lame.
(Can only be compiled by MSVC???)

lame.acm a Windows ACM codec which can be used by
many windows programs, and any directshow program.
See MSVC project files in ACM directory.
Right click on lame.inf to install.

lame_enc.dshow a Windows direct show filter for lame. Potentially has
more flexability than the ACM codec, but code needs some
work. See MSVC project files in dshow directory

libmp3lame.a the static encoding library used by all platforms, required
by all the above targets. shared version of libmp3lame.a for *NIX platforms

The following compile time options can be used. For libmp3lame.a
and lame_enc.dll, none are required. On non-unix systems,
these options must be set in config.h or in the IDE.
On unix systems, they are set via ./configure.

#define HAVE_MPGLIB compile in mpglib's mp3 *decoding* capibility
#define HAVE_VORBIS compile in Vorbis decoding capibility
(you need libvorbis already built)
#define NOANALYSIS do not compile in hooks used by the
MP3 frame analyzer.

Options for the command line encoder:
#define LIBSNDFILE to use Erik de Castro Lopo's libsndfile
for input.
#define BRHIST to allow the optional display of the VBR histogram

Building the software on *NIX platforms using configure:
Run the following commands:

% ./configure
% make
% make install

For a complete list of options, try "./configure --help"
Some of the more usefull options:

For the encoding library:

--enable-mp3x Build the mp3 frame analyzer, 'mp3x'

--enable-mp3rtp Build the encode-to-RTP program, 'mp3rtp'
(broken as of August 2001)

For the LAME front end encoder:

--with-fileio=lame Use lame's internal file io routines [default]
=sndfile Use Erik de Castro Lopo's libsndfile
(Supports many more input formats, but no stdin possible currently)

--with-sndfile-prefix=DIR Alternate location for libsndfile
(if --with-fileio=sndfile)

--enable-brhist Include the VBR bitrate histogram feature
(default:yes if any ncurses/termcap available)"

Other usefull configure options:

--enable-debug Build a debug version

--enable-expopt Enable some more optimizations flags for
the compiler, may or may not produce
faster code

--prefix = PATH default is /usr/local
(LAME currently installs:

--with-vorbis Enable Ogg Vorbis decoding support
--with-vorbis-prefix = PATH specify where to find Vorbis libs

Some more advanced ways to influence the build procedure
(experienced users only, use it at your own risk):

- If you want to use some custom defines for building (e.g. some out
of the file "DEFINES") use:

* bourne shell or compatible (ash, bash, zsh, ...):
CONFIG_DEFS="-Dmy_define" ./configure

* C shell or compatible (csh, tcsh, ...):
setenv CONFIG_DEFS "-Dmy_define"

- If you want to use some additional options for the compiler:

* bourne shell or compatible (ash, bash, zsh, ...):
CFLAGS="--my_flag" ./configure

* C shell or compatible (csh, tcsh, ...):
setenv CFLAGS "--my_flag"

Or some combination of the above.

If configure detects the presents of "nasm" some additional speed
improvements get compiled in (additional assembler code to detect
and use multimedia extensions of the used processor).

PS. How do you implement these commands? Typing % ./configure--help into the Run Command box just threw an error on me.

Last edited by theAntic; 07-11-2004 at 06:12 PM.
Old 07-12-2004, 01:38 AM   #17
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,292

Rep: Reputation: 65
you don't have to do any of that hard stuff. just ./configure then make then make install. When the other program tries to run lame, it will then be able to. and you would have needed a space between configure and --help. ./configure --help. but you don't need that.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Konqueror can't read audio cds Abstruse Linux - Software 1 07-13-2005 02:22 AM
Listening to music? Not me! (can't play or rip audio CDs) NetRAVEN5000 Slackware 21 06-19-2005 06:57 PM
CDs skip(?) with DAE, rip improperly mithrascruor Linux - General 0 04-29-2005 10:33 AM
Second cd drive can't read audio CDs? Zoe F Mandriva 6 10-27-2004 05:44 PM
Can't read audio cds in xmms !!! Anmar Linux - Newbie 29 09-21-2003 04:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration