Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

Deploying Applications to Symbian Devices

This section describes how to create installation packages that meet the requirements for installing applications to Symbian devices.

Creating SIS Files

When you deploy the application for the Symbian Device target, Qt Creator automatically generates a Symbian installation system (SIS) file in the project folder. You can deliver the installation file to users for installation on Symbian devices.

The name of the installation file is displayed in the Installation file field in the Run Settings. In the Installation drive field, select the drive on the device to install the application to. To suppress notifications on the device during the installation, select the Silent installation check box. If the silent installation fails, Qt Creator attempts installation again, this time displaying notifications and error messages.

To create a SIS package without copying it to the device (for example, to submit it to Application Signing Services for Ovi Store or Symbian Signed), create a deploy configuration that contains only the Create SIS Package step.

"Create SIS Package step"

Signing SIS Files

Only installation files signed with a certificate and private key are allowed to be installed onto Symbian devices. By default, Qt Creator self-signs the installation file. This self-signing allows you to install the application on a mobile device but places limits on what you can do with the installation file, including:

  • Self-signed applications cannot access the more sensitive capabilities of the mobile device.
  • Security warnings will be displayed when you install the self-signed application on a mobile device.
  • Self-signed applications cannot be published to Ovi Store.

To get around these limitations, you need to go through the Symbian Signed or Application Signing Services for Ovi Store. The Symbian Signed organisation manages a public key infrastructure to provide public authentication of the information in the application signing certificates. Their security partner can validate your certificate and give you a Publisher ID. Then, when you sign an application, other people can be confident that the information in your certificate is correct and that the application does actually come from you.

Application Signing Services for Ovi Store is a variant of the Symbian Signed certification provided by Ovi Publishing. It is limited to the Basic and System capability sets (Express Signing). Participants can submit an unsigned SIS file to Ovi Publishing for signing. For more information about how to participate, see Guide to Publishing Qt Applications to the Ovi Store.

There are also options that do not require you to get a Publisher ID. For more detail about how the Symbian Signed process works, see Symbian Signed.

When you have your own certificate and private key, you can specify them in the Create SIS Package step in the Run Settings.

If your private key is protected by a passphrase, Qt Creator asks you for the passphrase when the package is signed and offers to store it. However, storing passphrases in Qt Creator presents a security risk. To make Qt Creator forget all saved passphrases, click Reset Passphrases.

Capabilities and Signing

Capabilities allow the Symbian platform to control access by applications to the functionality provided by the platform APIs. Access to capabilities is determined by the device configuration and how the application has been signed.

Symbian Signed offers the following signing options depending on the capabilities that the application accesses:

  • Express signed for applications that access only user and system capabilities.
  • Certified signed for applications that access also restricted or device manufacturer capabilities.

    Note: You need to request the rights to access device manufacturer capabilities from the manufacturer.

For more information about how to choose the appropriate signing option and how you can check which capabilities you need, see Symbian Signed and Required Capabilities for Qt Applications.

For more information on how to define capabilities for a project, see Capabilities.

Note: In Qt 4.7.1 and later, if you select the Self-signed certificate option, the SIS generation process checks that the package can be self-signed. If problems are found, it attempts to fix the package. If fixes cannot be made, a message appears in the Compile Output view.

The following modifications can be made:

  • Package UID is changed to an UID from the unprotected range (if it was from the protected range).
  • Vendor ID is set to zero on all binaries included in the package file.
  • All restricted and device manufacturer capabilities are removed from all libraries included in the package file.

The application UID or capabilities used in executables (.exe) cannot be changed, because that would break the application. If the executables use protected UIDs or restricted or device manufacturer capabilities, signing fails and an error message appears in the Compile Output view.

Creating Smart Installer for Symbian Packages

You can run Qt applications on Symbian devices if the software that Qt applications require (typically Qt, Qt Mobility, QtWebkit, and Open C) is installed on the device. On Symbian^3 and later devices, some version of Qt is pre-installed. On earlier devices, you must install the modules that Qt applications require. Nokia Smart Installer for Symbian makes it easier for users to install Qt applications to Symbian phones by checking whether the device contains the necessary software and by installing the missing pieces.

For this to work, the Nokia Smart Installer must be packaged with the Qt application. The application SIS file must first be Symbian Signed or signed by the Application Signing Services for Ovi Store. The capabilities used in the applications determine, which signing option must be selected. The wrapper package must be signed using either the same option or a more extensive option than the application SIS.

Note: If you use the Application Signing Services for Ovi Store, you can submit an unsigned wrapper package to Ovi Publishing. For more information, see Publishing Applications to Ovi Store.

You can either install the Nokia Smart Installer for Symbian as part of the Qt SDK, or download and install it from the Nokia Smart Installer for Symbian wiki.

To package Nokia Smart Installer with the application, select the Create Smart Installer package check box. This ensures that up-to-date and appropriate versions of Qt and its dependencies are installed on devices. Further, it reduces the file size of the application you publish, because you do not have to deliver the required libraries.

Nokia has reserved the following UIDs to be used with Nokia Smart Installer for Symbian:

  • 0xA000D7CE for self-signed applications
  • 0x2002CCCF for Ovi Store or Symbian Signed packages

Creating Self-signed Smart Installer Packages

To create a self-signed Nokia Smart Installer for Symbian wrapped .sis file, you must use an UID from the unprotected UID range, provided by Symbian Signed and the wrapper package UID value 0xA000D7CE. If you used the Qt Creator project wizard to create the project, this wrapper package UID is used by default.

  1. Make sure that the source directory is clean. For example, if you use Git, enter the following command:

    git clean -dfx

  2. Click Projects to edit the Build Settings for the Symbian Device target.
  3. Select the Release configuration.
  4. Open the Run Settings.
  5. In the Create SIS Package step, select Self-signed certificate.
  6. In the Deploy SIS Package step, click Remove Item to skip the step of copying the SIS file to a device. The SIS file is created in the project folder.

    "Removing deploy steps"

  7. To package Nokia Smart Installer for Symbian with the application, select the Create Smart Installer package check box.
  8. Edit the project .pro file to use the correct UIDs for the application and the wrapper package, as illustrated by the following code snippet:
     symbian {
          TARGET.UID3 = 0xE4DE5D27
          DEPLOYMENT.installer_header=0xA000D7CE
    
          vendorinfo = \
          "%{\"CustomVendor-EN\"}" \
          ":\"CustomVendor\""
    
          my_deployment.pkg_prerules = vendorinfo
          DEPLOYMENT += my_deployment
      }
  9. Choose Build > Run Project.

Qt Creator automatically generates a wrapper package in the project folder.

Creating Symbian Signed Smart Installer Packages

If the application uses functions that require advanced capabilities (AllFiles, DRM, TCB, CommDD, DiskAdmin, NetworkControl, MultimediaDD), you must use the standard Symbian Signed process to have the application Symbian Signed. Depending on the capabilities used, you may use either the Express Signed or the Certified Signed path, or the manufacturer-specific channel (for AllFiles, DRM, and TCB).

  1. Make sure that the source directory is clean. For example, if you use Git, enter the following command:

    git clean -dfx

  2. Click Projects to edit the Build Settings for the Symbian Device target.
  3. Select the Release configuration.
  4. Open the Run Settings.
  5. In the Create SIS Package step, specify the developer certificate and key in the Custom certificate and Key file fields.
  6. In the Deploy SIS Package step, click Remove Item to skip the step of copying the SIS file to a device. The SIS file is created in the project folder.
  7. Edit the project .pro file to use the correct UIDs and vendor information for the application, as illustrated by the following code snippet:
     symbian {
          TARGET.UID3 = 0x2000D7D1
          DEPLOYMENT.installer_header=0x2002CCCF
    
          vendorinfo = \
          "%{\"CustomVendor-EN\"}" \
          ":\"CustomVendor\""
    
          my_deployment.pkg_prerules = vendorinfo
          DEPLOYMENT += my_deployment
      }
  8. Choose Build > Run Project.
  9. Submit the created .sis file to Symbian Signed for certification.

    Note: Ensure that your application complies with the Symbian Signed Test Criteria before submitting the file for certification. Also, if the file is intended for Ovi Store publishing, verify that the application complies with Ovi Store publishing requirements.

  10. After receiving the .sis file from Symbian Signed, copy it over the old application.sis.

    Note: The instructions below assume that you have installed Qt SDK.

  11. To package Nokia Smart Installer for Symbian with the application, choose Start > Qt SDK > Symbian > Qt for Symbian Command Prompt to open the Qt command line environment.
  12. Change to the project directory. For example:

    cd C:\Sources\Application

  13. To create a Smart Installer wrapper package, enter the following command:

    C:\Sources\Application> make ok_installer_sis QT_SIS_CERTIFICATE=publisherid.cer QT_SIS_KEY=publisherid.key

  14. Submit the created wrapped .sis file, application_installer.sis, to Symbian Signed. Express Signed is a suitable signing option for the wrapper package. The capabilities used in the application do not play a role here, because the wrapper package is already signed.

Qt Creator automatically generates a wrapper package in the project folder.

Note: Ensure that your application complies with the requirements before submitting the file to Ovi Store.

For more information about the qmake DEPLOYMENT variable, see qmake Variable Reference.

For more information about the Nokia Smart Installer, see the Nokia Smart Installer for Symbian Manual.

Note: Nokia Smart Installer for Symbian is only available on Windows.

Application UID

A UID is a globally unique identifier that is used to uniquely identify, for example, an object or file type. In Symbian development, objects are identified by compound identifiers that are constructed from three UIDs, namely UID1, UID2, and UID3. UID1 and UID2 specify the category of an object, whereas UID3 identifies a particular object, such as an application.

When you create a Mobile Qt Application, Qt Creator adds a UID3 suitable for development and debugging automatically to the application .pro file. However, to distribute your application and get it Symbian Signed, you must apply for a UID from Symbian Signed, which manages the allocation of UIDs. You can request UIDs either one at a time or as preallocated blocks on the Symbian Signed web site.

If you use the Ovi Signed process, Ovi Publisher Support allocates the UID for you.

Replace the testing UID with the distribution UID in the .pro file before you build the final installation package. For more information, see Unique Identifiers.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();
Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 64
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. BlackBerry 10 : premières images du prochain OS de RIM qui devrait intégrer des widgets et des tuiles inspirées de Windows Phone 0
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
  7. La rubrique Qt a besoin de vous ! 1
Page suivante

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtcreator-2.3
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web