Build a development environment for carbide. c ++ for Symbian

Source: Internet
Author: User
Tags perl script
Document directory
  • Installation Steps
  • Create a program
  • Learn shortcuts and import the SDK's built-in examples to read the code. If you encounter any problems, read the development documentation.

 

Before building a development environment, download the required SDK and auxiliary tools.

1. download Perl. the SDK requires version 5.6.1. Only this version is required. if the version is higher or lower, the environment may fail to be set up ,: http://www.activestate.com/, pay attention to the version when downloading active Perl script.

2. Download the Java Runtime Environment, which must be later than 1.4.06. Generally, you can download version 1.5 at: http://www.java.com/,#, without downloading Java of version 1.6. I have tried it. version 1.6 will cause the s60 SDK to fail to work normally.

3. download carbide from the Nokia forum. c ++. The latest version is version 1.2. It feels good to be able to generate two-phase constructor classes and AO classes unique to Symbian OS, such as begin. Download carbide. c ++ Express. license is required for other versions.

4. Download s60 SDK, download 3rd edition maintenance release version of s60 SDK, http://www.forum.nokia.com/info/sw.nokia.com/id/4a7149a5-95a5-4726-913a-3c6f21eb65a5/S60-SDK-0616-3.0-mr.html
Then download extensions plug-in for s60 3rd edition SDK for Symbian OS, for C ++, Mr extension plug-in, http://www.forum.nokia.com/info/sw.nokia.com/id/48a93bd5-028a-4b3e-a0b1-148ff203b2b3/Extensions_plugin_S60_3rd_ed.html

After we have prepared these sdks and tools, we can start to install them.

 

 

 

 

Installation Steps

Before we start the installation, I would like to remind you that due to the historical reasons of Symbian OS, "/" is used as the starting directory. Therefore, all development tools, sdks, and even our programs must be installed on the same disk. Otherwise, unexpected problems may occur during future development, for example, both are installed on drive C, or both are installed on drive D.

Next, we start the installation process:
Step 1: Install the Perl and Java runtime environments (j2re); (remember that the installation path cannot contain spaces and is installed on the same drive letter, for example, D:/otherwise, there will be problems)
Step 2: Install s60 3rd Mr SDK (Instructor Wang prompts to install SDK first and then install carbide C ++ SDK will be automatically loaded and recognized by Carbide)
Step 3: Install carbide. c ++;

After completing the three steps above, we have completed the establishment of the Third-edition Symbian OS development environment. Let's start the first Symbian program.

 

 

Create a program

1. Start the carbide. c ++ program;
2. Choose File> New> project. In the new project dialog box that appears, select Symbian OS C ++ project and click Next, in the displayed dialog box, select a template and select 3rd. ed GUI application, click Next, and enter the project name in the new dialog box, for example, myfirstapp. Note whether the project's storage directory is on the same disk as the s60 SDK, if you do not want to change to a disk, continue to next and click Finish to generate the project;
3. In carbide. compile the program in C ++, right-click the project myfirstapp we just created in the project tree on the C/C ++ projects project navigation page, and in the pop-up right-click menu, select build project to start compiling the project;
4. After the project is compiled, select carbide. c ++ menu, run-> Run as-> RUN Symbian OS application, carbide. c ++ will automatically open the s60 simulator, find the program we created in the installtions simulator, and run it.

Here we will talk about the development skills and shortcut key settings.

 

 

Learn shortcuts and import the SDK's built-in examples to read the code. If you encounter any problems, read the development documentation.

1. Example path: D:/Symbian/9.1/

S60_3rd_mr/Examples

2. Development document path: D:/Symbian/9.1/s60_3rd_mr/s60doc descriptor usage, use of all functions, etc.

3. Import the instance in examples to start carbide. c ++-> file-> Import-> Symbian OS bld. INF file-> browse-> select group-> BLD In the example. INF-> next-> finish case is introduced.

4. Introduction to the directory structure of Normal programs

The uplodes directory contains some of the system's things,

The data directory contains resource files.

Header file to be defined in the INC directory

Src directory. cpp program source file

The GFX directory contains some images and multimedia files.

Some important configuration files compiled by the group Directory Project: bld. INF. MMP File

Sis directory Installation File

 

 

 

 

 

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.