|
|
#1 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Kobo programs
I was wondering what language I have to use to create an utility with a simple GUI for Kobo?
I know Koreader uses lua with Qt but what about KSM or Cool Reader and the other Vlasovsoft utilities? They too use Qt. Is it only bash scripts? I'm not with a computer, so I can't check the files... I'm using Python 2.x, but I don't suppose it is supported out of the box. For the GUI I use wxWidgets or Kivy. Not much luck there also I think. And do we know what versions of the languages and libraries are supported? TIA |
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
You could search using "arm-linux-gnueabihf".
Luck; Ken |
|
|
|
|
|
#3 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
No Qt at all on KOReader's side. The UI toolkit, as it were, is custom, written in lua/ffi, bit-banging the framebuffer device directly. And while it is using CRe, that's the *engine* part of the CR project, not the Qt GUI, that's once again done with a bit of C++/Lua magic
Last edited by NiLuJe; 09-09-2015 at 12:46 PM. |
|
|
|
|
|
#4 |
|
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
You can try Python 3 for Kobo:
https://www.mobileread.com/forums/sho...20#post2885820 To compile the graphic libraries you need, you can use CrossToolchains, an ARM VM or a chroot. Last edited by Lucas Malor; 09-10-2015 at 03:42 PM. |
|
|
|
|
|
#5 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You forgot strong liquor.
.(Python is kind of a PITA to cross-compile, and third-party modules are even more fun). |
|
|
|
|
|
#6 |
|
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Golang works as well but the binaries it produces are huge...
|
|
|
|
|
|
#7 |
|
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
I compiled Python 3 on a quemu ARM VM and it was very simple to do. I can't say the same for any 3rd party package. PyGame was a big failure, for example.
Last edited by Lucas Malor; 09-10-2015 at 05:00 PM. |
|
|
|
|
|
#8 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Meh, qemu, that's cheating ;p.
|
|
|
|
|
|
#9 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Quote:
the languages and libraries compiling is a little over my head for now. So, the python 2.x is not included like in some other linux distros... I wanted something that I could share with other users without the need of extra language / libraries installations. I have to look at lua or golang, but since both lack a simple way to create GUI, maybe I'll stick to the pc / android programming for now. |
|
|
|
|
|
|
#10 | |
|
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Well, you could make a webapp as a shell script within my WebPortal mod (it comes with some sample apps such as a notepad). But this only works with WiFi on and you have to contend with the Kobo's webbrowser.
I have some remote plans to extend my pngshow program (which currently only displays static images) into something that could be used to make interactive things from the shell; kind of like what zenity does for simple dialogs. But I don't know if/when I'd get around to that, it also depends on when I'd need such a thing for my own mods I guess. So far apart from WebPortal none of my mods have GUI components really, except for AutoShelf which you can turn off/on with a simple tap anywhere on the screen. So lacking a real GUI, I'm currently going for very simplistic alternatives. Quote:
|
|
|
|
|
|
|
#11 | ||
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Quote:
Quote:
If we forget the GUI part for a while, from the posts till now, I can conclude that the languages that can be used without extra instalations are: C/C++, lua and golang (+shell scripts). Is that right? Last edited by embryo; 09-12-2015 at 06:01 AM. |
||
|
|
|
|
|
#12 |
|
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
|
|
|
|
|
|
#13 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
|
|
|
|
|
|
#14 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You can forget about bash and stick to basic shell features, the Kobo runs busybox ash, not any recent version of bash.
|
|
|
|
|
|
#15 |
|
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
I do not think Go is included in Kobo, so you'll have the same troubles. I don't know about Lua. If you don't want to install anything external, you have to use QT and C/C++, bu I personally discourage a beginner to do that.
With a "bash" script you can launch some Kobo command line tools, but they are not so much powerful. It depends by your goal. Where's not? Sysop skills are always a collection of Barba Tricks
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TV Programs | nickkindle | Calibre | 12 | 04-25-2011 04:25 PM |
| Greetings, programs! | Kismatt | Introduce Yourself | 8 | 01-15-2011 05:26 PM |
| Application programs? | Stonecold | Amazon Kindle | 9 | 10-22-2010 08:06 AM |
| What are some of the software programs you use? | uRwhatUr | Lounge | 27 | 02-22-2010 09:04 AM |
| Adding Programs to the v3 or v5 | slm | Astak EZReader | 1 | 10-16-2009 09:25 PM |