Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 12-06-2009, 04:57 AM   #1
mikmak
Junior Member
mikmak began at the beginning.
 
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...
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
mikmak is offline   Reply With Quote
Old 12-07-2009, 03:05 PM   #2
logan
Member
logan doesn't litterlogan doesn't litter
 
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) :/
logan is offline   Reply With Quote
Advert
Old 12-08-2009, 06:25 AM   #3
mikmak
Junior Member
mikmak began at the beginning.
 
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?
mikmak is offline   Reply With Quote
Old 12-08-2009, 10:55 AM   #4
logan
Member
logan doesn't litterlogan doesn't litter
 
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/
logan is offline   Reply With Quote
Old 12-08-2009, 12:14 PM   #5
mikmak
Junior Member
mikmak began at the beginning.
 
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...
mikmak is offline   Reply With Quote
Advert
Old 12-08-2009, 12:54 PM   #6
mikmak
Junior Member
mikmak began at the beginning.
 
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?
mikmak is offline   Reply With Quote
Old 12-08-2009, 03:30 PM   #7
EowynCarter
Wizard
EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.
 
Posts: 4,332
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.
EowynCarter is offline   Reply With Quote
Old 12-09-2009, 03:24 AM   #8
mikmak
Junior Member
mikmak began at the beginning.
 
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
mikmak is offline   Reply With Quote
Old 12-09-2009, 04:46 AM   #9
logan
Member
logan doesn't litterlogan doesn't litter
 
Posts: 20
Karma: 104
Join Date: Jan 2009
Device: pocketbook 360
Quote:
Originally Posted by mikmak View Post
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

Last edited by logan; 12-09-2009 at 09:17 AM. Reason: fix symlink command
logan is offline   Reply With Quote
Old 12-09-2009, 05:32 AM   #10
mikmak
Junior Member
mikmak began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2009
Device: Pocketbook 360, 622, 630
Quote:
Originally Posted by logan View Post
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:
Originally Posted by logan View Post
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...
mikmak is offline   Reply With Quote
Old 12-09-2009, 06:17 AM   #11
mikmak
Junior Member
mikmak began at the beginning.
 
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
and

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
So libinkview.a in 12.5 has DIRPREFIX properly defined due to the #ifdef in inkview.h

In 14.2 it looks different:

inkview.h
Code:
#ifdef __WINE__
# define DIRPREFIX "/usr/local/pocketbook"
#else
# define DIRPREFIX ""
#endif
and
Code:
$ grep -r "/usr/local/pocketbook" *
arm-linux/include/inkview.h:# define DIRPREFIX "/usr/local/pocketbook"
include/inkview.h:# define DIRPREFIX "/usr/local/pocketbook"
Here, libinkview.a does NOT have DIRPREFIX defined, probably because it was not compiled with winegcc (which sets __WINE__).

I'll ask Forkosigan to forward this to the developers...
mikmak is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 12:24 PM.


MobileRead.com is a privately owned, operated and funded community.