首 页 | 新 闻 | Symbian | Android| Windows Mobile | J2ME | 下载中心 | 游戏策划招聘与求职 | 购书指南 | 视频教程
您现在的位置: 开发视界 >> Symbian >> Symbian开发 >> 正文
Symbian SDK之间的切换
作者:百泉居    文章来源:百泉居    更新时间:2008-5-6 14:23:40

在一台机器上可以安装Symbian的多个SDK,在多个SDK共存在情况下,要使用不同的SDK环境编译应用程序,可以通过devices命令寻求帮助。
查看当前可用的Symbian设备,使用devices命令:
C:\Documents and Settings\shiyigang>devices
-------------------------------------------------------------------------------------------
S60_2nd_FP2_SC:com.nokia.Series60
S60_3rd_FP2_Beta:com.nokia.s60 - default
其中标记为- default者为当前默认的设备,因此,本机当前使用的设备是s60第三版。在此状态下,如果在命令行下编译Symbian程序,则默认使用s60 3rd的编译环境。如果要编译s60 2nd的程序,则必须更改默认设备。

更改默认设备,
C:\Documents and Settings\shiyigang>devices -setdefault @s60_2nd_fp2_sc:com.nokia.series60
要注意的是,以上命令中,设备名前面的@符号一定不能省略,否则该命令不能成功执行。
-------------------------------------------------------------------------------------------

devices命令还有一些其他用法,可以通过-help选项进行查看:
C:\Documents and Settings\shiyigang>devices -help
-------------------------------------------------------------------------------------------
Syntax: devices -info @deviceID         Displays detailed device information
devices -default        Displays the default device information
devices -setdefault @deviceID   Sets the default device
devices -setalias new_alias @deviceID   Sets the alias for a device
devices -add device_path tools_path @deviceID
devices -remove @deviceID
devices -help   Displays this help
  where deviceID is a device identifier (of the form 'kit:name') or
  device alias, preceded by '@'
  new_alias is a new device alias
  device_path is the location of the main epoc32 directory
  tools_path is the location of the epoc32\tools directory
Note: When using -setalias or -add, the device may not be referred to by
an alias.

With no arguments or switches, devices lists all device names and aliases

相关文章:
没有相关文章
 

站点地图 | 加入收藏 | 联系站长 | 广告服务 |
QQ:280529124  Tel:0592-8271361 辽ICP备05021703号