Build Qt for Symbian

About Symbian development environment, please have a look at:
SYMBIAN Development Environment – 1
SYMBIAN Development Environment – 2

Build Qt for Symbian

Platform: Windows XP with SP3(now we only support Qt/S60 on it.)

0. Patches

Patches for S60 development environment

1. Build Qt for symbian

You need to make sure to use Symbian X86 compiler (version 3.2.5 build 473).

Follow this steps in C:Qt4.4.2-pyramiddocinstall-s60.html

Uncompress the package and put it in C:Qt4.4.2-pyramid.

Set your PATH including C:Qt4.4.2-pyramidbin.


cd Qt4.4.2-pyramid
configure -platform win32-mwc -xplatform symbian-abld -qconfig symbian


bldmake bldfiles
abld build winscw udeb

Notice: Please store the Qt/S60 repository and Symbian SDK in the same hard disk drive, maybe you can store them in different drives, and then use tools like WinMount to mount them to same drive.

Before configure and build, you need set EPOCROOT to your SDK, I use “/S60/devices/S60_3rd_FP2_SDK/”, just because my sdk is in C:S60devicesS60_3rd_FP2_SDK.

2. Build Examples

2-1. How to build Qt/S60 application


Please make sure to use the qmake in your Qt/S60 build.

bldmake bldfiles
abld build winscw udeb

Run Carbide.c++ v1.3, In the tab of “Symbian Project Navigator”, right click mouse in white space, choose “Import”, in the “Import” dialog, choose “Symbian OS Bld.inf file” under “Symbian OS”, then “Next”, then “Browse…” to choose the bld.inf in above directory. Then you could build it, run it and debug it in Carbide.c++.

2-2. XML HTML info Example


Note: Standard out is redirected on some platforms. On Symbian using Open C stdout is by default directed to the console window, but this window may not always be visible. To redirect to a file instead, locate the c:\system\data\config.ini file (on either the emulator or the device) and change STDOUT to point to MEDIA4. This will redirect the console to c:\system\data\out.txt.

For me, the config.ini is C:S60devicesS60_3rd_FP2_SDKepoc32winscwcsystemdataconfig.ini, the out.txt is C:S60devicesS60_3rd_FP2_SDKepoc32winscwcsystemdataout.txt.

Run the Emulator, Start->S60 Developer Tools->3rd Edition FP2 SDK->Emulator.

In the Emulator, go to Menu->Installations->eshell, and type htmlinfo in prompt mode.

2-3. analogclock Example

Now it works fine for me.

Qt/S60 team are still working on the project to make all things work.

3. Build Qt applications for your mobile phone

Please have a look at C:Qt4.4.2-pyramidREADME and C:Qt4.4.2-pyramidINSTALL.

Just go to your Qt application directory,

bldmake bldfiles
abld build gcce udeb

Create a package for your mobile phone:

createpackage yourqtapplication_gcce_udeb.pkg

Note: Now the package will include Qt library in the .pkg file, if you already have a Qt application package installed, maybe you can’t install the next one. Then please remove these lines from the .pkg file of your second application.

“epoc32releasegcceudebQtGui.dll” – “c:sysbinQtGui.dll”
“epoc32releasegcceudebQtNetwork.dll” – “c:sysbinQtNetwork.dll”
“epoc32releasegcceudebQtCore.dll” – “c:sysbinQtCore.dll”

Did you like this? Share it:

Join the Conversation

1 Comment

  1. 您好,我在FP2上安装了Qt,根据安装提示,成功在C:S60devicesS60_3rd_FP2_SDKepoc32releasewinscwudeb 目录下生成了10/24/2008 12:21 PM 343,420 addressbook.exe10/24/2008 12:22 PM 181,420 analogclock.exe10/24/2008 12:21 PM 241,728 basicdrawing.exe10/24/2008 12:22 PM 217,856 calculator.exe10/24/2008 12:22 PM 238,268 calendarwidget.exe10/24/2008 12:21 PM 301,224 chart.exe10/24/2008 12:21 PM 218,076 collidingmice.exe10/24/2008 12:21 PM 192,108 concentriccircles.exe10/24/2008 12:23 PM 463,924 deform.exe10/24/2007 01:53 PM 157,470 eikcore.lib10/24/2007 01:53 PM 37,162 eiksrv.lib10/24/2007 01:53 PM 10,772 eiksrvc.lib10/24/2008 12:21 PM 293,004 elasticnodes.exe10/24/2008 12:23 PM 398,180 fluidlauncher.exe10/24/2008 12:21 PM 237,740 http://ftp.exe10/24/2008 12:22 PM 173,972 htmlinfo.exe10/24/2008 12:21 PM 239,296 imagecomposition.exe10/24/2008 12:22 PM 186,968 lineedits.exe10/24/2007 01:31 PM 12,880 netmeta.lib10/24/2008 12:21 PM 369,604 padnavigator.exe10/24/2008 12:22 PM 240,380 painterpaths.exe10/24/2008 12:23 PM 460,248 pathstroke.exe10/24/2008 12:20 PM 194,992 qgif.dll10/24/2008 12:21 PM 208,980 qico.dll10/24/2008 12:20 PM 708,644 qjpeg.dll10/24/2008 12:20 PM 859,336 qmng.dll10/24/2008 12:05 PM 6,907,908 QtCore.dll10/24/2008 12:05 PM 1,170,336 QtCore.lib10/24/2008 12:18 PM 24,973,164 QtGui.dll10/24/2008 12:18 PM 3,649,290 QtGui.lib10/24/2008 12:20 PM 781,156 qtiff.dll10/24/2008 12:19 PM 2,164,780 QtNetwork.dll10/24/2008 12:19 PM 197,578 QtNetwork.lib10/24/2008 12:19 PM 420,488 QtTest.dll10/24/2008 12:19 PM 23,934 QtTest.lib10/24/2008 12:22 PM 188,796 shapedclock.exe10/24/2008 12:23 PM 380,228 styledemo.exe10/24/2008 12:22 PM 223,120 tetrix.exe10/24/2007 05:55 PM 34,364 timezonelocalization.lib10/24/2008 12:22 PM 222,868 transformations.exe10/24/2008 12:23 PM 161,356 tutorial1.exe10/24/2008 12:23 PM 168,672 tutorial2.exe10/24/2008 12:23 PM 185,444 tutorial3.exe10/24/2008 12:23 PM 214,752 tutorial4.exe10/24/2008 12:23 PM 174,264 tutorial5.exe10/24/2007 11:06 AM 16,098 viewcli.lib但是在运行其中的某个例子时候就无法启动emulator了!出现了一些原来没有的莫名其妙的错误!在我使用abld reallyclean过后, 生成的这些文件无法删除,但是emulator可以和原来一样正常启动!无法启动的原因,我在epoc.out那个日志文件中看到,一些类似于这样的东西:AppArcServerThread Killed -11就是某些emulator要启动的软件变得无法启动了!请问,是我的FP2还需要安装plug-in吗? 我看到安装说明上没说FP2要安装其他包,我才安装的!

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.