|  07-19-2011, 05:04 AM | #31 | |
| ebook fan            Posts: 735 Karma: 2528718 Join Date: Dec 2010 Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch | Quote: 
 Last edited by sergeyvl12; 07-19-2011 at 05:07 AM. | |
|   |   | 
|  07-23-2011, 02:05 AM | #32 | |
| Connoisseur            Posts: 61 Karma: 29446 Join Date: Apr 2010 Device: pocketbook 301, pocketbook 603 | Quote: 
 for list of ubuntoo libraries you need and aditional LD_FLAGS (or look at my ebuild, more you need is at src_unpack function). It seams that ubuntoo libraries are not binary compatible with some other distributives. | |
|   |   | 
|  08-06-2011, 10:53 AM | #33 | 
| Enthusiast            Posts: 42 Karma: 10308 Join Date: May 2011 Device: PB Pro 903, F/W 2.1.3=>downgraded to 2.1.2-fastdrv because of WIFI-bug | 
			
			Hi, I'm trying to get into programming with sergeyvl12's unofficial SDK. Almoust everything is working fine and I was able to compile the example apps with the "BUILD=arm_gnueabi" switch and run them on my PB903. Great work, sergey! Thanks!  The problem I have now is that I would like to use "BUILD=emu" to test the apps locally on the PC, before copying them to the reader via USB, since it is really annoying to connect the USB cable, copy the app, disconnect the device again and run the app on the reader each time I made some changes to the code. However, if I try to build the app with the emu-switch, it will compile without any errors, but as soon as I'm trying to run the app on the PC, I'm getting a bunch of error messages: Code: root@dragon: /home/test/projects/grays/obj_emu# ./grays 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 Segmentation fault Any help or suggestions how to get the emu-thing working would be highly appreciated. Last edited by pbmaniac; 08-06-2011 at 10:57 AM. | 
|   |   | 
|  08-06-2011, 02:00 PM | #34 | 
| Wizard            Posts: 3,067 Karma: 18821071 Join Date: Oct 2010 Location: Sudbury, ON, Canada Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633 | 
			
			Go into the obj_emu directory, delete any system directory there, and then make a soft link to the system directory in the pocketbook installation directory: Code: ln -s /usr/local/pocketbook/system . | 
|   |   | 
|  08-06-2011, 02:18 PM | #35 | |
| Enthusiast            Posts: 42 Karma: 10308 Join Date: May 2011 Device: PB Pro 903, F/W 2.1.3=>downgraded to 2.1.2-fastdrv because of WIFI-bug | Quote: 
   | |
|   |   | 
|  08-06-2011, 03:29 PM | #36 | 
| Wizard            Posts: 3,067 Karma: 18821071 Join Date: Oct 2010 Location: Sudbury, ON, Canada Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633 | 
			
			So, does the command: Code: ls ./system/fonts/ | 
|   |   | 
|  08-06-2011, 05:23 PM | #37 | |
| Enthusiast            Posts: 42 Karma: 10308 Join Date: May 2011 Device: PB Pro 903, F/W 2.1.3=>downgraded to 2.1.2-fastdrv because of WIFI-bug | Quote: 
 Yes, if I copy the compiled file grays to /usr/local/pocketbook, all the fonts are there when typing the above command, also LiberationSans.ttf and LiberationSansBold.ttf. After fiddling around for nearly the whole day trying out different stuff, I've finally found out what the problem was!  Now I can run the inkview program for example. If someone else has the same problem, here's the solution: It seems to me that some files where missing in the system directory after installing the unofficial version...(at least in my case)...Not sure why this is, I'll have to check that some day when I have more time. I downloaded the PBSDK, copied the contents of system to the /usr/local/pocketbook directory while leaving the commons.mk file intact and now it's working just perfectly fine with the emulator after copying the compiled program to /usr/local/pocketbook. Thanks for your help. That got me on the right track.   | |
|   |   | 
|  08-10-2011, 11:07 AM | #38 | |
| ebook fan            Posts: 735 Karma: 2528718 Join Date: Dec 2010 Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch | Quote: 
 No need to copy the compiled file somewhere. The solution is simple: 1. Suppose you are in the obj_emu and compiled file is in this directory; 2. rm -rf system 3. ln -s /usr/local/pocketbook/system . 4. You can run your program from this directory ./program: That's all... You don't need additional files  Just, the directory from you run your program (current working directory) must contain "system" - link or copy of /usr/local/pocketbook/system. P.S. Interesting thing. I still don't receive notifications fron this thread... Last edited by sergeyvl12; 08-10-2011 at 11:12 AM. | |
|   |   | 
|  08-10-2011, 06:34 PM | #39 | 
| Wizard            Posts: 3,067 Karma: 18821071 Join Date: Oct 2010 Location: Sudbury, ON, Canada Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633 | 
			
			I modified the common.mk file to make the soft link automatically.  I also changed it to define "IVSAPP", since the i386 version of libinkview.so seems to look for everything in ./system.  Here's a patch for my changes. Code: --- common.mk.orig      2011-06-21 06:45:42.000000000 -0700
+++ common.mk   2011-08-08 23:45:11.550863003 -0700
@@ -29,12 +29,12 @@
 
 ifeq ($(BUILD), emu)
 PROJECT = $(OBJDIR)/$(OUT)
-LIBS += -linkview -ljpeg -lfreetype -lz -lcurl -lpthread
+LIBS += -linkview
 INCLUDES += `freetype-config --cflags`
 CC  = gcc
-CFLAGS += -D__EMU__ -Wall -g -m32
+CFLAGS += -D__EMU__ -DIVSAPP -Wall -g -m32
 CXX = g++
-CXXFLAGS += -D__EMU__ -Wall -g -m32
+CXXFLAGS += -D__EMU__ -DIVSAPP -Wall -g -m32
 LD = g++
 LDFLAGS += -m32
 endif
@@ -54,6 +54,9 @@
 
 $(OBJDIR):
        mkdir $(OBJDIR)
+ifeq ($(BUILD), emu)
+       ln -s $(SDKDIR)/system $(OBJDIR)/system
+endif
 
 $(OBJDIR)/%.bmp.c.o: $(OBJDIR)/%.bmp.c
        $(CC) -c -o $@ $(CFLAGS) $(INCLUDES) $(CDEPS) $< | 
|   |   | 
|  08-10-2011, 06:36 PM | #40 | |
| Wizard            Posts: 3,067 Karma: 18821071 Join Date: Oct 2010 Location: Sudbury, ON, Canada Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633 | Quote: 
 Edit: Strike that. I did get a notification for this thread last night. Don't know why you are not. Last edited by rkomar; 08-12-2011 at 03:16 PM. Reason: Correcting wrong info. | |
|   |   | 
|  08-11-2011, 03:14 AM | #41 | |
| ebook fan            Posts: 735 Karma: 2528718 Join Date: Dec 2010 Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch | Quote: 
 This will be in the next version of SDK soon. | |
|   |   | 
|  08-17-2011, 04:38 AM | #42 | 
| ebook fan            Posts: 735 Karma: 2528718 Join Date: Dec 2010 Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch | 
			
			pbsdk-1.0.7 released! 1. "system" link (thanks rkomar)! 2. ssl libs needed for links building for 3xx added to arm-linux; 3. Removed unneeded deps from inkview.h and common.mk; 4. IVSUPP flag added for emu. | 
|   |   | 
|  08-24-2011, 06:21 AM | #43 | 
| Enthusiast            Posts: 42 Karma: 10308 Join Date: May 2011 Device: PB Pro 903, F/W 2.1.3=>downgraded to 2.1.2-fastdrv because of WIFI-bug |  It seems that my system didn't find the libinkview.so in the lib32 directory, so I copied the file from this location to the /usr/local/lib directory. Afterwards, everything worked like a charm. Probably something wrong with my Debian installation   | 
|   |   | 
|  10-03-2011, 11:29 AM | #44 | 
| Enthusiast            Posts: 30 Karma: 11938 Join Date: May 2011 Location: Daegu, Korea(South) Device: pocketbook pro 902, Jetbook Color 1 | 
			
			"BUILD=arm_gnueabi" is working Great, sergeyvl12 Thanks!  The problem I have now is that I would like to compile "BUILD=emu" when i compile... Code: ~/workspace/src/pb/inkdemo$ sudo make BUILD=emu
gcc -c -o obj_emu/inkdemo.c.o -D__EMU__ -DIVSAPP -Wall -g -m32  -MTobj_emu/inkdemo.c.o -MF`echo obj_emu/inkdemo.c.o | sed -e 's,\.o$,.d,'` -MD -MP inkdemo.c
In file included from /usr/include/sys/ioctl.h:27:0,
                 from inkdemo.c:5:
/usr/include/bits/ioctls.h:24:24: fatal error: asm/ioctls.h: file not found
compilation terminated.
make: *** [obj_emu/inkdemo.c.o] error 1how can i working "BUILD=emu"...??   | 
|   |   | 
|  10-03-2011, 02:27 PM | #45 | 
| Wizard            Posts: 3,067 Karma: 18821071 Join Date: Oct 2010 Location: Sudbury, ON, Canada Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633 | 
			
			@read365: It looks like you are missing the kernel header files on your system.  In Ubuntu, you need to add a package called something like "linux-libc-dev".  It's probably named something similar in debian.
		 | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| 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 |