Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Using the devices command

From Wiki
Jump to: navigation, search
Article Metadata
Article
Created: giaperrucci (07 Jun 2007)
Last edited: hamishwillee (31 Jul 2012)

The devices command is especially useful when having several SDKs installed and using the command-line for building. It sets the environmental variables we need to build using a specific SDK.

Open a command-promt and check out the SDKs you have installed by typing:


C:\> devices


The result on my machine shows:


Image1.png


When we e.g. execute our build commands:


bldmake bldfiles

abld build winscw udeb


We will use the default SDK - to select another SDK we enter:


C:\>devices -setdefault @device-identifier


Where device-identifier has the format kitname:devicename, in my case I could set the 2nd Edition FP3 SDK as my default as shown:


Image2.png

To avoid entering the long device-identifier string we can create aliases for each SDK. As you can see on the first screen shot in this document I already have an alias for my 3 Edition FP1 SDK called 3rdFP1. An alias is created using the following command:


C:\>devices -setalias alias @device-identifier



I could do this for my 2nd Edition FP3 SDK as shown in the figure below:



Image3.png


We can also override the default setting for a particular command, or for the current window session. Overriding the devices setting for a particular command e.g.:


C:\>bldmake bldfiles @3rdFP1

C:\>abld build winscw udeb


Overriding the setting for the current command window session is done by setting the environment variable EPOCDEVICE:


C:\>set EPOCDEVICE=3rdFP1


Finally you get see some additional features of the devices command by entering:


C:\>devices -help

This page was last modified on 31 July 2012, at 10:02.
48 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×