View Single Post
Old 12-26-2011, 06:13 AM   #80
J.C.
Addict
J.C. could sell banana peel slippers to a Deveel.J.C. could sell banana peel slippers to a Deveel.J.C. could sell banana peel slippers to a Deveel.J.C. could sell banana peel slippers to a Deveel.J.C. could sell banana peel slippers to a Deveel.J.C. could sell banana peel slippers to a Deveel.J.C. could sell banana peel slippers to a Deveel.J.C. could sell banana peel slippers to a Deveel.J.C. could sell banana peel slippers to a Deveel.J.C. could sell banana peel slippers to a Deveel.J.C. could sell banana peel slippers to a Deveel.
 
Posts: 224
Karma: 3184
Join Date: Feb 2011
Device: ONYX BOOX Note Air3 C
Thank you, I've changed that line to: LIBS += -lmad -L./lib

The error I'm getting:
Code:
make BUILD=emu
gcc -c -o obj_emu/madlld.c.o -D__EMU__ -DIVSAPP -Wall -g -m32  -MTobj_emu/madlld.c.o -MF`echo obj_emu/madlld.c.o | sed -e 's,\.o$,.d,'` -MD -MP src/madlld.c
src/madlld.c: In function ‘open_alsa’:
src/madlld.c:1026: warning: unused variable ‘val’
src/madlld.c:1025: warning: unused variable ‘size’
src/madlld.c: At top level:
src/madlld.c:49: warning: ‘buffer’ defined but not used
src/madlld.c: In function ‘ApplyFilter’:
src/madlld.c:462: warning: asm operand 5 probably doesn’t match constraints
src/madlld.c:462: warning: asm operand 6 probably doesn’t match constraints
src/madlld.c:468: warning: asm operand 5 probably doesn’t match constraints
src/madlld.c:468: warning: asm operand 6 probably doesn’t match constraints
src/madlld.c:462: error: impossible constraint in ‘asm’
src/madlld.c:468: error: impossible constraint in ‘asm’
make: *** [obj_emu/madlld.c.o] Error 1
or

Code:
make BUILD=arm_gnueabi
arm-none-linux-gnueabi-g++ -o obj_arm_gnueabi/mpd.app obj_arm_gnueabi/bstdfile.c.o obj_arm_gnueabi/madlld.c.o  -Wl,-s -lmad -L./lib -linkview
obj_arm_gnueabi/madlld.c.o: In function `open_alsa':
madlld.c:(.text+0x5cc): undefined reference to `snd_pcm_open'
madlld.c:(.text+0x5e0): undefined reference to `snd_strerror'
madlld.c:(.text+0x5f4): undefined reference to `snd_pcm_hw_params_sizeof'
madlld.c:(.text+0x60c): undefined reference to `snd_pcm_hw_params_sizeof'
madlld.c:(.text+0x628): undefined reference to `snd_pcm_hw_params_any'
madlld.c:(.text+0x638): undefined reference to `snd_pcm_hw_params_set_rate_resample'
madlld.c:(.text+0x64c): undefined reference to `snd_strerror'
madlld.c:(.text+0x66c): undefined reference to `snd_pcm_hw_params_set_access'
madlld.c:(.text+0x67c): undefined reference to `snd_pcm_hw_params_set_format'
madlld.c:(.text+0x68c): undefined reference to `snd_pcm_hw_params_set_channels'
madlld.c:(.text+0x6cc): undefined reference to `snd_pcm_hw_params_set_rate_near'
madlld.c:(.text+0x6ec): undefined reference to `snd_pcm_hw_params_set_period_size_near'
madlld.c:(.text+0x6f8): undefined reference to `snd_pcm_hw_params'
madlld.c:(.text+0x70c): undefined reference to `snd_strerror'
obj_arm_gnueabi/madlld.c.o: In function `close_alsa':
madlld.c:(.text+0x76c): undefined reference to `snd_pcm_drain'
madlld.c:(.text+0x774): undefined reference to `snd_pcm_close'
obj_arm_gnueabi/madlld.c.o: In function `main':
madlld.c:(.text+0xe48): undefined reference to `snd_pcm_prepare'
madlld.c:(.text+0xe5c): undefined reference to `snd_strerror'
madlld.c:(.text+0x1084): undefined reference to `snd_pcm_writei'
madlld.c:(.text+0x1204): undefined reference to `snd_pcm_writei'
madlld.c:(.text+0x1228): undefined reference to `snd_pcm_prepare'
madlld.c:(.text+0x1240): undefined reference to `snd_strerror'
collect2: ld returned 1 exit status
make: *** [obj_arm_gnueabi/mpd.app] Error 1
J.C. is offline   Reply With Quote