12-06-2009, 04:57 AM | #1 |
Junior Member
Posts: 9
Karma: 10
Join Date: Dec 2009
Device: Pocketbook 360, 622, 630
|
Pocketbook SDK, Linux and Wine
Hi,
I'd like to try out the sample applications in the Pocketbook SDK. I compiled both "grays" and "inkdemo", but if I run them I get the following error: Code:
grays$ ./grays.exe hwnd=65584 FT_New_Face: cannot open LiberationSans-Bold FT_New_Face: cannot open LiberationSans FT_New_Face: cannot open LiberationSans-Bold FT_New_Face: cannot open LiberationSans-Bold FT_New_Face: cannot open LiberationSans-Bold FT_New_Face: cannot open LiberationSans-Bold FT_New_Face: cannot open LiberationSans-Bold wine: Unhandled page fault on read access to 0x00000018 at address 0x7ee1d816 (thread 0009), starting debugger... wine-1.1.31 gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1 I know this is not really a dev forum, but the Ukrainian one was not of much help (using google translate). Maybe someone used wine to run some Pocketbook apps already... Thanks, Michael |
12-07-2009, 03:05 PM | #2 |
Member
Posts: 20
Karma: 104
Join Date: Jan 2009
Device: pocketbook 360
|
I've got the same problem, but no solution.
I successfully run some applications with the previous version of the SDK but none with the latest (14.2) :/ |
Advert | |
|
12-08-2009, 06:25 AM | #3 |
Junior Member
Posts: 9
Karma: 10
Join Date: Dec 2009
Device: Pocketbook 360, 622, 630
|
Hi,
thanks for the reply... do you remember which version or do you have it still lying around somewhere? |
12-08-2009, 10:55 AM | #4 |
Member
Posts: 20
Karma: 104
Join Date: Jan 2009
Device: pocketbook 360
|
I think it was the SDK 12.5.
You could grab it here: http://sourceforge.net/projects/pocketbook-free/files/ |
12-08-2009, 12:14 PM | #5 |
Junior Member
Posts: 9
Karma: 10
Join Date: Dec 2009
Device: Pocketbook 360, 622, 630
|
Ah, ok thanks. I didn't see that older versions are available there... I'll give it a try and maybe I can figure out the differences to the current version...
|
Advert | |
|
12-08-2009, 12:54 PM | #6 |
Junior Member
Posts: 9
Karma: 10
Join Date: Dec 2009
Device: Pocketbook 360, 622, 630
|
Ok, I experimented a bit but no solution. Also 12.5 crashes with exactly the same error.
Do you remember which gcc and wine version you used with SDK 12.5? |
12-08-2009, 03:30 PM | #7 |
Wizard
Posts: 4,334
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
|
From the look of the message, looks like you need to install some fonts in wine.
|
12-09-2009, 03:24 AM | #8 |
Junior Member
Posts: 9
Karma: 10
Join Date: Dec 2009
Device: Pocketbook 360, 622, 630
|
They are installed...
Code:
$ ls /home/mlunter/.wine/drive_c/windows/Fonts/Liberation* /home/mlunter/.wine/drive_c/windows/Fonts/LiberationMono-BoldItalic.ttf /home/mlunter/.wine/drive_c/windows/Fonts/LiberationMono-Bold.ttf /home/mlunter/.wine/drive_c/windows/Fonts/LiberationMono-Italic.ttf /home/mlunter/.wine/drive_c/windows/Fonts/LiberationMono-Regular.ttf /home/mlunter/.wine/drive_c/windows/Fonts/LiberationSans-BoldItalic.ttf /home/mlunter/.wine/drive_c/windows/Fonts/LiberationSans-Bold.ttf /home/mlunter/.wine/drive_c/windows/Fonts/LiberationSans-Italic.ttf /home/mlunter/.wine/drive_c/windows/Fonts/LiberationSans-Regular.ttf /home/mlunter/.wine/drive_c/windows/Fonts/LiberationSerif-BoldItalic.ttf /home/mlunter/.wine/drive_c/windows/Fonts/LiberationSerif-Bold.ttf /home/mlunter/.wine/drive_c/windows/Fonts/LiberationSerif-Italic.ttf /home/mlunter/.wine/drive_c/windows/Fonts/LiberationSerif-Regular.ttf |
12-09-2009, 04:46 AM | #9 | |
Member
Posts: 20
Karma: 104
Join Date: Jan 2009
Device: pocketbook 360
|
Quote:
Code:
~/PBSDK-linux-libwine-12.5/bin/arm-linux-gcc --version arm-linux-gcc (GCC) 3.4.1 .. I notice an important fact: in several files, SDK refers to "/usr/local/pocketbook" as the SDK root. I've create a symlink to point on my SDK location. Removing it, I can't launch any application on SDK 12.5. Code:
sudo ln -s ~/PBSDK-linux-libwine-12.5 /usr/local/pocketbook Last edited by logan; 12-09-2009 at 09:17 AM. Reason: fix symlink command |
|
12-09-2009, 05:32 AM | #10 | ||
Junior Member
Posts: 9
Karma: 10
Join Date: Dec 2009
Device: Pocketbook 360, 622, 630
|
Quote:
But for the PC, winegcc is used, which in turn uses the compiler you have installed for x86 architectures. You can easily check that by adding the -v flag to the Makefile rule: Code:
$(OUT): $(CFILES) $(IMGSRC) $(CC) -v -o $@ $^ $(INCLUDE) $(LIBDIR) $(LIBS) $(CFLAGS) $(WINEFLAGS) Quote:
14.2 still crashes with the same error, but now I can at least figure out what has changed between 12.5 and 14.2 to triage the fault (maybe). I will come back to that later in the evening... |
||
12-09-2009, 06:17 AM | #11 |
Junior Member
Posts: 9
Karma: 10
Join Date: Dec 2009
Device: Pocketbook 360, 622, 630
|
Ok, I was impatient and digged a bit:
In 12.5: inkview.h has Code:
#if !defined(__CYGWIN__) && defined(__i386__) # define DIRPREFIX "/usr/local/pocketbook" #else # define DIRPREFIX "" #endif Code:
$ grep -r "/usr/local/pocketbook" * arm-linux/include/inkview.h:# define DIRPREFIX "/usr/local/pocketbook" include/inkview.h:# define DIRPREFIX "/usr/local/pocketbook" Binary file lib/libinkview.a matches In 14.2 it looks different: inkview.h Code:
#ifdef __WINE__ # define DIRPREFIX "/usr/local/pocketbook" #else # define DIRPREFIX "" #endif Code:
$ grep -r "/usr/local/pocketbook" * arm-linux/include/inkview.h:# define DIRPREFIX "/usr/local/pocketbook" include/inkview.h:# define DIRPREFIX "/usr/local/pocketbook" I'll ask Forkosigan to forward this to the developers... |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre on Linux under Wine | tulsa | Calibre | 7 | 03-24-2010 05:17 AM |
Imp scripts and wine linux related | derrell | Fictionwise eBookwise | 12 | 10-31-2008 04:53 PM |
SunriseXP via wine on linux?? | zachofalltrades | Reading and Management | 3 | 09-19-2007 03:51 PM |
Cybook & Linux...SDK? | Adam B. | Gen3 Developer's Corner | 4 | 07-28-2007 12:59 AM |
Connect software on Linux using Wine? | allovertheglobe | Sony Reader | 0 | 05-18-2007 03:21 PM |