3. Package
Take HelloWorld provided by SDK 1.2 as an example to create a. sisfile that can be installed on your mobile phone:
3. 1. Check the program
First, in the command line format, enter the directory where the MPs file of the HelloWorld project is located, and enter bldmake bldfiles and abld
Build wins udeb, and then open the simulator to check for program errors.
3. 2. compile the project
After the program has no errors, enter abld build armi urel in the command line. After executing this command, the helloworld. app and helloworld. RSC files are generated in the Directory D:/Symbian/6.1/series60/epoc32/release/armi/urel.
3. Create a. PKG File
In D:/Symbian/6.1/series60/series60ex/helloworld/sis
Use NotePad to create or modify the PKG file of the project. The content is as follows:
; HelloWorld. pkg
;
; Language-standard language definitions
& EN
; Standard SIS file header
# {"HelloWorld"}, (0x10005B91), 1, 0, 0
; Supports Series 60 v 1.2
(0x101F8202), 0, 0, 0, {"Series60ProductID "}
;
"D:/Symbian/6.1/series60/epoc32/release/armi/urel/helloworld. app "-"! :/System/apps/helloworld. app"
"D:/Symbian/6.1/series60/epoc32/release/armi/urel/helloworld. RSC "-"! :/System/apps/helloworld. RSC"
In the preceding example, "d:/Symbian/6.1/series60/epoc32/release/armi/urel/helloworld. RSC" is the file to be packaged and installed ,"! :/System/apps/helloworld. RSC is the target installation location. Note that "!" is used in the target location. Instead of the actual drive letter. In this way, the mobile phone system prompts the user to select the desired location during the user's installation, which gives the user greater flexibility. In addition, in Symbian
In the system, the default location of the installed application is "! :/System/apps ".
After editing the pkg file, save it to the corresponding directory.
3. 4. Package
In the command line, go to the directory where the pkg file is located and run the makesis HelloW command.