Introduction to Symbian Development

Source: Internet
Author: User
Tags install perl

This article focuses on the introduction to Symbian development, including the installation and configuration of the Symbian development environment. I believe that you will have a deep understanding of Symbian development through this article, see this article for details.

Introduction to Symbian Development

In this semester, I had to develop a mobile app for SymbianS60, so I chose CarbideV1.2OEM and S60SDK3rdFP1 as my development environment.
The specific environment is as follows:

1. First install Carbide and select the OEM version. You can find the License on the Internet and find it by yourself. Then, the release_notes prompts you to install Perl and SDK.

2. Install Perl by selecting activeperl5.6.1. Otherwise, the following network problems may occur:

Use the Carbide Wizard to create a new SymbianOSC ++ Project, select the 3rdEd. GUIApplication template, create a Project according to the steps, and select EmulatorDebug. The following problems may occur during compilation:
Make [1]: *** Noruletomaketarget '\ Symbian \ 9.2 \ S60_3rd_FP1_2 \ EPOC32 \ BUILD \ Symbian \ carbide \ workspace \ test \ group \ TEST \ WINSCW \ TEST. winscw '. stop. if testline0 is selected, the above problem will not occur. So the software is the best version if it is not the latest version !).

3. It is best to install the SDK in its default directory, and these are the best together. I chose the C drive to install the software and the operating system, and gave the size of 35 GB. D disk to access data. Therefore, I installed these files in his default directory. Carbide and Perl are directly installed on drive C with programfiles. SDK. This is basically the case.

4. Open Carbide and select the disk with the same drive letter as the one where you installed carbide. Otherwise, the following error occurs:

WARNING: EPOCROOTdoesnotspecifyanexistingdirectory
BLDMAKEERROR: Directory "\ Symbian/9.2 \ S60_3rd_FP1 \ EPOC32 \" doesnotexist
The above is my experience in configuring the Symbian development environment. I hope it will be helpful to you. You are also welcome to give me some help for this cainiao, thank you.
PS: I am a newbie and I have just started to learn about Symbian development. So I am not familiar with Symbian development. The reason why I write a blog here is that I have found many Symbian development experts, so I hope you can give me some help. Thank you again!


◆ Develop software to compile and compile programs. That is, IntegratedDevelopmentEnvironment (IDE), which includes the editor, compiler, and connector.
We recommend that you use the Nokia 'scarbide. c ++ ExpressEdition (basedontheEclipseIDE) or VisualStudio. NET2003.

You need a software development kit, that is, SoftwareDevelopmentKit (SDK), which allows you to write and create programs for your mobile phone.

For N73, S602ndEditionFP2version9.1introducedacompletebreakfromolderversions is required.
ToworkonSymbianOSversion9.1orlater, applicationsmustbeslightlymodifiedandrecompiled.

Different Symbianos user interfaces (UIS) are different. Select the correct SDK.
S60rdEditionFeaturePack1-SymbianOSv9.2
S603rdEdition-SymbianOSv9.1
S602ndEditionFeaturePack3-SymbianOSv8.1
S602ndEditionFeaturePack2-SymbianOSv8.0a
S602ndEditionFeaturePack1-SymbianOSv7.0s

Enhanced
S602ndEdition-SymbianOSv7.0s
S601stEdition-SymbianOSv6.1

Because our OS is v9.1, we need S603rdEdition.
You can download it from http://developer.symbian.com/main/tools/sdks/s60/index.jsp.
Download IDECodeWarriorDevelopmentStudioforSymbianos3.1 (OEM, ProfessionalandPersonal)
For: http://www.forum.nokia.com/info/sw.nokia.com/id/4d2d8611-c490-4f6e-a931-

Ea37ba4f040d/CodeWarrior_Development_Studio_for_Symbian_ OS _Personal_Edition_Version_3_1.html
Install the Personal Edition for 90 days.
Install SDK

Verify SDK Installation

1. Use the devices command to set S603rdEditionSDKforSymbianOSforC ++ as the default device.
Example: devices-setdefault @ S60_3rd: com. nokia. S60
2. Go to the directory containing helloworldbasic and install cdC: \ Symbian \ 9.1 \ S60_3rd \ S60Ex \ helloworldbasic by default.
3. Go to the group Directory, which contains the bld. inf and helloworldbasic. mmp files.
4. Verify the programming environment
Run-> Enter cmd-> enter epoc-> If the simulator is displayed, the installation is successful.
Note: See getting_started_final.pdf.


◆ Nokia divides the mobile phone into multiple series based on the screen size and price of the mobile phone. The current series are: Series40, Series60, Series80, and Series90. 60 series

Using Symbianos6.1, and then making some modifications to the UI based on the characteristics of the mobile phone screen, the modified Symbian is called the Nokia 60 series platform. Use 60 series hands

Model: Nokia6670, Nokia6630, Nokia6260, NokiaN-GageQD™, Nokia7610, Nokia6620, Nokia3620, Nokia3660,

Nokia6600, Nokia3600, Nokia3650, Nokia7650, NokiaN-Gage™.

Next we will take the 60 series as an example to introduce the SDK installation process.

2.1.1 install SDK

Step 1: register at the Nokia forum and download the latest SDK. The latest version of Series60SDKforSymbianOSNokiaEditionSDK provided by Nokia is v1.2 and Series

The latest version of 60SDKforSymbianOS is v2.1. Download URL: http://www.forum.nokia.com/main/0,6566,034-4,00.html

Step 2, go to the http://www.activestate.com website to download the latest ActivePerlScript installer. To http://www.java.com/en/download/manual.jsp

Download the latest J2RE.

Step 3: Install the SDK. We recommend that you create a separate directory for Symbian development, for example, d: \ Symbian instead of C: \ programfiles.

Step 4: Install ActivePerl and J2RE in the default directory.

Step 5: Check the environment variable settings. Open the system environment variable tab and check whether there is EPOCROOT. If so, manually change it to "\". The change should look like this:

EPOCROOT = \

Then, add the \ epoc32 \ tools directory and the \ epoc32 \ gcc \ bin directory to the system PATH.

In fact, the SymbianSDK does not need to be installed. You can directly copy the epoc32 directory to a machine and set the Directory and environment variables as described above.

2.1.2 configure VC

If you are using VC6.0, make sure that the system has installed at least the SP3 patch. Otherwise, the system will receive a warning. If we use VS. NET2003, we can only install Series

60SDKforSymbianOSv2. 1, because Series60SDKforSymbianOSNokiaEditionSDKv1.2 cannot be set up correctly in VS. NET2003.

If you want to create a new project directly in vc6, you must add AvkonAppWiz. awx and

Copy the AVKONAPPWIZ. HLP file to the Template directory C: \ ProgramFiles \ MicrosoftVisualStudio \ Common \ MSDev98 \ Template of vc6. In this way, we can

The Series60AppWizardv1.9 option is displayed in the new project of VC.

Enter ProjectName and click OK. All the way to "Next", a simple Symbian application is built.
If you want to import a created Project to VC6.0, for example, convert the example HelloWorld In the SDK into a VC6 project, first, go to the \ Symbian \ 6.1 \ Series60 \ Series60Ex \ HelloWorld directory. Here we can see that in Symbian, a Project is usually organized by directory such as inc, src, and group. The Project file is usually stored in the group directory, therefore, you must first go here for compilation. Use the command prompt mode to enter the directory you just mentioned, and then execute:

Bldmakebldfiles

This command will generate a batch file of abld. bat in the group directory, and \ Symbian \ 6.1 \ Series60 \ Epoc32 \ BUILD will generate \ Symbian \ 6.1 \ Series60

\ Epoc32 \ BUILD \ SYMBIAN \ 6.1 \ SERIES60 \ SERIES60EX \ HELLOWORLD \ GROUP directory, and generate a heap of. make files under the lowest-level directory.

Then, run the generated abld. bat in the same directory:

Abldmakefilevc6

The dsw file of vc6 is automatically generated at \ 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.2 compile

We can directly use the tools provided by the SDK to compile the Symbian project, or use the integrated environment provided by VC6 to compile the converted Symbian project. The compilation result is stored in

\ Symbian \ 6.1 \ Series60 \ Epoc32 \ Release \ wins \ UDEB \ Z \ SYSTEM \ apps directory.

2.2.1 use the tools provided by the SDK to compile the Symbian Project

Enter abldbuildwinsudeb at the position in the previous section.
This command will compile our program and generate our helloworld in the \ Symbian \ 6.1 \ Series60 \ Epoc32 \ Release \ wins \ UDEB directory. Then we can start from
Run the debug version of the simulator in the menu. You can run helloworld in the simulation.

2.2.2 use VC6 to compile the Symbian Project

We directly open the dsw file generated after running abldmakefilevc6, and VC automatically loads the converted project. Press F7 to compile the project directly.

\ Symbian \ 6.1 \ Series60 \ Epoc32 \ Release \ wins \ UDEB directory. Then we open the debug version of the simulator and we can see the compiled project.

2.3 Packaging

Take the HelloWorld provided by SDK1.2 as an example to create a. sisfile that can be installed on your mobile phone:

2.3.1. Check Procedures

First, in the command line format, enter the directory where the MPs file of the HelloWorld project is located, enter bldmakebldfiles and abldbuildwinsudeb, and then open the simulator to check whether the program has any errors.

2.3.2. compile the project

If no program error occurs, enter abldbuildarmiurel in the command line. After this command is executed, it will be generated in the Directory d: \ symbian \ 6.1 \ series60 \ epoc32 \ release \ armi \ urel

To the HELLOWORLD. APP and HELLOWORLD. RSC files.

2.3.3. Create a. pkg File

Create or modify the pkg file of the project in Notepad on d: \ Symbian \ 6.1 \ Series60 \ Series60Ex \ helloworld \ sis. The content is as follows:

 
 
  1. ;HelloWorld.pkg  
  2. ;  
  3. ;Language-standardlanguagedefinitions  
  4. &EN  
  5. ;standardSISfileheader  
  6. #{"HelloWorld"},(0x10005B91),1,0,0  
  7. ;SupportsSeries60v1.2  
  8. (0x101F8202),0,0,0,{"Series60ProductID"}  
  9. ;  
  10. "d:\symbian\6.1\series60\epoc32\release\armi\urel\HelloWorld.APP"-"!:\system\apps\HelloWorld\HelloWorld.app"  
  11. "d:\symbian\6.1\series60\epoc32\release\armi\urel\HELLOWORLD.rSC"-"!:\system\apps\HelloWorld\HELLOWORLD.rSC"  
  12.  

Here, the preceding "d: \ symbian \ 6.1 \ series60 \ epoc32 \ release \ armi \ urel \ HELLOWORLD. rSC" is the file to be packaged and installed.
,"! : \ System \ apps \ HelloWorld \ 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 the Symbian system
The default application location is "! : \ System \ apps ". After editing the pkg file, save it to the corresponding directory.

2.3.4. Package

In the command line, go to the directory where the pkg file is located and run the command makesisHelloWorld. pkg. Then we get the packaged. sisfile in the same directory.

2.4 Mobile Phone Test

Upload the packaged. sisfile to your mobile phone, and then you can see the packaged file in the app manager on your mobile phone. Select the "Install" command and the system will prompt you to install
Installation location. After selecting the installation location, the application we created will be installed on the mobile phone.
Go back to the main menu on your phone and you will find the newly installed HelloWorld application. When you start running, the result is basically the same as that seen in the simulator.

Related Article

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.