[mad-user] Question about madplay, libmad and libid3tag

Rob Leslie rob at mars.org
Mon Sep 28 13:13:37 PDT 2009


On Sep 27, 2009, at 6:52 PM, Kiran Biswal wrote:
>  I am new user of  MAD. I am trying to compile MAD on my platform  
> (MIPS based). When I  try to run the ./confogure from commandline it  
> prompts me to point to the libmad and libid3tag which are in  
> separate directories, so I  give path to both libmad and libid3tag   
> like below from the directory where madplay-0.15.2b is kept
>
> ./configure CPPFLAGS=-I/root/Music/audioplayer/libmad/libmad-0.15.1b  
> CPPFLAGS=-I/root/Music/audioplayer/libid3tag/libid3tag-0.15.1b  
> LDFLAGS=-L/root/Music/audioplayer/libmad/libmad-0.15.1b LDFLAGS=-L/ 
> root/Music/audioplayer/libid3tag/libid3tag-0.15.1b
>
> But it still complains that it can not find mad.h and I must first  
> install libmad .
>
> Could you please tell me how to point to libmad and lib3tag at the  
> same time?

The usual way to build and install is:

   % cd libmad-0.15.1b
   % ./configure
   % make
   # make install

   % cd ../libid3tag-0.15.1b
   % ./configure
   % make
   # make install

   % cd ../madplay-0.15.2b
   % ./configure
   % make
   # make install

(The order is important; you must install libmad and libid3tag before  
configuring madplay.)

The default is to install under /usr/local, i.e. /usr/local/include  
for header files, /usr/local/lib for shared library files, and /usr/ 
local/bin for executables.

If you want to install somewhere else (e.g. /opt/mad), you can do so  
like this:

   % cd libmad-0.15.1b
   % ./configure --prefix=/opt/mad
   % make
   # make install

   % cd ../libid3tag-0.15.1b
   % ./configure --prefix=/opt/mad
   % make
   # make install

   % cd ../madplay-0.15.2b
   % ./configure --prefix=/opt/mad CPPFLAGS=-I/opt/mad/include  
LDFLAGS=-L/opt/mad/lib
   % make
   # make install

-- 
Rob Leslie
rob at mars.org




More information about the mad-user mailing list