Development of QT for Symbian applications-reprint

Source: Internet
Author: User
Tags configuration settings
 

Development of QT for Symbian applications

This article translated from development of QT for Symbian based applications

Qt creator 1.3 provides initial support for developing applications using QT as the Symbian platform.Note that this version is highly experimental and does not target production and development. The initial goal is to familiarize Symbian developers with QT creator and provide us with feedback so that we can improve QT Creator for future versions.Please use QT creator to develop the email list or IRC on Wikipedia to provide us with feedback.

Introduction to Symbian applications

You need to install the following software on the PC. Only supports windows development.

  • S60 Platform SDK 3rd edition FP1 or later
  • Open C/C ++ v1.6.0 or later (install it in all s60 sdks that you will use QT. Has been included in the QT for Symbian binary installation package .)
  • Gcce arm toolchain or rvct 2.2 [Build 686] or its updated version (not free) already included in s60 platform sdks (your environment needs to find this compiler in path .)
  • Qt for Symbian 4.6.0, installed in the s60sdks you want to use

To deploy and run applications on a terminal, you need the following resources:

  • Nokia USB drive, as attached to PC Kit
  • App trk applications for your terminal

To run the QT application on a real machine, install the following software packages on your terminal. You can find these software packages in the s60 SDK of Open C/C ++ installed:

  • Nokia_plugin \ openc \ s60opencsis \ pips_s60 _ <version>. Sis
  • Nokia_plugin \ openc \ s60opencsis \ openc_ssl_s60 _ <version>. Sis
  • Nokia_plugin \ opencpp \ s60opencppsis \ stdcpp_s60 _ <version>. Sis

If you want to run the application in the Symbian simulator, you also need to install carbide. c ++ v2.0.0 or later.

Set QT creator

After installing s60 Platform SDK and QT for Symbian, you can run QT creator. At this time, it automatically detects installed sdks and corresponding QT versions. For each detected s60 SDK corresponding to QTTools> options...> qt4> QT versionsA specific item is generated.Note that if you manually add a QT version for Symbian, you must also manually specify the s60 SDK for this version.


If you want to run your own applications in the Symbian simulator, you need to direct the QT creator to the metrowerks compiler you want to use by setting the carbide directory of the QT version to the corresponding carbide. c ++ directory. You canTools> options...> qt4> s60 sdksTo view the s60 sdks and their corresponding QT versions.


Construction Project

After installing everything and checking the QT creator configuration described above, you can build your project. Note: Only supported in QT creatorQt for Symbian applicationsThe compilation system of isQmake.

Before building a project for the Symbian platform, you must first create a build configuration for it. OpenProjects Mode)Make sure that your project has been selectedEdit project settings for project... (for projects... edit Project Settings). In this build configurationAdd)Select the corresponding QT version to add the debugging and release-specific build configurations.

Qtcreator-symbian-add-buildconfiguration.png "'>

By default, the created build configuration uses the gcce tool chain. SelectShow DetailsIn the build configuration settings menuGeneralChange tool chain in the partition.

Now you canProjects ModeSelect one of the new building configurations as the active configuration, and then build your own project for the terminal.


Run the project

Run in Simulator

Similar to building configuration settings for your project, you need to create a running configuration to run your project in the Symbian simulator:

  1. SwitchProjects Mode.
  2. InRun Settings> Add>Select"Your application" in Symbian emulator


To start the project in the simulator, select the run configuration in the upper part of the projects mode window as the active configuration, and then press the run button.


Run your project on the terminal

To run your project on a Symbian real machine, useRun Settings> Add> your application on Symbian terminal in projects ModeAnd then add a running configuration.



In the expanded running configuration, you can specify the certificate that can be used and select a terminal that is currently connected to a computer. Currently, only USB in PC kit mode is supported. You needProjects ModeThe upper part sets the terminal running configuration as Active configuration. StartAPP TRKClick Run to create a package for the application to automatically deploy, install, and run the application on the terminal.


Troubleshooting

If any problem is found, check:

  • Do you want to build an application in a certain version of QT for Symbian?
  • Are the settings of the QT version you used to compile the project correct? Check the s60 SDK path. Check whether you need to specify a path for the compilation tool chain.
  • Have you selected the simulator/terminal running configuration as the active running configuration?
  • Are you using the correct tool chain for compilation, that is, winscw running on the simulator, gcce or rvct running on the terminal?
  • If the simulator process cannot be started, disable QT creator and then start the application directly from the File Manager. After doing so, QT Creator should be able to run your project in the simulator.
  • Is the terminal connected through a USB in PC kit mode?
  • Is app TRK running on the terminal, USB connection used, and the status is "connected "?
  • Can you see your terminal in the running configuration expansion information and check whether the terminal is selected?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.