Setting Up a Build Environment From the Command-Line (Windows CE 5.0)

If you are working in a command-line environment, you can set up a build environment for a workspace. This enables you to build a run-time image that is based on the OS design in your workspace from a command-line prompt without having to start Platform Builder.

Before you set up a build environment, select the BSP and configuration that you want to use in your OS design.

It is assumed that you have already created an XML-based Platform Builder workspace (.pbxml) file for your OS design. If you have not, for information, see Creating an OS Design.

To set up a build environment

  1. From a command-line prompt, navigate to <Platform Builder installation path>\cepb\bin.

  2. Call the command-line tool PBXmlUtils.exe by typing the following command:

    pbxmlutils /getbuildenv /workspace 
    "%_WINCEROOT%\PBWorkspaces&lt;
    OS design name
    >&lt;
    OS design name
    >.pbxml" 
    /config "<
    BSP
    >: <
    Target device
    >" > SetEnv.bat
    

    This creates a batch file that sets up the build environment for your workspace.

    For example, to set up the build environment for an OS design called MyWorkspace, based on an x86 CPU and targeted for the Emulator, type the following command:

pbxmlutils /getbuildenv /workspace "C:\WINCE500\PBWorkspaces\MyWorkspace\MyWorkspace.pbxml" /config "Emulator: x86_Debug" > SetEnv.bat

  1. Set up a command-prompt build window by running the batch file you created, SetEnv.bat.

See Also

How to Use the Command Line to Create, Customize, and Build a Run-Time Image

Last updated on Thursday, February 02, 2006

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.