Quantcast
Channel: MobileRead Forums - Kobo Developer's Corner
Viewing all articles
Browse latest Browse all 1561

[Tutorial] - QT Apps without nickel

$
0
0
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)
File Type: zip Kobo_QT_Example.zip (12.1 KB)
File Type: zip fonts.zip (4.20 MB)

Viewing all articles
Browse latest Browse all 1561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>