2. Getting started with development
2.1 Install SDK and VC
NOKIA divides the mobile phone into multiple series according to the screen size and price of the mobile phone, and the series is now used: Series 40, Series 60, Series 80 and Series 90.60 series use Symbian OS 6.1, and then according to the characteristics of the mobile phone screen UI made some modifications, this modified Symbian is called Nokia's 60-series platform. Mobile phone models using 60 Series include: Nokia 6670, Nokia 6630, Nokia 6260, Nokia N-Gage QDTM, NOKIA 7610, NOKIA 6620, NOKIA 3620, NOKIA 3600, NOKIA 3650, NOKIA 7650, NOKIA N -GageTM, etc.
Let's take a 60 series as an example, introduce the SDK installation process.
2.1.1 Installing SDK
The first step, to the Nokia Forum registration, download the latest SDK. The latest version of the NOKIA website provided by the latest version of V1.2, Series 60 SDK for Symbian OS is V2.1. Download URL: http://www.forum.nokia.com/main/0,6566,034-4,00.html
Step 2, go to http://www.activestate.com website to download the latest Active Perl Script installer. Download the latest J2RE to http://www.java.com/en/download/manual.jsp Download the latest J2RE.
Step 3: Install SDK, recommend to Symbian development a directory, such as D: / Symbian instead of using C: / Program Files, etc.
Step 4: Install Active Perl and J2RE, install it to the default directory.
Step 5: Check environment variable settings. Open the system environment variable tab, then take a look at there is ePocroot, if any, turn it manually to "/". It should be this look after the change is finished:
EPOCROOT = /
Then, add the / EPOC32 / Tools directory in the system PATH and / EPOC32 / GCC / BIN directory.
In fact, Symbian SDK does not have to be installed at all, directly copy the EPOC32 directory to a machine, and then set the directory and environment variables as described above.
2.1.2 Configuring VC
If we use VC 6.0, we must ensure that the system has at least the SP3 patch, otherwise there will be a warning tips. If we use VS.Net2003, we can only install Series 60 SDK for Symbian OS V2.1 because Series 60 SDK for Symbian OS Nokia Edition SDK V1.2 cannot establish an engineering in VS.NET2003.
If you want to be directly
VC6
Create a new project,
/SYMBIAN/6.1/series60/series60tools/ Application Wizard
Directory
AvkonAppWiz.AWX
with
AvkonAppWiz.hlp
Document copy to
VC6
Template catalog
C: / Program Files / Microsoft Visual Studio / CommON / MSDEV98 / TEMPLATE
under. This way we can
VC
See the new project
Series 60 AppWizard V 1.9
This option. After filling in Project Name, confirm. All the way "Next", a simple Symbian application is established. If you want to import a well-established project into VC6.0, for example, we convert an example helloworld in the SDK into a VC6 project, we first enter the /symbian/6.1/series60/series60ex/helloworld directory. Here we can see that in Symbian, a Project is usually organized according to Inc, SRC, Group, etc., which typically puts a project file in the group directory, so you have to come here when compiling. Use the command prompt mode to enter the directory just said, then execute: bLDMAKE BLDFILES This command generates an abld.bat batch file in the group directory, and generates under / symbian / 6.1/series60/epoc32/build /Symbian/6.1/series60/epoc32/build/symbian/6.1/ series60 / series60ex / helloworld / group this directory and generate a bunch of.make files in the bottom directory. Then, we run the abld.bat that is currently generated in the same directory: Abld makefile vc6 will automatically generate VC6 DSW files, location in /ssymbian/6.1/series60/epoc32/build/ Symbian / 6.1 / series60 / series60ex / helloworld / Group / helloworld / wins. Then we can open this Symbian project in VC6. 2.2 compile
We can use the tools provided by SDK to compile Symbian projects, or you can use the integrated environment of VC6 to compile transformed Symbian projects. The result is stored in the /symbian/6.1/series60/epoc32/ Release / Wins / UDeb / z / system / apps directory. 2.2.1 Compiling Symbian Projects with Tools provided by SDK
We continue to enter in that position in the previous section:
Abld build Wins UDEB
This command compiles our program, and finally generates our HelloWorld in the /ssymbian/6.1/series60/epoc32/release/wins/udeb directory, then we can run the democuog version of the simulator from the start menu, you can Run HelloWorld. 2.2.2 Compile Symbian Engineering with VC6
We directly open the DSW file that is generated after running the Abld Makefile VC6, and the VC is automatically loaded into the transformed project. Press F7 to compile the project directly, and the compilation results are also placed in the /symbian/6.1/series60/epoc32/release/ WINS / UDEB directory. Then we open the simulator Debug version, you can see our compilation project.
2.3 packaging
We use the HelloWorld provided by SDK 1.2 as an example to make the .ssi file that can be installed in your phone:
2.3.1. Checkbox
First, under the command line format, enter the directory where the HelloWorld project MMP file is located, enter BLDMAKE BLDFILES and ABLD Build Wins UDeb, then open the simulator, and the detector has no error.
2.3.2. Compiling project
After the program is not wrong, enter Abld Build Armi Urel at the command line. After executing this command, you will generate both of the directory D: /SYMBIAN/6.1/series60/epoc32/release/rmi/urel to generate two files. 2.3.3. Establish .pkg file in D: /Symbian/6.1/series60/series60ex/HelloWorld/SIS to establish or modify the PKG file of the project with Notepad, 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/HELLOWORLD.APP "D: /Symbian/6.1/series60/epoc32/release/rmi/urel/helloworld.rsc" - "!: / system / apps / helloworld / helloworld.rsc" Among the front " D: /symbian/6.1/series60/epoc32/release/Armi/urel/helloworld.rsc "is to package the installed file,"!: / system / apps / helloworld / helloWorld.RSC "is the mounted target location. It should be noted here that we use "!" In the target position instead of the actual disk. This is the advantage that the mobile phone system prompts the user to select the location where the user is installed, which gives the user more flexible. In addition, in the Symbian system, the installed application default location is "!: / System / apps".
After editing the PKG file, save to the corresponding directory.
2.3.4. Package program
In the command line, turn to the directory where the PKG file is located, run the Makesis HelloWorld.pkg. After that, we got the packaged .ssile file in the same directory. 2.4 mobile test
Upload the Package .SIS file to your mobile phone, then you can see our packaged files in your mobile phone application manager. Select the "Install" command, the system prompts the user to install, after selecting the installation location, the application we make is installed in the phone. We return to the main menu of your mobile phone, you will find newly installed HelloWorld applications. Open the run, the result is basically the same as it sees in the simulator.