Building an application for a mobile device from the CLI
Creating a GCCE release build
To create a GCCE release build:
-
Open a command prompt and switch to the
groupfolder in the HelloWorldBasic example application:The
groupfolder 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
groupdirectory contains thebld.inf,helloworldbasic.mmp, andIcons_scalable_dc.mkfiles. -
Enter the following command:
bldmake bldfilesThis command generates the files required to build the example.
-
Enter the following command:
abld build gcce urelThis command builds the example application for a mobile device.
For more information on the
abld buildsyntax, 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:
-
In the command prompt, switch to the folder that contains the
helloworldbasic_gcce.pkgfile: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. -
Enter the following command:
createsis create helloworldbasic_gcce.pkgThe tool creates the
helloworldbasic_gcce.sisfile, generates a self-signed certificate, and signs thesisfile. The tool places thesisfile 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.

浙公网安备 33010602011771号