Qt Extended Improved
From Openmoko
(New page: Qt Software cancelled the Qt Extended project on 3 March 2009 ([http://www.qtsoftware.com/about/news/qt-software-discontinues-qt-extended Qt Software discontinues Qt Extended]). The commun...) |
|||
Line 1: | Line 1: | ||
+ | <h2>Community Resources</h2> | ||
+ | |||
Qt Software cancelled the Qt Extended project on 3 March 2009 ([http://www.qtsoftware.com/about/news/qt-software-discontinues-qt-extended Qt Software discontinues Qt Extended]). The community created a fork of it and called it Qt Extended Improved: | Qt Software cancelled the Qt Extended project on 3 March 2009 ([http://www.qtsoftware.com/about/news/qt-software-discontinues-qt-extended Qt Software discontinues Qt Extended]). The community created a fork of it and called it Qt Extended Improved: | ||
Line 49: | Line 51: | ||
scp -r $QPEDIR/image/* 192.168.0.202:/opt/Trolltech/Qtopia/ | scp -r $QPEDIR/image/* 192.168.0.202:/opt/Trolltech/Qtopia/ | ||
+ | |||
+ | <h2>Compiling an Example Qt Extended App</h2> | ||
+ | |||
+ | First set those indispensable Qt environment variables: | ||
+ | |||
+ | desktop# . /opt/QtExtended/setpaths | ||
+ | |||
+ | Next create a directory <tt>/opt/Qtopia/build/myapps</tt>. Copy the example app. Rename the example app to something that makes sense (how about "example"!). Create the <tt>Makefile</tt> and build the example. | ||
+ | |||
+ | desktop# mkdir /opt/QtExtended/build/myapps | ||
+ | desktop# cd /opt/QtExtended/build/myapps | ||
+ | desktop# cp -R $QTOPIA_DEPOT_PATH/examples/application . | ||
+ | desktop# mv application example | ||
+ | desktop# cd example | ||
+ | desktop# $QPEDIR/bin/qbuild | ||
+ | |||
+ | Now you have an executable <tt>example</tt>. It won't execute on your workstation - you must secure copy it to your FreeRunner. Then secure shell into the FreeRunner, import the Qtopia environment variables and execute the app: | ||
+ | |||
+ | desktop# scp example root@freerunner:/home/root | ||
+ | root@192.168.0.202's password: | ||
+ | example 100% 33KB 33.4KB/s 00:00 | ||
+ | desktop# ssh 192.168.0.202 | ||
+ | root@freerunner's password: | ||
+ | freerunner:~# . /opt/Trolltech/Qtopia/qpe.env | ||
+ | freerunner:~# ./example | ||
+ | |||
+ | You should see a message on FreeRunner's LCD. | ||
+ | |||
+ | [[Image:Qt_extended_sdk_example_screenshot.png]] | ||
[[Category:Advanced End User]] | [[Category:Advanced End User]] |
Revision as of 18:17, 25 March 2009
Contents |
Community Resources
Qt Software cancelled the Qt Extended project on 3 March 2009 (Qt Software discontinues Qt Extended). The community created a fork of it and called it Qt Extended Improved:
Installing Qt Extended Improved snapshot on the FreeRunner
Download the kernel and rootfs
Read the instructions about how to flash your freerunner.
Qt Extended Improved uses the latest FSO kernel and rootfs. Download the kernel and rootfs to your workstation prebuilt rootfs images. Boot your FreeRunner in dfu mode and use the dfu commands:
desktop# dfu-util -d 0x1d50:0x5119 -a kernel -R -D Neo_kernel_Backup_200902212230.bin ... stuff ... desktop# dfu-util -d 0x1d50:0x5119 -a rootfs -R -D Neo_rootfs_Backup_200902212230.jffs2 ... more stuff ...
Building the Qt Extended Improved SDK
First download the snapshot from the git repository. Then make the build directory and set the environment variables. In this example, I write the environment variables to a file then I source the file.
mkdir -p /opt/QtExtended/build cd /opt/QtExtended tar -xzvf qt-extended-improved.tar.gz echo "export QTOPIA_DEPOT_PATH=/opt/QtExtended/qt-extended-improved" >> setpaths echo "export QPEDIR=/opt/QtExtended/build/" >> setpaths . setpaths
Install the toolchain:
cd /opt wget http://qtextended.org/downloads/toolchains/arm920t-eabi.tgz tar xzvf arm920t-eabi.tgz /
Do the linux three-step: configure, make, make install.
cd $QPEDIR $QTOPIA_DEPOT_PATH/configure -device neo -D _FORTIFY_SOURCE=0 make make install bin/qbuild sdk
The binaries are in the $QPEDIR/image directory. You can copy these to your freerunner over usb like this:
scp -r $QPEDIR/image/* 192.168.0.202:/opt/Trolltech/Qtopia/
Compiling an Example Qt Extended App
First set those indispensable Qt environment variables:
desktop# . /opt/QtExtended/setpaths
Next create a directory /opt/Qtopia/build/myapps. Copy the example app. Rename the example app to something that makes sense (how about "example"!). Create the Makefile and build the example.
desktop# mkdir /opt/QtExtended/build/myapps desktop# cd /opt/QtExtended/build/myapps desktop# cp -R $QTOPIA_DEPOT_PATH/examples/application . desktop# mv application example desktop# cd example desktop# $QPEDIR/bin/qbuild
Now you have an executable example. It won't execute on your workstation - you must secure copy it to your FreeRunner. Then secure shell into the FreeRunner, import the Qtopia environment variables and execute the app:
desktop# scp example root@freerunner:/home/root root@192.168.0.202's password: example 100% 33KB 33.4KB/s 00:00 desktop# ssh 192.168.0.202 root@freerunner's password: freerunner:~# . /opt/Trolltech/Qtopia/qpe.env freerunner:~# ./example
You should see a message on FreeRunner's LCD.