I just start at the beginning. I have a small MP3 file from 1 second stored in the RAM of the MIPS. It is a one second 440 Hz sinus. Mad decodes it OK on a PC, but not on the MIPS.....
Jeroen
From: Guenther Sohler guenther.sohler@newlogic.com Reply-To: Guenther Sohler guenther.sohler@newlogic.com To: Jeroen T jeroen_t@hotmail.com CC: mad-dev@lists.mars.org Subject: Re: [mad-dev] MIPS VR4111 implementation of MAD Date: Wed, 13 Mar 2002 15:27:51 +0100 (MET)
I dont have an idea, whether mad is designed to run on big endian machines. Do you know of any success story ? I dont know mad too much. i just know, that it works in my amd athlon box. By seeking i mean, immediatly starting to play an mp3 at a virtual wave-file-position
_________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com
Hi,
I have succesfully cross compiled libmad for ARM and now it is time for compiling minimad for ARM as well. I have 2 question really
1) When compiling minimad normally i do "gcc minmad.c -o mimimad -lmad". -lmad being the bit that tells gcc to use libmad dunring linking. How does -lmad relate to /usr/local/lib/libmad.a? When i try this using the cross compiler it fails.
2) I want to develop in Code Worrior for ARM. I have made a new project and added minimad to it. Then i added mad.h and the ARM compiled libmad.a to the include path. Now when i try to compile it comes up with loads of errors about not being able to open include files. I have tried adding each individual include file to the path but the list get longer as more files are included! Is there something fundamental i am missing out?
Thanks
On 14-Mar-2002 Gareth wrote:
Hi,
I have succesfully cross compiled libmad for ARM and now it is time for compiling minimad for ARM as well. I have 2 question really
When compiling minimad normally i do "gcc minmad.c -o mimimad -lmad". -lmad being the bit that tells gcc to use libmad dunring linking. How does -lmad relate to /usr/local/lib/libmad.a? When i try this using the cross compiler it fails.
Hmm - In My system there does not exist libmad.a in the libmad directory There just exist a libmad.la Wha I did, I gave the linker a file in .libs. i dont remember the name, but i gave it without the -l option(for library) Is there a way to make a shared library versin of libmad ?
Do you need the capability to start from a defined position in the mp3 file ?
Hmm - In My system there does not exist libmad.a in the libmad directory There just exist a libmad.la
Libmad.a is in /usr/local/lib. It was put there by 'make install'.
Wha I did, I gave the linker a file in .libs. i dont remember the name, but i gave it without the -l option(for library)
How did you give the linker this file? What syntax did you use?
Is there a way to make a shared library versin of libmad ?
Don't know, sorry!
Do you need the capability to start from a defined position in the mp3 file ?
Not with minimad.c.
hallo Robert,
Yes: give the --enable-shared option to `configure'.
Thank you for the information.
Did you get all my mails about seeking ? As you are the author of mad, it should be rather simple to help me with my problem. rds guenther
On Wednesday, March 13, 2002, at 11:57 PM, Gareth wrote:
I have succesfully cross compiled libmad for ARM and now it is time for compiling minimad for ARM as well. I have 2 question really
When compiling minimad normally i do "gcc minmad.c -o mimimad -lmad". -lmad being the bit that tells gcc to use libmad dunring linking. How does -lmad relate to /usr/local/lib/libmad.a? When i try this using the cross compiler it fails.
You should be able to build minimad with just "make minimad". This will link with the library in the libmad subdirectory, which is usually more appropriate than the installed /usr/local/lib/libmad.a especially when cross-compiling.
I want to develop in Code Worrior for ARM. I have made a new project and added minimad to it. Then i added mad.h and the ARM compiled libmad.a to the include path. Now when i try to compile it comes up with loads of errors about not being able to open include files. I have tried adding each individual include file to the path but the list get longer as more files are included! Is there something fundamental i am missing out?
I don't know much about Code Warrior for ARM but a lot probably depends on the target environment. minimad assumes a POSIX environment, so it may not be the most appropriate thing to try to build.
You might take a look at the madplay project I made for MS VC++. I managed to build madplay under Win32 (which is not POSIX) with an appropriately tailored config.h.
-- Rob Leslie rob@mars.org
You should be able to build minimad with just "make minimad". This will link with the library in the libmad subdirectory, which is usually more appropriate than the installed /usr/local/lib/libmad.a especially when cross-compiling.
I had a go at doing 'make minimad' like you suggested. For some reason it seems to be looking for files in tmp/ of my home directory.
/home/gar/tm/ccPMTjTj.o: In function 'decode': /home/gar/tm/ccPMTjTj.o: undefined reference to 'mad_decoder_init' /home/gar/tm/ccPMTjTj.o: relocation truncated to fit: R_ARM_PC24 mad_decoder_run
I get about 5 of these errors and then it exits with
collect2: ld returned 1 exit status
I had a look in tmp/ for the .o files it is refering to but they arn't there.
On Thu, 14 Mar 2002 15:41:44 -0800 Rob Leslie rob@mars.org wrote:
On Wednesday, March 13, 2002, at 11:57 PM, Gareth wrote:
I have succesfully cross compiled libmad for ARM and now it is time for compiling minimad for ARM as well. I have 2 question really
When compiling minimad normally i do "gcc minmad.c -o mimimad -lmad". -lmad being the bit that tells gcc to use libmad dunring linking. How does -lmad relate to /usr/local/lib/libmad.a? When i try this using the cross compiler it fails.
You should be able to build minimad with just "make minimad". This will link with the library in the libmad subdirectory, which is usually more appropriate than the installed /usr/local/lib/libmad.a especially when cross-compiling.