Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-09-2015, 08:04 AM   #1
embryo
Fanatic
embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.
 
embryo's Avatar
 
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
embryo is offline   Reply With Quote
Old 09-09-2015, 09:42 AM   #2
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
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
Ken Maltby is offline   Reply With Quote
Advert
Old 09-09-2015, 11:43 AM   #3
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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 11:46 AM.
NiLuJe is offline   Reply With Quote
Old 09-10-2015, 02:39 PM   #4
Lucas Malor
Pain in the arse
Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.
 
Lucas Malor's Avatar
 
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 02:42 PM.
Lucas Malor is offline   Reply With Quote
Old 09-10-2015, 02:51 PM   #5
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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).
NiLuJe is offline   Reply With Quote
Advert
Old 09-10-2015, 03:21 PM   #6
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
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...
frostschutz is offline   Reply With Quote
Old 09-10-2015, 03:58 PM   #7
Lucas Malor
Pain in the arse
Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.
 
Lucas Malor's Avatar
 
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
Quote:
Originally Posted by NiLuJe View Post
You forgot strong liquor. .

(Python is kind of a PITA to cross-compile, and third-party modules are even more fun).
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 04:00 PM.
Lucas Malor is offline   Reply With Quote
Old 09-10-2015, 06:52 PM   #8
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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.
NiLuJe is offline   Reply With Quote
Old 09-11-2015, 05:28 AM   #9
embryo
Fanatic
embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.
 
embryo's Avatar
 
Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
Quote:
Originally Posted by Lucas Malor View Post
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.
I'm new to programming, so all
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.
embryo is offline   Reply With Quote
Old 09-11-2015, 06:10 AM   #10
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
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:
I wanted something that I could share with other users without the need of extra language / libraries installations.
For the smallest footprint you'd have to stick to C/C++ and use the libraries already present on the Kobo.
frostschutz is offline   Reply With Quote
Old 09-11-2015, 06:25 AM   #11
embryo
Fanatic
embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.
 
embryo's Avatar
 
Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
Quote:
Originally Posted by frostschutz View Post
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.
Hmmm, I was thinking of something independent of nickel...
Quote:
For the smallest footprint you'd have to stick to C/C++ and use the libraries already present on the Kobo.
So, are you using C/C++ or something else?

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 05:01 AM.
embryo is offline   Reply With Quote
Old 09-11-2015, 06:48 AM   #12
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by embryo View Post
So, are you using C/C++ or something else?
I'm not much of a C programmer really.
In my case it's mostly shell scripts, and some C snippets to help things along.
frostschutz is offline   Reply With Quote
Old 09-11-2015, 06:59 AM   #13
embryo
Fanatic
embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.
 
embryo's Avatar
 
Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
Quote:
Originally Posted by frostschutz View Post
I'm not much of a C programmer really.
In my case it's mostly shell scripts, and some C snippets to help things along.
I forgot about bash.
So, let's add this to the available ways...

Thank you for the info.
embryo is offline   Reply With Quote
Old 09-11-2015, 11:50 AM   #14
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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.
NiLuJe is offline   Reply With Quote
Old 09-12-2015, 06:58 AM   #15
Lucas Malor
Pain in the arse
Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.
 
Lucas Malor's Avatar
 
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.

Quote:
Originally Posted by NiLuJe View Post
Meh, qemu, that's cheating ;p.
Where's not? Sysop skills are always a collection of Barba Tricks
Lucas Malor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TV Programs nickkindle Calibre 12 04-25-2011 03:25 PM
Greetings, programs! Kismatt Introduce Yourself 8 01-15-2011 04:26 PM
Application programs? Stonecold Amazon Kindle 9 10-22-2010 07:06 AM
What are some of the software programs you use? uRwhatUr Lounge 27 02-22-2010 08:04 AM
Adding Programs to the v3 or v5 slm Astak EZReader 1 10-16-2009 08:25 PM


All times are GMT -4. The time now is 02:26 AM.


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