Symbian OS S60 Development Environment Setup

Source: Internet
Author: User
Tags command line perl script visual studio

1, the installation of the relevant SDK and VC

Nokia divides the handset into several series according to the handset's screen size and the price high and low, now uses the series to have: Series 40, Series 60, Series 80 and Series 90. The 60 series uses Symbian OS 6.1 and then modifies the UI based on the features of the mobile screen, and the modified Symbian is known as Nokia's 60-series platform. Mobile phone models using the 60 series include: Nokia 6670, Nokia 6630, Nokia 6260, Nokia N-gage QD, Nokia 7610, Nokia 6620, Nokia 3620, Nokia 3660, Nokia 6 600, Nokia 3600, Nokia 3650, Nokia 7650, Nokia N-gage, etc.

Let's take the 60 series as an example to introduce the SDK installation process.

1.1: Install the SDK

Step one: Register at Nokia Forum, download the latest Sdk.nokia website offers Series SDK for Symbian OS Nokia Edition SDK latest version is V1.2,series SDK for Symbian OS latest The version is v2.1. Step two: Download the latest active Perl Script installer to download the latest j2re (Java 2 Runtime environment).

Step three: Install the SDK and recommend a separate directory for Symbian Development, such as D:/symbian instead of using directories such as C:/Program files.

Step Fourth: Install Active Perl and j2re, and install to the default directory.

Fifth Step: Check environment variable setting. Open the System environment variable tab and see if there is any epocroot, and if so, manually change it to "/". This should be the case after the change: Epocroot =/Then, add the/epoc32/tools directory to the system path and/epoc32/gcc/ The bin directory is OK.

In fact, the Symbian SDK is not installed at all, just copy the EPOC32 directory to a machine, and then set the directory and environment variables according to the above method.

1.2: Configure VC

If we are using VC 6.0, we have to ensure that the system has at least SP3 patch, otherwise the system will have warning prompts. If we are using vs.net2003, we can only install Series SDK for Symbian OS v2.1 because series SDK for Symbian OS Nokia Edition SDK v1.2 in Vs.net2 003 failed to establish the project correctly.

If you want to create a new project directly in VC6, put the/symbian/6.1/series60/series60tools/application Wizard directory Avkonappwiz.awx and Avkonappwiz.hlp files are copied to the VC6 template directory C:/Program files/microsoft Visual studio/common/msdev98/template. So we can see series AppWizard v 1.9 in VC's new project.

If you want to import a project that has already been built into VC6.0, for example, we convert the example in the SDK to a VC6 project, we first go to the/symbian/6.1/series60/series60ex/helloworld directory. Here we can see that in Symbian, a project is usually organized in the Directory of INC, SRC, group, and the group directory usually has a project file, so compile it first. Enter the directory in command prompt mode, and then execute:

Bldmake bldfiles This command generates a Abld.bat batch file under the group directory and generates/SYMBIAN/6.1/SERIES60 under/symbian/6.1/series60/epoc32/build /epoc32/build/symbian/6.1/series60/series60ex/helloworld/group This directory and generates a bunch of. make files in the lowest-level directory.

Then, we run the Abld.bat:abld makefile VC6 just generated in the same directory, and VC6 DSW files are automatically generated, located in/SYMBIAN/6.1/SERIES60/EPOC32/BUILD/SYMBIAN/6.1/ Series60/series60ex/helloworld/group/helloworld/wins. Then we can open the Symbian project in VC6.

2. Compile

We can compile the Symbian project directly using the tools provided by the SDK, or we can use the integrated environment provided by VC6 to compile the transformed Symbian project. The results of the compilation are stored in the/symbian/6.1/series60/epoc32/release/wins/udeb/z/system/apps directory.

2.1 Using the tools provided by the SDK to compile Symbian project

We continue to enter that position in the previous section:

Abld Build wins Udeb

This command compiles our program and finally generates our HelloWorld in the/symbian/6.1/series60/epoc32/release/wins/udeb directory, and then we can run the debug version of the emulator from the Start menu, In the simulation, you can run HelloWorld.

2.2 Using VC6 to compile Symbian project

We directly open the run Abld makefile VC6 generated after the DSW file, VC automatically loaded the transformation of the project. Press F7 can directly compile the project, the results of the compilation are also placed in the/symbian/6.1/series60/epoc32/release/wins/udeb directory. Then we turn on the debug version of the simulator and we can see that we've compiled the project.

3. Run the program on the phone

We use the HelloWorld provided by SDK 1.2 as an example to create a device that can be installed on a mobile phone. SIS file:

3.1. Check Program

First, in the command line format, enter the directory of HelloWorld project MMP file, enter the Bldmake bldfiles and abld build wins Udeb, and then open the simulator, detect the error of the program.

3.2. Compiling engineering

After the program has no errors, enter ABLD build Armi urel at the command line. After this command is executed, Helloworld.app and HELLOWORLD.RSC two files are generated in the directory D:/symbian/6.1/series60/epoc32/release/armi/urel.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.