View Single Post
Old 12-27-2011, 07:04 AM   #85
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: 226
Karma: 3184
Join Date: Feb 2011
Device: ONYX BOOX Note Air3 C
Added -lasound and made some progress:

emulator build still fails
Code:
make BUILD=emu
mkdir obj_emu
ln -s /usr/local/pocketbook/system obj_emu/system
gcc -c -o obj_emu/bstdfile.c.o -D__EMU__ -DIVSAPP -Wall -g -m32  -MTobj_emu/bstdfile.c.o -MF`echo obj_emu/bstdfile.c.o | sed -e 's,\.o$,.d,'` -MD -MP src/bstdfile.c
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

but regular build for pro models has only warnings now.
Code:
make BUILD=arm_gnueabi
mkdir obj_arm_gnueabi
arm-none-linux-gnueabi-gcc -c -o obj_arm_gnueabi/bstdfile.c.o -Os -D__ARM__ -Wall -fomit-frame-pointer  -MTobj_arm_gnueabi/bstdfile.c.o -MF`echo obj_arm_gnueabi/bstdfile.c.o | sed -e 's,\.o$,.d,'` -MD -MP src/bstdfile.c
arm-none-linux-gnueabi-gcc -c -o obj_arm_gnueabi/madlld.c.o -Os -D__ARM__ -Wall -fomit-frame-pointer  -MTobj_arm_gnueabi/madlld.c.o -MF`echo obj_arm_gnueabi/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
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 -lasound -lmad -L./lib -linkview
However trying to run it on the device results in: mpd.app: error while loading shared libraries: libasound.so.2: cannot open share object file: No such file or directory

(maybe i need to update the firemware ?)

Last edited by J.C.; 12-27-2011 at 12:27 PM.
J.C. is offline   Reply With Quote