Symbain S60 入门之旅, HelloCarbide example

来源:互联网 发布:cmcm kdesk是什么软件 编辑:程序博客网 时间:2024/05/02 02:55
原文:http://www.kudev.net/bbs/thread-484-1-1.html

 

今天学习了S60开发的第一课,HelloCarbide example, 下面是操作过程,English is copied from online document.

Environment:  
Windows XP SP2, S60 SDK 3rd MR, Carbide.C++ V1.1

Step by Step:
1, Click File > New > Symbian OS C++ Project  to invoke the New Project wizard.
2, Type the Project name in the field provided, for example, HelloCarbide
3, Click Next to move to the Templates page, then select "S60 3.x GUI Application"
4, Click Next to move to the Symbian OS SDKs page
   在这里会显示出为每一个版本的SDK所相应的编译配置信息,Default情况下,
   每个SDk版本会生成三种编译配置,Emulator Debug, Phone Debug, Phone Release
5, Click Next to set some basic properties of the project on the Basic Settings page
   然后会显示出一些最基本的程序配置信息,如,Application UID, Author, Copyright, etc.
6, Click Next to move to the Project Directories  page
   这里会显示出目录配置信息,这里的目录都会创建在项目的根目录下,建议使用默认值
7, Click Finish to create the project, which will generate the necessary files for the project based on the template selected and show them in the C/C++ Projects view.
8, Build Project
   这里最主要的需要了解一下三个概念,
   Active Build Configuration—changes the build configuration used for compiling and debugging. Does not envoke a build
   Build Project—builds the entire project if it has never been built before or on subsequent builds only those files that have changed since the last build operation
   Rebuild Project—forces a rebuild of the entire project
   

9, Run application
   有三种方法可以 Run Application,
   Right-click the project's EXE file in the C/C++ Projects view and select Debug As > Config_Name from the C/C++ Projects contextual menu
   Select the project to debug and click the Debug button () in the C/C++ perspective
   Select the project to debug and then select Run > Debug As > Config_Name from the menu bar
10, 选择了 Run Application 后,IDE 会 Launch S60 Emulator 去 Run application, 截图如下:
     










OK,以上就是 S60 Development 的入门内容。再下一步的工作是学习这个 HelloCarbide Example,了解每一部分都是什么意思。



今天才搞清楚,Carbide.C++ Developer and Professional 版本都不是免费的,都要去 Nokia 花钱买,Nokia 太小气了,怎么也要靠这个挣钱不成?Carbide.C++ Express 是免费版本,但功能有限,这样来说,Symbian 的开发工具也没有免费的可用了。Carbide 是基于 Eclipse 的,从理论上来说应该是在 Eclipse 中加了一堆Plugin,那么是不是可以把这些Plugin Copy 出来单独放在一个干净的Eclipse中,重新构造一个IDE呢?不知道,等我空闲下来的时候,好好研究一下。