Re: LAME 3.99.5: Friendly ARM 9.0 Application

Alexander Leidinger <[email protected]>
Newsgroups gmane.comp.audio.mp3.lame
Message-ID <20120405055029.00003cf9@unknown>
On Sat, 31 Mar 2012 10:31:12 +0000 Javad Sheikhzadeh
<[email protected]> wrote:

> I am using the Lame mp3 3.99.5 encoder for mp3 decoding application.

If you are really using it to _de_code (instead of _en_coding), I
suggest you have a look at madplay or mpg123 or some other real
decoder. They are much better suited to do this than LAME.

> I'd like to thank you for your great work and I also had a question. I
> am trying to use the code for a Friendly ARM 9.0 board with a Linux
> OS. I have to compile the code on my PC, which has Ubuntu installed on
> it, with arm-linux-gcc in order to get a lame.o file that can be
> uploaded on the ARM board in order to implement a mp3 decoder on ARM.
> I tried changing the configure / make files but everytime I
> encountered errors and realized this is more complicated and beyond my
> knowledge. I was wondering if you can show me a way to edit the
> configure or make file and modify the code to be complied by
> arm-linux-gcc instead of i686 pc linux gcc. It will be great if you
> can help me out, I'm trying to use your code for academic purposes and
> am really stuck here! Thank you very much in advance.

It is not that easy...
I tried to have the configure script more or less cross-compile ready
(./configure --help to see the options... IIRC it should be something
with "target" in the name), but on the other hand I'm using some
configure-features which determine the size of types. This is done by
compiling a program for the target-arch and running it. Obviously this
will not work in the cross-compile case.

The configure script should also respect the setting of the CC env
variable, so you could do an "export CC=arm-linux-gcc" before running
configure, but I would expect this will fail while doing the sizeof of
some variable types.

If you are sure that all types have the same size on the architecture
where you compile and where you want to run it, you could try to set CC
to the full path of your compiler for the system you are compiling on,
run configure, and then search and replace in all Makefiles this full
path with the arm-linux-gcc compiler. If you are lucky, this may work.

Good luck (or try with a real _de_coder instead of LAME).

Bye,
Alexander.

-- 
http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.