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
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/ )
Qt SDKs (www.trolltech.com )
UIQ SDKs (developer.uiq.com )
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/
This section describes how you can import a project into Carbide.c++.
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:
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 ).
Import the HelloWorldBasic project from the C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic folder. The importing procedure is described below.
Modify the imported project files.
To recreate the HelloWorldBasic project from the original files:
Remove the C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic folder and all its subfolders.
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.
Import the HelloWorldBasic project from the C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic folder.
Start Carbide.c++ .
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.
To select the helloworldbasic project bld.inf file:
Click Browse .
Select C:/S60/devices/S60_5th_Edition_SDK_v1.0/S60CppExamples/HelloWorldBasic/group/bld.inf.
Click Open .
Click Next .
The File Import Wizard (Symbian OS SDKs) window for selecting build configurations for helloworldbasic project opens.
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.
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.
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.