Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2012, 11:39 AM   #16
sergeyvl12
ebook fan
sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 2518608
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
Quote:
Originally Posted by koenieee View Post
sergeyvl12, did you get it working?
I'm looking for something to write a standalone QT app (same as your checkers)
Hi!

Not yet but I will. I've just received my Kobo Touch and start immediately as soon as finish Android version of chess.

I think we need to write a plugin that allows to run standalone applications.
sergeyvl12 is offline   Reply With Quote
Old 12-28-2012, 11:53 AM   #17
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Yes, that would be a great idea!
Btw, how did you compile your checkers? Because on my Glo it says Segmentation Fault.

In my own example app, the fonts aren't working, I use Georgia that is listed in the qt embedded dir (on the Kobo), but still just Zero's. How did you solve that?
koenieee is offline   Reply With Quote
Old 01-02-2013, 09:21 AM   #18
sergeyvl12
ebook fan
sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 2518608
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
Quote:
Originally Posted by koenieee View Post
Yes, that would be a great idea!
Btw, how did you compile your checkers? Because on my Glo it says Segmentation Fault.

In my own example app, the fonts aren't working, I use Georgia that is listed in the qt embedded dir (on the Kobo), but still just Zero's. How did you solve that?
Finally I got checkers working on my Kobo Touch (2.3.1). I implemented my own touch and screen plugins for Qt. Now it can be started from telnet. The only things to do are:

1. Start from plugin
2. restart nickel after program exit

Download link is the same (first post)

koenieee, please try it on Glo.

As for fonts, I use

export QT_QWS_FONTDIR=$root/fonts

in the checkers.sh to provide my own fonts to Qt embedded.

Last edited by sergeyvl12; 01-02-2013 at 09:25 AM.
sergeyvl12 is offline   Reply With Quote
Old 01-02-2013, 03:09 PM   #19
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 342
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
It works fine on my Glo, nice work! Though it does need higher resolution graphics to look good on the Glo.
KevinShort is offline   Reply With Quote
Old 01-02-2013, 03:34 PM   #20
sergeyvl12
ebook fan
sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 2518608
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
Quote:
Originally Posted by KevinShort View Post
It works fine on my Glo, nice work! Though it does need higher resolution graphics to look good on the Glo.
Thanks, Kevin!

Now I want to provide easy way to start my applications on kobo (Sokoban, Checkers, Othello, Chess). Today I tried to develop a plugin with buttons for start applications. It started well but touch input doesn't work... It makes task more complicated.

Another problem is that a user need to update sqlite database in order to start plugin.
sergeyvl12 is offline   Reply With Quote
Old 01-03-2013, 12:27 PM   #21
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Maybe you can start the sh script directly from the plugin interface?
Using the plugin interface ah- created


When it is al working may I use your libs and tips to create a tutorial for other people?

Edit:
It works very good even with my own application. Only my fonts aren't yet working.

Thank you!

Last edited by koenieee; 01-03-2013 at 12:38 PM.
koenieee is offline   Reply With Quote
Old 01-03-2013, 12:39 PM   #22
sergeyvl12
ebook fan
sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 2518608
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
Quote:
Originally Posted by koenieee View Post
Maybe you can start the sh script directly from the plugin interface?
Plugin interface doesn't work for me any more The reason is unknown. It worked well but stop working some time ago...

(Firmware 2.1.4 Plugin Alpha Release)

The single solution I see for now is to write my own plugin that will run a "starter" application that will have buttons and can start custom applications.

Besides this plugin will update database (only my file entry to my mime type).

Quote:
Originally Posted by koenieee
When it is al working may I use your libs and tips to create a tutorial for other people?
Sure!

Quote:
Originally Posted by koenieee
Edit:
It works very good even with my own application. Only my fonts aren't yet working.
A bit of patience KoboLauncher is ready. I managed to start it from the scripts plugin. It provides a menu for select Qt application and acts as qws server. I'll upload the working solution soon (tomorrow?).

Last edited by sergeyvl12; 01-03-2013 at 03:10 PM.
sergeyvl12 is offline   Reply With Quote
Old 01-03-2013, 04:34 PM   #23
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Yes, that would be great!
Could you tell me how you set your font in qt?

I use this: QApplication::setFont(QFont("Georgia", 12));
and the QFontDatase gives Georgia as a installed font, but still I get squares as text

Edit: Nevermind, it is working!
I used the fonts you provided, and it is perfect!

Last edited by koenieee; 01-03-2013 at 05:01 PM.
koenieee is offline   Reply With Quote
Old 01-03-2013, 04:51 PM   #24
sergeyvl12
ebook fan
sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 2518608
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
Quote:
Originally Posted by koenieee View Post
Yes, that would be great!
Could you tell me how you set your font in qt?

I use this: QApplication::setFont(QFont("Georgia", 12));
and the QFontDatase gives Georgia as a installed font, but still I get squares as text
I don't use "Georgia"... I don't use any Kobo ttf font. I use "Djvu Sans" font that distributed with qt.

As I've mentioned earlier, the way to specify a directory with fonts in Qt embedded is:

export QT_QWS_FONTDIR=<dir with your fonts>
./program

Tomorrow I'll try to add "Georgia" font to my font directory and select it in application.

Quote:
Originally Posted by koenieee
but still I get squares as text
On latin characters or on some national characters?
sergeyvl12 is offline   Reply With Quote
Old 01-03-2013, 05:36 PM   #25
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Have you seen my Edit?
It is working now, with your font.

Maybe it would be kind to add a button to restart nickel, using this script for example:
http://pastebin.com/gEuQpaU5

and this piece of code:
Code:
void App::on_pushButton_2_clicked()
{
    QMessageBox msgBox;
    msgBox.setText("Wait for nickel");
    msgBox.exec();
    QProcess *proc = new QProcess();
    proc->start("/home/admin/nickel_start.sh", QStringList());
     QApplication::quit();
}
This works, but after nickel is started the Wifi isn't working (doesn't make connection), but you can read books

Last edited by koenieee; 01-03-2013 at 07:23 PM.
koenieee is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Storage Upgrade Service (Wifi, Touch, Mini, Glo, Vox) jefftheworld Kobo Reader 14 10-24-2012 02:20 PM
Kobo Glo, or Nook Touch Glow/wait for nextgen MorningSong Which one should I buy? 1 10-14-2012 09:56 AM
Kobo Glo fonts compared to Kobo Touch RobertJSawyer Kobo Reader 3 10-11-2012 01:10 AM
Kobo Glo Vs Kobo Touch Sizes (Want to use my Skindigital cover) Chocky Kobo Reader 3 09-25-2012 11:47 AM
Kobo Touch not disconnecting properly from Calibre OR Kobo Desktop - Windows 7 JBlyth Devices 1 08-03-2011 07:50 AM


All times are GMT -4. The time now is 03:12 PM.


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