10-03-2011, 09:10 PM | #46 | |
Enthusiast
Posts: 30
Karma: 11938
Join Date: May 2011
Location: Daegu, Korea(South)
Device: pocketbook pro 902, Jetbook Color 1
|
Quote:
Code:
$ dpkg -l | grep libc6 ii libc6 2.13-21 Embedded GNU C Library: Shared libraries ii libc6-dev 2.13-21 Embedded GNU C Library: Development Libraries and Header Files ii libc6-dev-i386 2.13-21 Embedded GNU C Library: 32-bit development libraries for AMD64 ii libc6-i386 2.13-21 Embedded GNU C Library: 32-bit shared libraries for AMD64 Code:
$ dpkg -S ioctls.h pbsdk: /usr/arm-none-linux-gnueabi/include/bits/ioctls.h pbsdk: /usr/arm-linux/include/bits/ioctls.h libc6-dev: /usr/include/x86_64-linux-gnu/bits/ioctls.h linux-libc-dev: /usr/include/x86_64-linux-gnu/asm/ioctls.h pbsdk: /usr/arm-none-linux-gnueabi/include/asm/ioctls.h linux-libc-dev: /usr/include/linux/suspend_ioctls.h linux-headers-2.6.38-liquorix-20110422: /usr/src/linux-headers-2.6.38-liquorix-20110422/include/linux/suspend_ioctls.h pbsdk: /usr/arm-linux/include/asm/ioctls.h linux-libc-dev: /usr/include/asm-generic/ioctls.h linux-headers-2.6.38-liquorix-20110422: /usr/src/linux-headers-2.6.38-liquorix-20110422/include/asm-generic/ioctls.h linux-headers-2.6.38-liquorix-20110422: /usr/src/linux-headers-2.6.38-liquorix-20110422/arch/x86/include/asm/ioctls.h |
|
10-03-2011, 10:32 PM | #47 |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Something is broken on your system then. It has nothing to do with the PocketBook SDK, because it is an existing system header file (/usr/include/bits/ioctl.h) that can't pull in the missing asm/ioctls.h file. Try building a simple native C program that includes <sys/ioctl.h> and see if that works. Maybe this is a 64/32 bit issue.
The cross-compiled versions work because the pbsdk package included asm/ioctls.h in the proper arm header directories. |
Advert | |
|
10-04-2011, 12:37 AM | #48 |
ebook fan
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
read365,
Try to add "/usr/include/x86_64-linux-gnu" directory to include paths in /usr/local/pocketbook/common.mk: Code:
ifeq ($(BUILD), emu) ... INCLUDES += /usr/include/x86_64-linux-gnu Probably they've changed the default kernel include files path but the compiler knows nothing about that? 2. Another interesting question: Why they (PocketBook) need to include the following system headers to incdemo.c? #include <sys/ioctl.h> #include <sys/mount.h> I've removed them and everything was compiled fine. Probably these headers was from the historical purpose Last edited by sergeyvl12; 10-04-2011 at 01:06 AM. |
10-04-2011, 04:51 AM | #49 |
Enthusiast
Posts: 30
Karma: 11938
Join Date: May 2011
Location: Daegu, Korea(South)
Device: pocketbook pro 902, Jetbook Color 1
|
Solve this problem
Thanks very much, sergeyvl12~!!
1. Link your linux source to /usr/src/linux directory Code:
ex) sudo ln -s linux-header-x.x.x linux And cd /usr/include sudo mv asm asm.bak sudo mv asm-generic asm-generic.bak sudo ln -fs ../src/linux/include/asm-generic . sudo ln -fs ../src/linux/include/asm-generic asm 2. install pakage g++-4.6-multilib, ia32-libs-dev, etc.... 3. After Build, run program but if you find error message "ELFCLASS64""Segmentation fault", http://packages.debian.org/squeeze/i...ngines-murrine download i386 pakage file and extract, copy libmurrine.so file to /usr/lib32/gtk-2.0/2.10.0/engines/libmurrine.so now run program Code:
$ export GTK_PATH=/usr/lib32/gtk-2.0; ./inkdemo |
10-04-2011, 12:37 PM | #50 |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
I'm not sure it's a good idea to mix headers from a different kernel version with the libc headers in /usr/include. The former are for building kernel modules, and the latter for userland programs that link against glibc. If some of the system calls changed between the version of your custom kernel and the version glibc was built against, then you can get problems when those calls are made.
I had a lot of problems when I added a 32-bit building environment to my 64-bit Slackware system. I ended up just installing a 32-bit system under VirtualBox and doing my PBSDK builds there. It's a bit more hassle, but fewer headaches. |
Advert | |
|
10-05-2011, 02:39 AM | #51 | |
Enthusiast
Posts: 30
Karma: 11938
Join Date: May 2011
Location: Daegu, Korea(South)
Device: pocketbook pro 902, Jetbook Color 1
|
Quote:
i'm using custom kernel. your advise is really helpful for me. using VirtualBox, builds so slow and annoy to me anyway thank you, rkomar |
|
10-05-2011, 12:08 PM | #52 |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
You are welcome, and good luck developing new applications.
|
10-22-2011, 08:08 AM | #53 |
Member
Posts: 15
Karma: 2010
Join Date: Mar 2008
Location: Near Pavia, Italy
Device: Pocketbook Pro 603 (Leggo IBS)
|
sdk - pocketbook pro 60x/90x
Hi guys
there is any version of SDK to compile applications on 2.1.2 RC2 firmware version? I would compile a updated version of midori, with support to html5 and userscripts (greasemonkey, or similar type of scripts). also, I would add lyric display to music player (like lyricshow and amarok). Thank you! |
11-04-2011, 03:42 PM | #54 |
Connoisseur
Posts: 80
Karma: 20837
Join Date: Aug 2011
Device: prs 505, pocketbook 903, onyx boox m92
|
|
11-05-2011, 03:05 AM | #55 |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
The PB guys seem to be adding new functions over time, but not removing any that I've noticed. So, any program built on slightly older versions of the SDK should still work, since the newer libraries still have the older functions in them. If a slightly older SDK has everything you need to build a program, then use it and it will work fine on even the latest firmware versions.
|
11-07-2011, 07:24 AM | #56 |
Junior Member
Posts: 1
Karma: 10
Join Date: Nov 2011
Device: pocketbook Pro 912
|
truecrypt or freeOTFE
is available any application for encrypting volumes, such as truecrypt or freeOTFE?
if not, anyone willing to help me for a fee? |
11-12-2011, 12:44 PM | #57 |
Wizard
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
looks like a new version (but what firmware?) was released yesterday:
http://sourceforge.net/projects/pock...SDK_Linux_1.1/ |
11-12-2011, 03:00 PM | #58 | |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
The multitasking stuff leads me to believe that this is for use with the latest firmware. Last edited by rkomar; 11-12-2011 at 03:03 PM. |
|
11-12-2011, 06:54 PM | #59 | |
Wizard
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
Quote:
|
|
11-13-2011, 08:29 AM | #60 | |
Addict
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
|
Quote:
so what do you want to encrypt? your books? Certain books? I guess encrypting whole volumes is a bit of a difficult task (as there is no root access for developers) but I can think of developing such a tool for certain folders (very much like truecrypt but not on the root partition but just one folder). But it might be helpful to have some more details regarding the application and maybe PM to discuss further details / needs. Cheers, review |
|
|
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 |