安装Symbian的多个SDK

来源:互联网 发布:js隐式转换为数字 编辑:程序博客网 时间:2024/05/16 10:14

实际证明Symbian是可以在一台机器上可以安装Symbian的多个SDK,在多个SDK共存在情况下,要使用不同的SDK环境编译应用程序,可以通过devices命令寻求帮助。
查看当前可用的Symbian设备,使用devices命令:
C:/Documents and Settings/xx>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/xx>devices -setdefault @s60_2nd_fp2_sc:com.nokia.series60
要注意的是,以上命令中,设备名前面的@符号一定不能省略,否则该命令不能成功执行。
-------------------------------------------------------------------------------------------

devices命令还有一些其他用法,可以通过-help选项进行查看:
C:/Documents and Settings/xx>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

安装多个后,再写个批处理程序就能自由转换了!

 

by      http://hi.csdn.net/dongfengsun

 

@echo off
@color b
title Series60 SDK自动切换工具/******制作人:孙东风******/
:xstart
cls
del info.txt
devices>>info.txt
for /f "delims=" %%i in (info.txt) do echo %%i
set /p selectindex=请输入您所选择的SDK的序列号(从1开始计数):
for /f "tokens=1,* delims=:" %%a in ('findstr /n . info.txt') do if %%a==%selectindex% devices -setdefault ^@%%b
goto xstart

原创粉丝点击