>
首页 » 业界动态 » symbian入门系列 -- framework

symbian入门系列 -- framework

作者:  时间:2008-07-30 11:32  来源:52RD嵌入式开发

这是入门的第二篇文章。其实在我看来,symbian OS之上的MMI编程和MFC类似,都是有个application framework,用户需要的就是在这个基础之上,对类进行继承,对函数进行重载,而framework完成了很多和系统进行交互的工作。

This is the second document . on my opinion, there are same a little between MFC and symbian OS .They all own a application framework on their basic OS. Based on such framework, user only need to make their own derived class ,and reload the virtual functions. and the framework can help u hanle most work interacting with the  OS.


=================================== 
这是文档中关于编译和运行的资料,我懒得翻译了。还有结合我开发中的问题 
做了补充。 
=================================== 
1. abld是利用项目文件(appname.mmp)进行编译的,所以,在你的mmp文件改动过后,一定要利用 
abld makefile vc6 
重新生成VC工程文件,然后才能够利用VC进行app的编译,否则会出错。 
(手工修改VC的编译、连接设置不起作用,不知为何?) 
一、编译和运行 
1. Building and running the examples 
This section explains how to build and run the SDK example applications. All the applications are built and run in the same way. The applications can be built to run on the Symbian OS emulator, or the target device. 
2. Building for the Symbian OS emulator 
The SDK and the example applications should be installed. 
To build an application, do the following: 
1. Create the abld file. 
In a command window, go into the application''''s top level folder (the one which contains the bld.inf file) e.g. animationguigroup and enter the following command: 
bldmake bldfiles 
This will create the abld.bat file in the current directory. 
2. Create the Wins build files and build the application. 
In the application''''s top level folder enter the following command: 
abld build wins udeb 
This will create the necessary build files and build the application, including any resource files required. This stage may produce warnings. If it produces errors, a DLL component may not have had its exports frozen. Perform step 3, below. 
3. If the application has a DLL component, freeze the exports. 
If an application contains a DLL component this step must be performed, otherwise it can be skipped. In the application''''s top level folder enter the following command: 
abld freeze 
This will ensure that the exports are frozen. Then enter the following command (repeated from step 2): 
abld build wins udeb 
This will build against the newly frozen interface.. 
3. Running the application on the emulator 
To run the application on the emulator, carry out the following steps: 
1. Run the emulator. 
From a command window, run the command 
Epoc 
to launch the debug emulator, or 
epoc -rel 
to launch the release emulator. The emulator window will appear. 
2. Find the application folder. 
When the emulator has started, a set of applications and folders will appear. Find the Other folder. 
3. Run the application. 
Select the Other folder, and then select the relevant application icon. This will run the application. 
4. Running the application from Visual C++ 
The emulator can also be run from Microsoft Visual C++. This can be useful when modifying or debugging the application. 
 Create the Visual C++ workspace and project files. 
In the application''''s top level folder enter the following command: 
abld makefile vc6 
This will create the Visual C++ project files in a subdirectory of the %EPOCROOT%epoc32Build'''' directory, where %EPOCROOT% is the pathname of the emulator root; e.g. Symbian6.0NokiaCPP 
(在我使用的siemens SX1中目录为Q:SiemensSX1in ) 
 Run Microsoft Visual C++ and open the workspace file 
The workspace file a pathname of the following form: 
%EPOCROOT%Epoc32BuildApplicationPathnameGroupApplicationNameWinsApplicationName.DSW 
where: 
%EPOCROOT% is the pathname of the emulator root; e.g. Symbian6.0NokiaCPP (在我使用的siemens SX1中目录为Q:SiemensSX1in ) 
ApplicationPathname is the pathname of the example application folder; e.g. Examplesanimation 
ApplicationName is the name of the example application. e.g. animation 
So the whole pathname could be, e.g. 
Epoc32BuildExamplesanimationGroupanimationWinsanimation.DSW 
 Select the Execute item from the Build menu. 
When the ''''Executable for Debug Session'''' dialog box appears press the command button in the right of the dialog box and select browse from the pop-up menu. Using the browse dialog select the file %EPOCROOT%epoc32 eleasewinsudebepoc.exe. The emulator will run. You only need to do this once. When you subsequently select execute for this application, the emulator will automatically run. 
5 Building for the target device 
The SDK and the example applications should be installed. 
To build the applications, do the following: 
5.1 Create the abld file. 
Go into the application''''s top level folder (the one which contains the bld.inf file) e.g. ''''animationguigroup'''' and enter the following command: 
bldmake bldfiles 
This will create the abld.bat file in the current directory. 
5.2 Create the target build files and build the application. 
In the application''''s top level folder enter one of the following commands, depending upon whether you wish to target the ARMI or THUMB instructions sets: 
abld build armi urel 
abld build thumb urel 
This will create the necessary build files and build the application, including any resource files required. This stage may produce warnings. If it produces errors, a DLL component may not have had its exports frozen. Perform stage 3, below. 
5.3 If the application has a DLL component, freeze the exports. 
If an application contains a DLL component this step must be performed, otherwise 
it can be skipped. In the application''''s top level folder enter the following command: 
abld freeze 
This will ensure that the exports are frozen. Then enter the following command (repeated from step 2): 
abld build armi urel 
abld build thumb urel 
This will build against the newly frozen interface.(52RD.com)

相关推荐

运营商搅局手机OS市场:储备核心技术

智能手机  OS  2013-07-10

诺基亚CEO:推行双OS战略 高端继续专注于WP

诺基亚  OS  2013-02-26

惠普正式分拆webOS全球事业部 保留硬件部门

惠普  OS  2011-09-07

诺基亚赵科林:前段时间中国渠道确实出了问题

诺基亚  Symbian  2011-08-30

谷歌发布新版Chrome OS 开机时间节约32%

谷歌  Chrome  OS  2011-08-12

诺基亚将Symbian开发外包给埃哲森

诺基亚  Symbian  2011-06-23
在线研讨会
焦点