Subject: Symbian编程三部曲--运行Hellow World程序
Lee
Administrator
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 0
Credits 18567
Posts 133
Money 189
Reading Access 200
Registered 13-3-2007
Status Offline
Post at 17-5-2007 12:33  Profile | Blog | P.M. 
Symbian编程三部曲--运行Hellow World程序

一、Helloword示例:

首先检查SDK是否能够正常运行:
进入一个DOS界面
输入"NMAKE",如果得到Microsoft Error message U1064的错误提示,检查你的路径配置是否正确。如果提示NMAKE is not a recognised command,需要运行路径为C:\Program Files\Microsoft Visual Studio\VC98\Bin 下的VCVARS32.BAT脚本。

在DOS下进入HellowWorld,路径为C:\Symbian\6.1\Series60\Epoc32Ex\Basics\HelloWorld
这个目录下包含3个文件:
bid.inf
helloworld.mmp
helloworld.c

Bid.inf文件是主要的Project文件:[attach]53[/attach]
HelloWorld.mmp是一个project makefile.包括所有源文件和库的列表:[attach]54[/attach]
HelloWord.cpp是C++代码:[attach]55[/attach]
CommonFramework.h是一个头文件,The CommonFramework.h set up a basic console environment and calls a doExampleL() primitive: this is an extremely useful file to begin playing Symbian C++ without the burden of NS60 specific code (you can also read A simple text console if you want to know more about this console).


二、命令行编码:
在DOS环境下输入 bldmake bldfiles.将会在Project目录下创建一个ABLD.BAT文件,这是编译程序的入口文件。

输入abld build wins udeb进行编译。编辑后的结果存在C:\Symbian\6.1\Series60\Epoc32\Release\wins\UDEB目录下。输入Helloworld就可以在epoc模拟器下运行"Hello world"程序了。

三、用Visual C++
你也可以用C++编译和执行应用程序。
回到C:\Symbian\6.1\Series60\Epoc32Ex\Basics\HelloWorld
用命令生成一个Visual C++ workspace:abld makefile vc6
在下面的目录可以找到C:\Symbian\ 6.1\ Series60\ Epoc32\ BUILD\ SYMBIAN\ 6.1\ SERIES60\ EPOC32EX\ BASICS\ HELLOWORLD\ HELLOWORLD\ WINS
打开这个workspace并重新编译,用CTRL-F5开始运行。

四、目标编译
现在需要在你的移动设备上运行这个程序,回到DOS下,进入C:\Symbian\6.1\Series60\Epoc32Ex\Basics\HelloWorld
用abld命令编译abld build thumb urel

文章来源:NewLC


 Attachment: Your usergroup does not have permission to access attachments




有其他问题请加入Symbian开发群参与讨论:群 ①:623041已满,群②:36865776已满 请加群③:76404484
Top
Fang_W
Newbie
Rank: 1



UID 485
Digest Posts 0
Credits 2
Posts 4
Money 14
Reading Access 10
Registered 12-9-2007
Status Offline
Post at 12-9-2007 10:27  Profile | P.M. 
我执行到abld build wins udeb时,就会出错。
怎么解决啊
Top
 


All times are GMT+8, the time now is 9-9-2010 20:22

CopyRight © Symbianx.cn 2007 Powered By Discuz! 5
Clear Cookies - Contact Us - Symbian OS系统[S60,UIQ]开发中文翻译论坛 - Archiver

本站原文版权归原文作者所有,本站译文版权归本站所有,如需转载请注明原文和译文出处,否则追究法律责任