![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jun 2023
Device: Pocketbook Inkpad 4
|
Needing help: start programming with pocketbook SDK
Hello Pocketbook Dev Community,
I just bought a Pocketbook Inkpad 4 (switched from a Kindle). Now I have seen that the system is designed a bit more open, so that own applications are possible. I have seen that the programming language for this is "C/C++". Unfortunately, since I do not actively code in this programming language (only a few basic basisc), I have not yet fully understood, how to start at all. So I wanted to ask if someone can give me a resource/explanation on how to get started with a simple application. This should first just display something. From then on, it's just learning C, i think. The following questions arise for me now, to start: Which SDK from where (I found different versions from different users)? Where is a Documentation for the SDK (commands for refresh, etc.)? How do I build the app and how do I get it on the Pocketbook? (maybe someone could provide me with an entry program that works so far that the app is openable on the pocketbook) Sorry if I miss something and/or my english is a "little bit" confusing. Thanks! ~ Vito |
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
|
It fully depends on the application you want to make.
For instance, I wanted to create an application that does some database background work. To achieve this, I need to write a shell script with some SQL. The shell script is linux command line code and SQL is for interacting with the database. There was no SDK involved with this and I leveraged the already existing code to show the user a message when it's done. I don't know much about the SDK as I haven't looked into it. If you want to learn and have the option of C or C++ I recommend starting to learn C++ first before diving into the SDK. C++ (in my opinion of course) is a much easier language to learn than C. Ig you browse GitHub for pocketbook you will find many examples of SDK apps and non SDK apps. This would also be a good starting point |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 95478
Join Date: Mar 2022
Device: Pocketbook X (1040), Pocketbook 602 pro
|
Given you asked about "commands for refresh" I assume you want to draw something on the screen.
You can check https://github.com/pmartin/pocketbook-demo. Follow demo01, maybe skip 02 and 03, check 04. Other than that, try to find small programs on GitHub and maybe check programs from https://sourceforge.net/p/pocketbook...svn/HEAD/tree/. They may be old, but the SDK hasn't changed much. There are several projects for programming in languages other than C/C++ but I'm not sure how easy it would be to use them. Maybe it is better to play around with C/C++ and SDK first. These other projects are usually simple wrappers for the same SDK. Also, check https://www.mobileread.com/forums/sh...d.php?t=353991. In addition to Go, Python, Eiffel wrappers there is https://github.com/OliverHaag/rust-inkview for Rust. Note to self: really think about writing a simple how to guide... |
![]() |
![]() |
![]() |
#4 |
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,659
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
I've been playing with the SDK here:
https://github.com/pocketbook/SDK_6.3.0/tree/6.5 It was updated last year and the most up-to-date I could find. I've managed to cross-compile a few apps for the PocketBook successfully with it. Very much a newb with it all, but with a lot of reading and a laptop with Ubuntu on it, it wasn't too bad. With git and cmake at the command line it can be a quick process. Finding missing libraries however... far less hair than when I started. The pocketbook-demo imustafin mentioned is definitely worth playing with. Some great examples and templates. Last edited by neil_swann80; 09-02-2023 at 01:02 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Programming app for pocketbook advice | phaeri | PocketBook Developer's Corner | 7 | 07-19-2024 06:49 AM |
Official SDK from PocketBook | sergeyvl12 | PocketBook Developer's Corner | 93 | 09-14-2023 07:21 AM |
[SDK] Pocketbook SDK collection | brucelee | PocketBook Developer's Corner | 12 | 10-12-2019 08:38 AM |
Dokumentation der PocketBook SDK | jtt | PocketBook | 7 | 09-12-2013 09:43 AM |
Pocketbook SDK, Linux and Wine | mikmak | PocketBook | 10 | 12-09-2009 06:17 AM |