Symbian S60 Development EnvironmentFirst we need to setup a Symbian S60 Development Environment. No Qt-related stuff here yet.
- Install ActiveState Perl v220.127.116.118 (use ONLY version 18.104.22.1688, other versions are not compatible).
Windows Vista / Windows 7: make sure to run the installer as administrator.
If not, ActiveState Perl Setup cannot modify the PATH. The workaround is to manually add C:\Perl\bin to the system environment variable PATH.
- Install Carbide.c++ IDE (at least version 2.3.0) or Symbian Application Developer Toolkit (ADT) (at least version 1.4, includes Carbide.c++ IDE 2.3.0.)
I'm curious if Carbide.c++ is still needed when we use Qt Creator as the IDE.
- Click Start Menu -> Carbide.c++ -> Configure environment for WINSCW command line.
- Install Symbian S60 Platform SDK appropriate for your target device (includes GCCE compiler).
Since we'll be using Qt for Symbian, it doesn't really matter which S60 Platform SDK you're using, any version above 3rd Edition FP1 (3.1) is good. 5th Edition seems to be a good choice though.
When asked for Eclipse installation, just skip it.
When prompted for installation of CSL ARM Q1C Toolchain, click Yes to install.
- There are a few compatibility issues
- You will be prompted by the SDK installer to apply the GCCE patch for MS Vista from <SDK>\plugins\vistapatch\ (<SDK> is C:\S60\devices\S60_5th_Edition_SDK_v1.0 by default). There are instructions in the help.txt file in that directory.
- The SDK will normally register itself in the file: C:\Program Files\Common Files\Symbian\devices.xml, however on Vista it is forced to create the file in %USERPROFILE%\AppData\Local\VirtualStore\Program Files\Common Files\Symbian\devices.xml. Copy the file manually into the correct location.
- Install the Open C/C++ Plug-in for each Symbian Platform SDK you have (though with Qt for Symbian, you just need to have one Symbian SDK).
If you're working on a S60 3rd Edition, FP1 SDK (the earliest version on which Qt will run) you will also need to reinstall the RPipe library. This was installed by the OpenC plugin SDK to the S60_3rd_FP1_3 SDK root directory: \Symbian\9.2\S60_3rd_FP1_3\RPipe_3.1.zip:If you want to debug your app on your phone, download AppTRK for your phone and install it. e.g. for Nokia 5800 xpressMusic which runs Symbian S60 5th Edition, you download s60_5_0_app_trk_3_1_2.sisx.
- Uncompress RPipe_3.1.zip over the SDK root \Epoc32\ tree (e.g. \Symbian\9.2\S60_3rd_FP1_3\Epoc32\).
- Download and replace the file <SDK>\epoc32\tools\getexports.exe with getexports.exe
Qt for Symbian Development EnvironmentYou can then setup Qt for Symbian development environment:
- Install Qt for Symbian SDK.
Make sure to change the Qt folder to C:\Qt\4.6.2-symbian because C:\Qt\4.6.2 will be used for Qt for Windows. Each Qt SDK (e.g. for Windows and for Symbian) will have its own folder. Though you don't have to install Qt SDK for Windows if you only develop for Symbian, it doesn't hurt to name your Qt installation folder clearly.
- Remove previous Qt versions from phone
- Install either qt_installer.sis (Qt full package) or qtdemos.sis (Qt package + demos) to your phone or emulator.
Setup Qt Creator with Qt for Symbian
- Install Qt SDK
- Tools -> Options.
- Qt4 -> Qt Versions. S60's Qt must be detected from Qt for Symbian SDK.
- Qt4 -> S60 SDKs: ?
For more information about Qt C++ development, check out C++ GUI Programming with Qt 4 (2nd Edition).
To learn Symbian C++ development, I recommend Porting to the Symbian Platform: Open Mobile Development in C/C++ (Symbian Press).
- Tutorial videos: Qt development for Symbian | Qt Labs
- Qt for Symbian - 1. Setting up a Symbian/S60 development environment [video]
- Qt for Symbian - 2. Setting up Qt for Symbian [video]
- Qt for Symbian - 3. Developing in Qt Creator [video]
- Symbian Developer Wiki - Qt Quick Start