File: install-symbian.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (159 lines) | stat: -rw-r--r-- 10,138 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- installation.qdoc -->
  <title>Qt 4.8: Installing Qt for the Symbian Platform</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li>Installing Qt for the Symbian Platform</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
  <link rel="prev" href="installation.html" />
<p class="naviNextPrevious headerNavi">
<a class="prevPage" href="installation.html">Installation</a>
</p><p/>
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#step-1-set-up-the-development-environment">Step 1: Set Up the Development Environment</a></li>
<li class="level1"><a href="#step-2-install-qt">Step 2: Install Qt</a></li>
<li class="level1"><a href="#step-3-set-the-environment-variables">Step 3: Set the Environment variables</a></li>
<li class="level1"><a href="#step-4-configure-qt">Step 4: Configure Qt</a></li>
<li class="level1"><a href="#step-5-build-qt">Step 5: Build Qt</a></li>
<li class="level1"><a href="#step-7-installing-qt-libraries-on-the-device">Step 7: Installing Qt Libraries on the Device</a></li>
<li class="level1"><a href="#running-qt-demos">Running Qt demos</a></li>
</ul>
</div>
<h1 class="title">Installing Qt for the Symbian Platform</h1>
<span class="subtitle"></span>
<!-- $$$install-Symbian.html-description -->
<div class="descr"> <a name="details"></a>
<p><a href="http://qt.nokia.com/downloads">Qt SDK</a> provides all the necessary tools and libraries for developing Qt applications. However, if you want to build Qt itself for Symbian, follow the instructions below.</p>
<p>Qt for the Symbian platform has some requirements that are given in more detail in the <a href="requirements-symbian.html">Qt for the Symbian platform Requirements</a> document.</p>
<p>This document describes how to install and configure Qt for the Symbian platform from scratch.</p>
<a name="step-1-set-up-the-development-environment"></a>
<h2>Step 1: Set Up the Development Environment</h2>
<p>Make sure your Symbian development environment is correctly installed and patched as explained in the <a href="requirements-symbian.html">Qt for the Symbian platform Requirements</a> document.</p>
<p>After you have finished the Symbian development environment setup, it is good to verify that environment is functional for example by compiling one of the pure Symbian examples for both emulator and HW. This can be done from command prompt as follows:</p>
<pre class="cpp"> cd &lt;Your SDK path&gt;\S60CppExamples\Note\group
 bldmake bldfiles
 abld build winscw udeb
 abld build gcce urel</pre>
<p>If all steps pass without errors your Symbian development environment is very likely installed correctly.</p>
<a name="step-2-install-qt"></a>
<h2>Step 2: Install Qt</h2>
<p>Uncompress the <a href="http://qt.nokia.com/downloads">downloaded</a> source package into the directory you want Qt installed, e.g&#x2e; <tt>C:\Qt\4.8&#x2e;2</tt>.</p>
<p><b>Note:</b> Qt must be installed on the same drive as the Symbian SDK you are using, and the install path must not contain any spaces.</p>
<a name="step-3-set-the-environment-variables"></a>
<h2>Step 3: Set the Environment variables</h2>
<p>In order to build and use Qt, the <tt>PATH</tt> environment variable needs to be extended:</p>
<pre class="cpp"> PATH               - to locate qmake, moc and other Qt tools</pre>
<p>This is done by adding <tt>c:\Qt\4.8&#x2e;2\bin</tt> to the <tt>PATH</tt> variable.</p>
<p>On Windows the<tt>PATH</tt> can be extended by navigating to &quot;Control Panel-&gt;System-&gt;Advanced-&gt;Environment variables&quot;.</p>
<p>In addition, you must configure the environment for use with the Symbian emulator. This is done by locating the Carbide.c++ submenu on the Start menu, and choosing &quot;Configure environment for WINSCW command line&quot;.</p>
<p>If you are planning to use <tt>abld</tt> (the default build system that comes with the S60 SDK) to build Qt, you will also need to set the following environment variable:</p>
<pre class="cpp"> SYMBIANBUILD_DEPENDENCYOFF=1</pre>
<p>This is not necessary for other applications, only when building Qt.</p>
<a name="step-4-configure-qt"></a>
<h2>Step 4: Configure Qt</h2>
<p>To configure Qt for the Symbian platform, do:</p>
<pre class="cpp"> cd \Qt\4.8.2
 configure -platform win32-g++ -xplatform symbian-abld</pre>
<p>(to build the tools using MinGW, and the libraries using abld)</p>
<p><b>or</b></p>
<pre class="cpp"> cd \Qt\4.8.2
 configure -platform win32-g++ -xplatform symbian-sbsv2</pre>
<p>(to build the tools using MinGW, and the libraries using SBSv2)</p>
<p>Type <tt>./configure -help</tt> to get a list of all available options. The <a href="configure-options.html">Configuration Options for Qt</a> page gives a brief overview of these.</p>
<p>SBSv2 (also known as <a href="http://projects.developer.nokia.com/raptor/wiki">Raptor</a>) is a next-generation Symbian build system. SBSv2 is not officially supported by any of the S60 SDKs currently available from Forum Nokia.</p>
<a name="step-5-build-qt"></a>
<h2>Step 5: Build Qt</h2>
<p>To build Qt for the emulator, type:</p>
<pre class="cpp"> make debug-winscw</pre>
<p>To build Qt for the device, type:</p>
<pre class="cpp"> make release-armv5</pre>
<p>Congratulations, Qt is now ready to use.</p>
<a name="step-7-installing-qt-libraries-on-the-device"></a>
<h2>Step 7: Installing Qt Libraries on the Device</h2>
<p>To run a Qt application on a device, it must have Qt libraries installed.</p>
<p>Symbian devices have a pre-installed Qt as follows:</p>
<ul>
<li>Symbian Anna devices have the pre-installed Qt, Qt Mobility, and Qt Webkit.</li>
<li>Symbian Belle and later devices have the pre-installed Qt on the device firmware.</li>
</ul>
<p><a href="http://www.developer.nokia.com/Community/Wiki/Nokia_Smart_Installer_for_Symbian">Nokia Smart Installer for Symbian</a> deploys the required Qt libraries to supported S60 and Symbian devices if the libraries are not pre-installed.</p>
<p>Nokia Developer site's <a href="http://www.developer.nokia.com/Devices/Device_specifications/?filter1=qt">Device specifications</a> provide information on which devices have a pre-installed Qt and the used Qt version.</p>
<p>To create your own Qt installation package, do as follows:</p>
<pre class="cpp"> cd src\s60installs
 make sis QT_SIS_OPTIONS=-i QT_SIS_CERTIFICATE=&lt;certificate file&gt; QT_SIS_KEY=&lt;certificate key file&gt;
 cd ..\3rdparty\webkit\WebCore
 make sis QT_SIS_OPTIONS=-i QT_SIS_CERTIFICATE=&lt;certificate file&gt; QT_SIS_KEY=&lt;certificate key file&gt;</pre>
<p>The Qt libraries are built with &quot;All -Tcb&quot; capability, so they can support all types of applications. If you don't have a suitable certificate, you can patch the binaries in either of the following ways:</p>
<ul>
<li>If you have no certificate, build a self-signed Qt:<pre class="cpp"> cd src\s60installs
 make sis QT_SIS_OPTIONS=-i
 cd ..\3rdparty\webkit\WebCore
 make sis QT_SIS_OPTIONS=-i</pre>
</li>
<li>If you have a symbian-signed developer certificate, specify the capabilities you can sign for, for example:<pre class="cpp"> cd src\s60installs
 patch_capabilities.pl Qt_template.pkg release-armv5 &quot;ALL -Tcb -AllFiles -DRM&quot;
 make sis QT_SIS_OPTIONS=-i QT_SIS_CERTIFICATE=&lt;certificate file&gt; QT_SIS_KEY=&lt;certificate key file&gt;
 cd ..\3rdparty\webkit\WebCore
 patch_capabilities.pl QtWebKit_template.pkg release-armv5 &quot;ALL -Tcb -AllFiles -DRM&quot;
 make sis QT_SIS_OPTIONS=-i QT_SIS_CERTIFICATE=&lt;certificate file&gt; QT_SIS_KEY=&lt;certificate key file&gt;</pre>
</li>
</ul>
<a name="running-qt-demos"></a>
<h2>Running Qt demos</h2>
<p>We've included a subset of the Qt demos in this package for you to try out. An excellent starting point is the &quot;fluidlauncher&quot; demo.</p>
<p>Similarly, install fluidlauncher to the device:</p>
<pre class="cpp"> cd demos\embedded\fluidlauncher
 make sis QT_SIS_OPTIONS=-i</pre>
<p>This will create a self-signed <tt>fluidlauncher.sis</tt> and install it to your device.</p>
<p>To run the demos on the emulator simply navigate to the directory of the demo you want to see and run:</p>
<pre class="cpp"> make run</pre>
<p>For more information about building and running Qt programs on the Symbian platform, see <a href="symbian-with-qt-introduction.html">The Symbian platform - Introduction to Qt</a>. We hope you will enjoy using Qt.</p>
</div>
<!-- @@@install-Symbian.html -->
<p class="naviNextPrevious footerNavi">
<a class="prevPage" href="installation.html">Installation</a>
</p>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>