Building and running example applications from CodeWarrior

Building and running an example application for the emulator from CodeWarrior consists of the following steps:

Note: CodeWarrior does not perform actions described in the bld.inf file. For instance exports and additional makefiles are ignored. Almost all example applications are affected by this problem. Thus, it is recommended to build example applications first on command line and import these into the IDE only after a successful command line build (see Building and Running Example Applications from the Command Line).

Importing an example application to CodeWarrior

To import an example application to the CodeWarrior IDE, do the following:

  1. Start the CodeWarrior IDE.

  2. In the CodeWarrior IDE, import the application project file by selecting File > Import Project from .mmp File menu command.

  3. In the Symbian Importer - SDK Selection dialog which appears, select the appropriate vendor and S60 SDK to be used with the application. Click Next.

  4. In the Symbian Importer - MMP File Selection dialog, enter the name of the .mmp file (that is, <application_name>.mmp) that you want to build and run in the File Selection text field.

    The .mmp project file of an application is located in the group subdirectory. For example,

    <S60_SDK_installation_directory>\S60Ex\helloworldbasic\group\helloworld.mmp

    You can use the Browse button to locate the appropriate .mmp file, or enter the absolute path of the .mmp file in question.

    Note: Leave the Platform Selection field blank (the emulator platform for CodeWarrior is WINSCW).

  5. Click Finish to import the .mmp file.

Once imported, the CodeWarrior IDE converts the .mmp project file to an .mcp CodeWarrior project file. This enables you to, for example, modify the application in the CodeWarrior IDE.

Creating a WINSCW build of an example application in CodeWarrior

To build and launch the application from the CodeWarrior IDE, do the following:

  1. With the .mcp project file of the application open in the CodeWarrior IDE, select Project > Set Default Target > WINSCW UDEB from the menu bar.

    The build target is changed to WINSCW.

  2. Select Project > Make from the menu bar (or press F7).

    The CodeWarrior IDE builds a WINSCW debug build of the example application. To run the udeb build of the application on the emulator, do the following

Running an example application in the emulator from CodeWarrior

Once you have created a WINSCW build of an example application, you can run it in the emulator followingly:

  1. With the .mcp project file of the application open in the CodeWarrior IDE, select Project > Run from the menu bar.

The emulator is opened (see step 2 onwards in Launch the application in the emulator for a description of the Hello World Basic example application).