Mobileread
Pocketbook SDK, Linux and Wine
#1  mikmak 12-06-2009, 04:57 AM
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...
Versions:
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
Reply 

#2  logan 12-07-2009, 03:05 PM
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) :/
Reply 

#3  mikmak 12-08-2009, 06:25 AM
Hi,
thanks for the reply... do you remember which version or do you have it still lying around somewhere?
Reply 

#4  logan 12-08-2009, 10:55 AM
I think it was the SDK 12.5.

You could grab it here:
http://sourceforge.net/projects/pocketbook-free/files/
Reply 

#5  mikmak 12-08-2009, 12:14 PM
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...
Reply 

#6  mikmak 12-08-2009, 12:54 PM
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?
Reply 

#7  EowynCarter 12-08-2009, 03:30 PM
From the look of the message, looks like you need to install some fonts in wine.
Reply 

#8  mikmak 12-09-2009, 03:24 AM
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
Reply 

#9  logan 12-09-2009, 04:46 AM
Quote mikmak
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?
I use the gcc embedded in the SDK, don't I?
Code
~/PBSDK-linux-libwine-12.5/bin/arm-linux-gcc --version
arm-linux-gcc (GCC) 3.4.1
..
I was using win 1.0 and upgrade recently to wine 1.1.31 but that didn't make any difference.

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
I hope it will help you
Reply 

#10  mikmak 12-09-2009, 05:32 AM
Quote logan
I use the gcc embedded in the SDK, don't I?
Code
~/PBSDK-linux-libwine-12.5/bin/arm-linux-gcc --version
arm-linux-gcc (GCC) 3.4.1
..
Yes, that's the compiler used for the ARM target (the Pocketbook).
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 logan
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
ln -s ~/PBSDK-linux-libwine-12.5/sources/grays /usr/local/pocketbook
I hope it will help you
Man, thanks! That was it... 12.5 works now for me if I create this symlink (quite stupid to have to have that, but whatever).
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...
Reply 

  Next »  Last »  (1/2)
Today's Posts | Search this Thread | Login | Register