Building and running an example application for the emulator from CodeWarrior consists of the following steps:
importing an example application to the IDE
creating a WINSCW build of the example application
running the example application in the emulator
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).
To import an example application to the CodeWarrior IDE, do the following:
Start the CodeWarrior IDE.
In the CodeWarrior IDE, import the application project file by selecting File > Import Project from .mmp File menu command.
In the Symbian Importer - SDK Selection dialog which appears, select the appropriate vendor and S60 SDK to be used with the application. Click Next.
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).
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.
To build and launch the application from the CodeWarrior IDE, do the following:
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.
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
Once you have created a WINSCW build of an example application, you can run it in the emulator followingly:
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).