Symbian SDK的安装与使用

来源:互联网 发布:vue.js 教程 pdf 微盘 编辑:程序博客网 时间:2024/04/29 16:06

一 安装部分

Installing Perl

Perl (www.activestate.com)

  • ActivePerl-5.6.1.635 (5.6.1 is required by Symbian tools, later versions will not work)

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

 

安装ActivePerl-5.6.1的时候发现,快完的时候提示说”INTERNAL ERROR2739错误“,网上找了一下,向下面打开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/

 

ImportingHelloWorldBasic 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

Ifyou don't want to modify the HelloWorldBasic project package file (.pkg)when you create the installation file (.sisx), you must build the projectin 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 youcan 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 HelloWorldBasicproject from the C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic folder.The importing procedure is described below.

  3. Modify the importedproject files.

  4. To recreate the HelloWorldBasicproject 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 filesfrom 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 HelloWorldBasicproject from the C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic folder.

To import a project into Carbide.c++

  1. StartCarbide.c++.

  2. Select File > Import... > SymbianOS 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 selectinga bld.inf file opens.

  3. To select the helloworldbasicproject 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 selectingbuild configurations for helloworldbasic project opens.

  4. Select S60_5th_Edition_SDK_v1.0and click Next.

    Figure: Selecting Symbian OS SDKs.

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

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

    Figure: Selecting MMP and extension make files.

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

  6. Acceptthe default valuesfor the project name (helloworldbasic) and root directory(C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/helloworldbasic),andclick Finish.

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

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