Build a Symbian Development Environment Based on carbide. c ++
This article will gradually introduce how to use tools to quickly build a Symbian development platform. If you want to learn how to manually generate a project and compile and run it, please refer to the SDK documentation.
1. Introduction to Symbian OS
Symbian OS is an operating system customized for mobile devices. In the world's leading smartphone operating system market share, the system is now mainly used on Nokia's smartphones.
Symbian OS systems are divided into series60, series80, series90, and uiq Based on Human-Machine Interface interaction. The mobile phone product lines of Nokia are divided into series40 (bottom-end, non-intelligent Platform), series60 (middle-end, gradually replacing series40), and series80 (high-end ).
With the development of mobile 3G networks and the gradual popularization of mobile Internet applications, the s60 series of smartphones are gaining a larger market and the largest market share. Symbian OS occupies an absolute monopoly in the smartphone operating system.
S60 has many versions, and some version upgrades also bring about binary code compatibility issues. Therefore, you need to check the official materials to learn the version of the target mobile phone, and then select the correct sdk for development of an s60 version.
Series version 60:
The first version of Series 60 corresponds to Symbian OS 6.1
The second version of Series 60 corresponds to Symbian OS 7.0 s
Series 60 version 2 Pack 1 corresponds to Symbian OS 7.0 s
Series 60 version 2 corresponds to Symbian OS 8.0a
Series 60 version 2 Pack 3 corresponds to Symbian OS 8.1a
The third edition of Series 60 corresponds to Symbian OS 9.1
Series 60 pack1 of the third edition corresponds to Symbian OS 9.2
Here we have used s60 3rd MR + carbide. c ++ as an example to describe how to build a Symbian development environment step by step.
2. Before building the development environment, we need to 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 Java Runtime Environment, requirements are 1.4.06 after, General download version 1.5 on the can,: http://www.java.com, note, do not download version 1.6 Java, I tried once, 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.
Iii. 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 );
Step 2: Install carbide. c ++;
Step 3: Install s60 3rd Mr SDK, and then install extensions plug-in.
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.
4. Establish 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.