Qt 4.6: Installing Qt on S60

|  | Home · All Classes · Overviews |

# Installing Qt on S60

Note: Qt for S60 has some requirements that are given in more detail in the Qt for S60 Requirements document.

Note: This document describes how to install and configure Qt for S60 from scratch. If you are using pre-built binaries, follow the instructions here.

1. Install Qt

   Uncompress the package into the directory you want Qt installed, e.g. `C:\Qt\4.6.0-tp1`.

   Note: Qt must be installed on the same drive as the S60 SDK you are using, and the install path must not contain any spaces.

2. Environment variables

   In order to build and use Qt, the `PATH` environment variable needs to be extended:

        PATH               - to locate qmake, moc and other Qt tools

   This is done by adding `c:\Qt\4.6.0-tp1\bin` to the `PATH` variable.

   On Windows the PATH can be extended by navigating to "Control Panel->System->Advanced->Environment variables".

   In addition, you must configure the environment for use with the S60 emulator. This is done by locating the Carbide.c++ submenu on the Start menu, and choosing "Configure environment for WINSCW command line".

3. Configure Qt

   To configure Qt for S60, do:

        cd \Qt\4.6.0-tp1
        configure -platform win32-g++ -xplatform symbian-abld

   For other options, type `configure -help` to get a list of all available options.

4. Build Qt

   To build Qt for the device, type:

        make release-armv5

   To build Qt for the emulator, type:

        make debug-winscw

   Congratulations, Qt is now ready to use.

5. Running Qt demos

   We've included a subset of the Qt demos in this package for you to try out. An excellent starting point is the "fluidlauncher" demo. To run the demo on a real device, you first have to install the Qt libraries on the device:

        cd src\s60installs
        make sis QT_SIS_OPTIONS=-i QT_SIS_CERTIFICATE=<certificate file> QT_SIS_KEY=<certificate key file>

   Note: You will need to supply certificate that allows installation of binaries with "All -Tcb" capability to your device.

   Similarly, install fluidlauncher to the device:

        cd embedded\fluidlauncher
        make sis QT_SIS_OPTIONS=-i

   This will create a self-signed `fluidlauncher_armv5_urel.sis` and install it to your device.

   To run the demos on the emulator simply navigate to the directory of the demo you want to see and run:

        make run

   For more information about building and running Qt programs on S60, see S60 - Introduction to using Qt.

   We hope you will enjoy using Qt.