Hi,
On 2002-03-15 10:29:00 Gareth Bransby wrote:
Hi
I am attempting the same thing as you. I have compiled libmad using the cross compiler from the Lart website :
www.lart.tudelft.nl/lartware/compile-tools/
the lartware's compile-tool is arm-linux ,the executable can run without linux? i think it should be arm-elf if i wanna build standalone mad,that is right?
I think minimad.c can be modified fairly easily so it is >independent of any os or system calls. I am having trouble >cross compiling it though so i can start changing it. My >board only has an ARM7td - no enhanced multiply.
i am using cygwin and i configured and built successfully mad-0.13.0b on my host.the madplay can produce wave file which can be playback .minimad can be compiled and ran no complaint,but it look like doing nothing.
would you like tell me any idea to modify minimad.c?
acen10 acen10@263.net
the lartware's compile-tool is arm-linux ,the executable can run without linux? i think it should be arm-elf if i wanna build standalone mad,that is right?
The arm-linux compiler should be fine as far as i know. As long as your code has no system calls it should run without linux. For example minimad.c has things like that mmap call, which i think requires an os.
minimad can be compiled and ran no complaint,but it look like doing nothing.
Use minimad like this : ./minimad < file.mp3 > file.wav It reads and writes from stdin and stdout.
To make minimad run standalone you must change it so that it reads from a pointer to the mp3 in memeory, rather than stdin.
Tell me if you manage to compile minimad for ARM using the lart compiler. I am struggling!