View Single Post
Old 01-03-2013, 06:21 PM   #1
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Cool [Tutorial] - QT Apps without nickel

Sorry for my bad english

We can run QT standalone apps without using nickel.
I created this tutorial for other people to learn and make something nice for our Kobo's.

First I want to thank the following people:

- sergeyvl12
- tonyv
maybe others, tell me if you belong to this list.

First, make sure you have a fully working Kobo Development enviroment (besure to compile QT 4.8.0, not 4.6
This tutorial requires also telnet/ssh!
Look at the attachments for all the files!

Step 1
Unzip the QT_drivers.zip package to /usr/local/Trolltech/QtEmbedded-4.8.0-arm/plugins/

Step 2
Create a little example QT application
(run qmake in the dir, then make)
or use my one.

Step 2a
Because my fonts weren't working (rounded squares, no text), I used the fonts sergeyvl12 provided, look at the attachments file.

Step 3
make somewhere on your Kobo a new Sh script and edit it to your needs:
Code:
#!/bin/sh
#Optional: export QT_PLUGIN_PATH=/mnt/onboard/checkers/qt_plugins
export LD_LIBRARY_PATH=/usr/local/Trolltech/QtEmbedded-4.8.0-arm/lib
export QWS_MOUSE_PROTO=KindleTS
export QWS_DISPLAY=Transformed:kindlefb:Rot90
#unzip fonts to /mnt/onboard
export QT_QWS_FONTDIR=/mnt/onboard/fonts
killall nickel
#run your app
/mnt/onboard/Kobo_QT_Example -qws
Step 4
Run the sh script you just saved

To exit the program tap CTRL+C, to go back to nickel you need to restart the device or run the SH script from here: http://pastebin.com/gEuQpaU5

If all went well you see something like this:


Messagebox:


Ofcourse not in color


Let me know if you got problems or tips, I hope I didn't forget something.
Attached Files
File Type: zip QT_drivers.zip (37.9 KB, 87 views)
File Type: zip Kobo_QT_Example.zip (12.1 KB, 84 views)
File Type: zip fonts.zip (4.20 MB, 69 views)

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