Skip to content

Application development

tiagovaz edited this page Dec 19, 2011 · 1 revision

Table of Contents

Using QtCreator first and then port to QtMoko

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

Prerequisities

  • 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 

Step 1 - develop on PC

  • 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.

Step 2 - port to QtMoko

  • 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 

Some useful notes

  • 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.

References