Re: Arm cross compile

Andrew Douglas <[email protected]> Sun, 13 Mar 2005 05:02:07 -0500
Newsgroups gmane.comp.audio.mad.devel
Message-ID <[email protected]>
Hi

Thanks for your advice but I checked and mad.h and id3tag.h are both
already in /usr/local/include and libmad* is in /usr/local/lib.

I've tried

# RANLIB=arm-linux-ranlib CC=arm-linux-gcc ./configure
--host=arm-linux CFLAGS="-I/usr/local/include -L/usr/local/lib"

and although it gets past mad.h:

checking mad.h usability... yes
checking mad.h presence... no
configure: WARNING: mad.h: accepted by the compiler, rejected by the
preprocessor!
configure: WARNING: mad.h: proceeding with the compiler's result
checking for mad.h... yes

its stil complains about libmad:

checking for mad_decoder_run in -lmad... no
configure: error: libmad was not found

Any Ideas

TIA

Andy Douglas
 


On Sun, 13 Mar 2005 07:16:14 +0100, pmisteli <[email protected]> wrote:
> 
> On 2005 Mar 12, at 22:47, Andrew Douglas wrote:
> 
> > Hi
> >
> > I wonder if anyone can help. I'm trying to cross compile
> > madplay-0.15.2b for an arm9 processor running a 2.4.18 kernel. I'm
> > building the source on a redhat9 host. I do the following:
> >
> > $ ./configure && make && make install
> >
> > for libmad and libid3tag. Then I try configuring madplay with the
> > following command:
> >
> > $ RANLIB=arm-linux-ranlib CC=arm-linux-gcc ./configure --host=arm-linux
> >
> > and get the following error:
> >
> > checking mad.h usability... no
> > checking mad.h presence... no
> > checking for mad.h... no
> > configure: error: mad.h was not found
> > *** You must first install libmad before you can build this package.
> >
> > I include the libmad dir with CFLAG and then it complains about
> > libid3. I include this then it complains:
> >
> > configure: error: libmad was not found
> >
> > This doesn't seem right. Is there something I've done wrong.
> >
> > Any hints would be appreciated.
> >
> > TIA
> >
> > Andy Douglas
> >
> >
> 
> Hello,
> 
> Here is a hint :
> 
> check the libmad  installation :
> 
>         find /usr/local -name mad.h
> 
> If mad.h is not there, you might not have permissions for /usr/local,
> you may need to do
> 
>         sudo make install
> 
> for libmad (and libid3).
> 
> Hope this helps,
> pmisteli
> 
>