#101370 - smoothingeye - Mon Sep 04, 2006 7:27 pm
I am trying to do a MP3 player using Mad lib . anyone can give me some pointers ?
thanks
#101892 - smoothingeye - Fri Sep 08, 2006 6:50 pm
I got the following error please help when i try to compile Mp3player . why libmad cannot be compoile? for arms?
not support `smull r1,r2,r0,r3'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccXmYU4C.s:1009: Error: unshifted register requ
ired -- `adc r3,r1,r2,lsl#4'
make[2]: *** [layer12.o] Error 1
make[1]: *** [build] Error 2
make[1]: Leaving directory `/d/Projects/nds/mp3play/arm9'
make: *** [arm9/mp3play.elf] Error 2
seewan@SEEWAN02 /d/Projects/nds/mp3play
$ make
make -C arm7
make[1]: Entering directory `/d/Projects/nds/mp3play/arm7'
make[2]: `/d/Projects/nds/mp3play/mp3play.arm7' is up to date.
make[1]: Leaving directory `/d/Projects/nds/mp3play/arm7'
make -C arm9 -f Makefile
make[1]: Entering directory `/d/Projects/nds/mp3play/arm9'
layer12.c
arm-eabi-gcc -MMD -MP -MF /d/Projects/nds/mp3play/arm9/build/layer12.d -Wall -Os
-mcpu=arm9tdmi -mtune=arm9tdmi -ffast-math -mthumb -mthumb-interwork -I/d/Proje
cts/nds/mp3play/arm9/include -I/d/Projects/nds/mp3play/arm9/build -I/c/devkitPro
/libnds/include -I/d/Projects/nds/mp3play/arm9/build -DARM9 -DFPM_ARM -DOPT_ACCU
RACY -DROMVER=\"\" -c /d/Projects/nds/mp3play/arm9/source/libmad/layer12.c -o l
ayer12.o
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s: Assembler messages:
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:71: Error: selected processor does n
ot support `smull r1,ip,r2,r3'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:73: Error: unshifted register requir
ed -- `adc r3,r1,ip,lsl#4'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:114: Error: selected processor does
not support `smull r2,r1,r0,r3'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:116: Error: unshifted register requi
red -- `adc r0,r2,r1,lsl#4'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:489: Error: selected processor does
not support `smull r0,r1,r3,r2'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:491: Error: unshifted register requi
red -- `adc r3,r0,r1,lsl#4'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:495: Error: selected processor does
not support `smull r0,ip,r3,r2'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:497: Error: unshifted register requi
red -- `adc r1,r0,ip,lsl#4'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:503: Error: selected processor does
not support `smull r1,r0,r3,r2'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:505: Error: unshifted register requi
red -- `adc r2,r1,r0,lsl#4'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:640: Error: selected processor does
not support `smull r0,r1,r3,r2'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:642: Error: unshifted register requi
red -- `adc r3,r0,r1,lsl#4'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:646: Error: selected processor does
not support `smull r0,ip,r3,r2'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:648: Error: unshifted register requi
red -- `adc r1,r0,ip,lsl#4'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:654: Error: selected processor does
not support `smull r1,r0,r3,r2'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:656: Error: unshifted register requi
red -- `adc r2,r1,r0,lsl#4'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:930: Error: selected processor does
not support `smull r2,ip,r0,r3'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:932: Error: unshifted register requi
red -- `adc r1,r2,ip,lsl#4'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:1007: Error: selected processor does
not support `smull r1,r2,r0,r3'
C:/DOCUME~1/seewan/LOCALS~1/Temp/ccqkI1f7.s:1009: Error: unshifted register requ
ired -- `adc r3,r1,r2,lsl#4'
make[2]: *** [layer12.o] Error 1
make[1]: *** [build] Error 2
make[1]: Leaving directory `/d/Projects/nds/mp3play/arm9'
make: *** [arm9/mp3play.elf] Error
#102084 - smoothingeye - Sun Sep 10, 2006 6:44 pm
how about these mesage ??? can u tell me how u port the libmad ?
$ make
linking .arm9.elf
plug_mp3.o: In function `FreeMP3':
plug_mp3.c:(.text+0x39c): undefined reference to `mad_frame_finish'
plug_mp3.c:(.text+0x3a2): undefined reference to `mad_stream_finish'
plug_mp3.c:(.text+0x3b2): undefined reference to `mad_decoder_finish'
plug_mp3.o: In function `madusr_decode_exec':
plug_mp3.c:(.text+0x404): undefined reference to `mad_header_decode'
plug_mp3.c:(.text+0x45e): undefined reference to `mad_frame_decode'
plug_mp3.c:(.text+0x4e0): undefined reference to `mad_synth_frame'
plug_mp3.o: In function `error':
plug_mp3.c:(.text+0x584): undefined reference to `mad_stream_errorstr'
plug_mp3.o: In function `input':
plug_mp3.c:(.text+0x60c): undefined reference to `mad_stream_buffer'
plug_mp3.o: In function `StartMP3':
plug_mp3.c:(.text+0x76c): undefined reference to `mad_decoder_init'
plug_mp3.c:(.text+0x790): undefined reference to `mad_stream_init'
plug_mp3.c:(.text+0x798): undefined reference to `mad_frame_init'
plug_mp3.c:(.text+0x7a0): undefined reference to `mad_synth_init'
collect2: ld returned 1 exit status
make[1]: *** [/d/Projects/NDS/mp3play/arm9/.arm9.elf] Error 1
#102404 - smoothingeye - Wed Sep 13, 2006 6:51 pm
I manage to get the lib to work but now the audio is very choppy . can i know where is it like this?
could it be some timing issue or the Fat lib problem i am using Super card