![]() |
#76 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 226
Karma: 3184
Join Date: Feb 2011
Device: ONYX BOOX Note Air3 C
|
Quote:
after the packages are installed. Edit: Also I've needed to add g++ too on a default Ubuntu 10.04 installation. Last edited by J.C.; 12-24-2011 at 11:46 AM. |
|
![]() |
![]() |
![]() |
#77 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2011
Device: pocketbook pro 612
|
hallo, i have bought a pocketbook pro 612, In Germany. But i found the webbrowser can not support Chinese. Mybe there are some good idea from you? thanks.
|
![]() |
![]() |
Advert | |
|
![]() |
#78 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 226
Karma: 3184
Join Date: Feb 2011
Device: ONYX BOOX Note Air3 C
|
Trying to compile mpd source from pocketbook-free
I'm not that familiar with make files but here's what I've got this far: mpd.mk Code:
Sources += bstdfile.c madlld.c Code:
OUT = mpd VPATH += lib src LIBS += libmad.a include /usr/local/pocketbook/common.mk |
![]() |
![]() |
![]() |
#79 | |
ebook fan
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
Quote:
2. Should be: LIBS += -lmad.a -L<path to libmad.a> |
|
![]() |
![]() |
![]() |
#80 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 226
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 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 |
![]() |
![]() |
Advert | |
|
![]() |
#81 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,055
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
There don't seem to be any include/alsa ALSA header files in the SDK, nor libraries either in the SDK or on the system. Can you configure your program to work via OSS rather than ALSA?
|
![]() |
![]() |
![]() |
#82 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 226
Karma: 3184
Join Date: Feb 2011
Device: ONYX BOOX Note Air3 C
|
Quote:
Edit: Are you saying the problem comes from not finding these files even though they're in the include directory ? Last edited by J.C.; 12-27-2011 at 12:10 AM. |
|
![]() |
![]() |
![]() |
#83 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,055
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
Last edited by rkomar; 12-27-2011 at 02:01 AM. |
|
![]() |
![]() |
![]() |
#84 | |
ebook fan
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
Quote:
snd_pcm_open and others are defined in the libasound.a. Try -lasound. Last edited by sergeyvl12; 12-27-2011 at 02:52 AM. |
|
![]() |
![]() |
![]() |
#85 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 (maybe i need to update the firemware ?) Last edited by J.C.; 12-27-2011 at 12:27 PM. |
![]() |
![]() |
![]() |
#86 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,055
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
You could force it to link against libasound.a rather than libasound.so. There are many ways to do that. Maybe try using -Bstatic -lasound -Bdynamic in your link flags. The man pages for ld tell you all you need to know.
|
![]() |
![]() |
![]() |
#87 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,055
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
|
![]() |
![]() |
![]() |
#88 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 226
Karma: 3184
Join Date: Feb 2011
Device: ONYX BOOX Note Air3 C
|
Thanks for the tip, you'd think it'll work but the linker only acts when the flag used is '-static' and after that it won't accept any dynamic libraries (regardless of trying -Bdynamic, -dy or -call_shared), which is a problem since libinkview is dynamic and linked last.
|
![]() |
![]() |
![]() |
#89 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,055
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
So, something like: Code:
-Wl,-dn -lasound -Wl,-dy Last edited by rkomar; 12-28-2011 at 02:42 AM. |
|
![]() |
![]() |
![]() |
#90 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 226
Karma: 3184
Join Date: Feb 2011
Device: ONYX BOOX Note Air3 C
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
is the Pocketbook official site: | soondai | PocketBook | 14 | 11-27-2010 11:48 AM |
Pocketbook free SDK in Cooler ereader | racagalro | PocketBook | 0 | 11-13-2010 12:03 PM |
The Green Reader - PocketBook official shop in UK! | jules_july | Introduce Yourself | 1 | 05-21-2010 02:36 PM |
Pocketbook SDK, Linux and Wine | mikmak | PocketBook | 10 | 12-09-2009 06:17 AM |
iLiad Integration of ScratchBox and iRex Official SDK | ericshliao | iRex Developer's Corner | 3 | 10-09-2008 03:51 PM |