东宝哥

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

Building an application for a mobile device from the CLI

  1. Create a GCCE release build.

  2. Create and sign a Symbian Installation (.sis) file of the build.


Creating a GCCE release build

To create a GCCE release build:

  1. Open a command prompt and switch to the group folder in the HelloWorldBasic example application:

    The group folder is located in the example folder:<S60_SDK_installation_directory>S60EX"HelloWorldBasic"group, where <S60_SDK_installation_directory> is the directory that contains your SDK.

    If you installed the S60 C++ 3rd Edition SDK, Feature Pack 1 in its default folder, the path is C:"Symbian"9.2"S60_3rd_FP1"S60EX"HelloWorldBasic"group.

    The group directory contains the bld.inf, helloworldbasic.mmp, and Icons_scalable_dc.mk files.

  2. Enter the following command:

    bldmake bldfiles

    This command generates the files required to build the example.

  3. Enter the following command:

    abld build gcce urel

    This command builds the example application for a mobile device.

    For more information on the abld build syntax, see How to use abld and abld command syntax in the Symbian OS Library.


Creating a sis file

Once you have created a GCCE UREL release build of the application, you need to create a Symbian Installation file (.sis) for the application. In this example, the application sis file creation process uses the helloworldbasic_gcce.pkg file , which is located in the example application's "sis folder.

S60 3rd Edition and later SDKs include mandatory .sis file signing, which means that all .sis files must be signed before you install them on a device. The HelloWorldBasic example is a self-signed application because it uses no capabilities.

To create the sis file:

  1. In the command prompt, switch to the folder that contains the helloworldbasic_gcce.pkg file:

    cd <S60_SDK_installation_directory>"S60ex"helloworldbasic"sis, where <S60_SDK_installation_directory> is the directory that contains your SDK.

    If you installed the S60 C++ 3rd Edition SDK, Feature Pack 1 in its default folder, the path is C:"Symbian"9.2"S60_3rd_FP1"S60EX"HelloWorldBasic"sis.

  2. Enter the following command:

    createsis create helloworldbasic_gcce.pkg

    The tool creates the helloworldbasic_gcce.sis file, generates a self-signed certificate, and signs the sis file. The tool places the sis file in the same directory.

    If you installed the S60 C++ 3rd Edition SDK, Feature Pack 1 in its default folder, the path is C:"Symbian"9.2"S60_3rd_FP1"S60ex"helloworldbasic"sis"helloworldbasic.SIS.


posted on 2009-01-14 00:35  东宝哥  阅读(178)  评论(0)    收藏  举报