Home · All Classes · All Functions · Overviews

The Symbian platform - Introduction to Qt

Required tools

See Qt for the Symbian platform Requirements to see what tools are required to use Qt for the Symbian platform.

Installing Qt and running demos

Follow the instructions found in Installing Qt on the Symbian platform from a Binary Package to learn how to install Qt using a binary package and how to build and run Qt demos.

Follow the instructions found in Installing Qt on the Symbian platform to learn how to install Qt using using source package and how to build and run the Qt demos.

Building your own applications

If you are new to Qt development, have a look at How to Learn Qt. In general, the difference between developing a Qt application on the Symbian platform compared to any of the other platforms supported by Qt is not that big.

Once you have created a .pro file for your project, generate the Symbian specific Bld.inf and .mmp files this way:

     qmake

For more information on how to use qmake have a look at the qmake Tutorial.

Now you can build the Qt for the Symbian platform application with standard build tools. By default, running make will produce binaries for the emulator. However, the Symbian platform comes with several alternative build targets, as shown in the table below:

debug-winscwBuild debug binaries for the emulator (default). It is currently not possible to build release binaries for the emulator.
debug-gcceBuild debug binaries for hardware using GCCE.
release-gcceBuild release binaries for hardware using GCCE.
debug-armv5Build debug binaries for hardware using RVCT.
release-armv5Build release binaries for hardware using RVCT.
runRun the emulator binaries from the build directory.
sisCreate signed .sis file for project.

The following lines perform a debug build for the emulator and deploy all the needed files:

     make debug-winscw

To work on your project in Carbide, simply import the .pro file by right clicking on the project explorer and executing "Import...".

Installing your own applications

To install your own applications on hardware, you need a signed .sis file. (Refer to the Platform Security Article for more informations about self-signing.) The signed .sis file can be created with make sis target. sis target is only supported for executables or projects with DEPLOYMENT statements. By default the sis target will create signed .sis file for last build target. For example, the following sequence will generate the needed makefiles, build the project for debug-winscw and release-armv5, and create self-signed .sis file for release-armv5 target:

     qmake
     make debug-winscw release-armv5
     make sis

If you want to use different certificate information or override the default target for .sis file creation you can use the environment variables as shown in the table below:

QT_SIS_OPTIONSOptions accepted by .sis creation. See Supported options below. By default no otions are given.
QT_SIS_TARGETTarget for which .sis file is created. Accepted values are build targets listed in previous table. By default last build target.
QT_SIS_CERTIFICATEThe certificate file used for signing. By default self-signed certificate.
QT_SIS_KEYThe certificate's private key file. By default key is associated to self-signed certificate.
QT_SIS_PASSPHRASEThe certificate's private key file's passphrase. By default empty.

The suppported options for QT_SIS_OPTIONS:

-iInstall the package right away using PC suite.
-pOnly preprocess the template .pkg file.
-c=<file>Read certificate information from a file.

Execute the createpackage.pl script without any parameters for detailed information about options. By default no otions are given.

For example:

    set QT_SIS_TARGET=debug-armv5
    make sis

The environment variables for make can also be given as parameters:

    make sis QT_SIS_TARGET=debug-armv5

If you want to install the program immediately, make sure that the device is connected to the computer in "PC Suite" mode, and run sis target with the QT_SIS_OPTIONS=-i, like this:

    set QT_SIS_OPTIONS=-i
    make sis


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.0