积分规则 网站地图 帮助中心    
嵌入式软件 单 片 机 DSP 存储器 传感控制 光电显示
嵌入式硬件 CPLD/FPGA SOPC AD/DA 接口电路 模拟设计
I C设计 通信产品 汽车电子 电源产品 消费电子 数控系统
工业控制 军工/航天 安防产品 医疗电子 计算机外设 测试测量
供应 I C
求购 公司库

  IC 求购 销售 公司 论文 DATASHEET 参考设计 论坛
当前位置: 电子技术 >> 嵌入式软件 >> Symbian
  相关分类: LINUX | WINCE | UC/OS | Bootloader | 下载 | VXWORKS | 网络协议 | JAVA | 汇编 | 驱动设计 | Symbian | XP Embedded | Nucleus | 新产品 | 相关文章 | 综合技术 |
symbian入门系列 -- framework
 
作者:未知   来源:本站原创    点击数:870   更新时间:2007-11-20
您可以添加到网摘 让更多人关注此文章:

    其实在我看来,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. \animation\gui\group 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%epoc32\Build'''' directory, where %EPOCROOT% is the pathname of the emulator root; e.g. \Symbian\6.0\NokiaCPP\
(在我使用的siemens SX1中目录为Q:\Siemens\SX1\bin )
 Run Microsoft Visual C++ and open the workspace file
The workspace file a pathname of the following form:
%EPOCROOT%Epoc32\Build\ApplicationPathname\Group\ApplicationName\Wins\ApplicationName.DSW
where:
%EPOCROOT% is the pathname of the emulator root; e.g. \Symbian\6.0\NokiaCPP\ (在我使用的siemens SX1中目录为Q:\Siemens\SX1\bin )
ApplicationPathname is the pathname of the example application folder; e.g. \Examples\animation
ApplicationName is the name of the example application. e.g. animation
So the whole pathname could be, e.g.
\Epoc32\Build\Examples\animation\Group\animation\Wins\animation.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\release\wins\udeb\epoc.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. ''''\animation\gui\group'''' 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.



相关文章
· 三星同意将Symbian股份出售给诺基亚[131]
· More firms endorse Symbian Foundation[588]
· Symbian操作系统[442]
· Windows C++ 程序员如何过度到Symbian C++ ?[827]
· Symbian内存管理的二十二条军规[657]
热门评论排行
·VHDL设计中电路简化问题的
·ARM嵌入式系统基础教程(N
·江苏嵌入式Linux教育培训
·ARM处理器应用开发4步骤
·锐极LINUX驱动培训班定于

文章评论
    没有任何评论
*只显示最新10条评论。评论内容只代表网友观点,与本站立场无关。更多评论
发表评论
  * 请先[登陆]再进行评论,谢谢。
评分: 1分 2分 3分 4分 5分
内容: *
发帖须知:
一.所发文章必须遵守《互联网电子公告服务管理规定》;
二.严禁发布供求代理信息,公司介绍,产品信息等广告宣传信息;
三.严禁恶意重复发帖;
四.严禁对个人,实体,民族,国家等进行漫骂,污蔑,诽谤。
 
热点新闻 [更多]
 
新兴半导体技术催生绿色节能的大学校园
电子系统创新促进汽车走向环保与节能
意法CEO携新品巡游中国 
未来3年新余需要8万光伏产业人才
看好中国未来发展:瑞萨提升在华芯片产
中国LED发展神速将成为未来照明产业
剖析联发科技2009年五大产品策略
突破四大障碍 蓝牙立体声耳
瑞萨向德国企业出售当地半导体前工序工
产业紧缩 PCB业或将提前
 
热门下载 [更多]
 
[ PCB设计] Protel99教程下载
[ ] 手把手学单片机20个例
[ ] 单片机做的智能台灯
[ ] 单片机入门书
[ ] linux系统移植开发文档
[ ] IC卡的读写程序
[ ] 8051单片机C语言彻底应用
[ 常用软件] 555定时器电路设计软件V1.2
[ 常用软件] 51定时器计算软件
[ ] ARM处理器应用开发4步骤
 
论坛新帖 [更多]
 
[转]教你如何进行电磁兼容设计...
[转]汽车和专业音响原厂设计原...
诺基亚,三星手机原厂图纸和PC...
电子元器件可靠性和失效分析经典...
[建议]FPGA设计技巧与实例...
Xilinx FPGA设计快速...
基于CPLD的各种设计实例和分...
教你如何学会MSP430单片机...
凌阳单片机教程(共8章)非常详...
[建议]学习PIC系列单片机的...

 
赞助商 [更多]
 

ICP许可证号:[粤 05056597]
联系电话:010-82517432 82517615 传真: 010-82517615

版权所有 Copyright © 2006 嵌入式技术网