forked from FilipBE/qtextended
-
Notifications
You must be signed in to change notification settings - Fork 39
Application development
tiagovaz edited this page Dec 19, 2011
·
1 revision
1) develop it first on PC in QtCreator. It runs as normal Qt/X11. During this step you'll have code completion and integrated debugger.
2) port it to QtMoko
- download and install QT SDK from nokia (http://qt.nokia.com/downloads) and choose "Qt SDK for Linux/X11" - choice of 32bit or 64bit is on you.
- download and build QtMoko from sources, e.g. into directory ~/qte. Howto is here:
http://github.com/radekp/qtmoko/blob/master/README
- you can start new QT application, or open existing one from QtMoko git. Good example is QMplayer in src/3rdparty/application/qmplayer. You can open the project file from QtCreator and it should work when you compile and launch it.
- you have your app running on PC. Now you need to write project file for qtmoko. It's called qbuild.pro QMplayer is also good example.
- build ARM binary for QtMoko. In your app directory do:
~/qte/build/bin/qbuild
- now you have binary for qtmoko copy it to neo:
scp ~/qte/build/src/3rdparty/applications/qmplayer/qmplayer root at 192.168.0.202:/
- test it
ssh root at 192.168.0.202 source /opt/qtmoko/qpe.env cd / ./qmplayer
- congratulations if you got here
- for making qtmoko package
~/qte/build/bin/qbuild packages
- for making online download repository you need packages.list file. Go to the dir with *.qpk of your app and do:
~/qte/qtmoko/bin/mkPackages
- if your package does not have qtmoko look and feel, place it in sub folder of qtmoko git - e.g. qtmoko apps directory is best place.
- for qtopia api see really great html documentation in doc/html/index.hml
- dont use quicklaunch in qbuild.pro if you want to produces application binary. Otherwise compiling produces just .so.
- Radek's mail describing how he builds QtMoko applications - using QtCreator and port afterwards.
- 'Qt Extended Improved' page in wiki.openmoko.org - has some hints on building QTE and an example application.
- don't forget to take a look at the qtmoko/doc/ directory tree inside your local QT Extended installation!