Symbian SDK的安装与使用

一 安装部分

Installing Perl

Perl (www.activestate.com )

The Carbide.c++ tools  require a copy of Perl to run build scripts.

 

安装ActivePerl-5.6.1的 时候发现,快完的时候提示说”INTERNAL ERROR 2739错误“,网上找了一下,向下面打开cmd命令行重新注册一下VBScript.dll或者JScript.dll,然后重新安装就没有问题了。

Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:/Documents and Settings/wangweix>regsvr32 c:/WINDOWS/system32/vbscript.dll

C:/Documents and Settings/wangweix>regsvr32 c:/WINDOWS/system32/jscript.dll

 

Installing SDKs

Also, you must install at least one of the following SDKs to develop Symbian applications:

NOTE Carbide.c++ requires SDKs built to support WINSCW format.

S60 Platform SDKs (forum.nokia.com/main/resources/tools_and_sdks/carbide/ )

  • S60 5th Edition   //我选择了这个包

Qt SDKs (www.trolltech.com )

  • Qt SDK for S60

UIQ SDKs (developer.uiq.com )

  • UIQ 3.1
  • UIQ 3.0

Install the  Carbide.c++ 2.0 Tools

 

 

二使用部分

使用SDK

 

(1)如何 使用控制台进行编译

Carbide实在太慢,如果你希望更快的速度,可以用控制台。

开始菜单-程序-carbide2.0中有个菜单叫“Configure environment for WINSCW command line”,选择,会提示你是否添加环境变量,键入 y 然后回车即可。

打开cmd.exe,输入:

cd C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/helloworldbasic/group

这里有我们即将涉及到的两个文件:
HelloWorld.mmp        项目定义文件
Bld.inf                        组件定义文件

 

构建我们的例子,请输入:
bldmake bldfiles
这一步会生成一个文件ABLD.BAT。

 

编译和链接,请输入:
abld build winscw udeb

这一步会生成供Series 60 调试模拟器使用的文件。

 

运行,请在命令行进入:
cd C:/S60/devices/S60_5th_Edition_SDK_v1.0/epoc32/release/winscw/udeb
这个目录含有刚生成的helloworld.exe文件。然后输入:
helloworld.exe
这会调用Series 60的模拟器,并在其中运行helloworld.exe程序。

 

使用Carbide

 

These steps are described in the document :http://library.forum.nokia.com/

 

Importing HelloWorldBasic to Carbide.c++

 

This section describes how you can import a project into Carbide.c++.

Optional task: Make a copy of the project before importing

If you don't want to modify the HelloWorldBasic project package file (.pkg) when you create the installation file (.sisx), you must build the project in the original location, C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic . Before you modify the project files, make a copy of the project, so that you can later on rebuild the project from the original files:

  1. Copy the C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic folder and all its sub-folders to a backup folder (for example, C:/temp ).

  2. Import the HelloWorldBasic project from the C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic folder. The importing procedure is described below.

  3. Modify the imported project files.

  4. To recreate the HelloWorldBasic project from the original files:

    1. Remove the C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic folder and all its subfolders.

    2. Copy the original files from the backup folder (in this example C:/temp folder) to the C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic folder.

    3. Import the HelloWorldBasic project from the C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic folder.

To import a project into Carbide.c++

  1. Start Carbide.c++ .

  2. Select File > Import... > Symbian OS Bld.inf file > Next .

    Figure: Importing an existing Symbian OS project file (bld.inf).

    The File Import Wizard (Symbian OS Bld.inf file) window for selecting a bld.inf file opens.

  3. To select the helloworldbasic project bld.inf file:

    1. Click Browse .

    2. Select C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic/group/bld.inf.

    3. Click Open .

    4. Click Next .

    The File Import Wizard (Symbian OS SDKs) window for selecting build configurations for helloworldbasic project opens.

  4. Select S60_5th_Edition_SDK_v1.0 and click Next .

    Figure: Selecting Symbian OS SDKs.

    The File Import Wizard (MMP Selection) window for selecting the mmp and extension make files opens.

  5. Make sure that Icons_scalable_dk.mk and helloworldbasic.mmp are selected and click Next .

    Figure: Selecting MMP and extension make files.

    The File Import Wizard (Project Properties) window for defining the project name and root directory opens.

  6. Accept the default values for the project name (helloworldbasic) and root directory (C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/helloworldbasic), and click Finish .

The wizard imports the helloworldbasic project and shows it in the Project Explorer view.

Figure: The imported helloworldbasic project in the Project Explorer view.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值