The SDK support of Carbide.c++ allows you to build S60 applications and run them in the emulator directly from the IDE. Building and running an example application for the emulator from Carbide.c++ 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: Carbide.c++ 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).
The Import Project wizard of Carbide.c++ allows you to import
Symbian OS projects into the IDE. With the wizard you can import both component
description file (bld.inf
) and project definition file
(.mmp
) based projects.
To import an example application (in this case Hello World Basic) to Carbide.c++, do the following:
Select File > Import.. from the menu bar.
In the Import dialog, select "Symbian MMP File" and click Next.
In the MMP
File field, browse to the .mmp
file (located in the group
folder)
of the example application that you want to import.
For example:
<S60_SDK_installation_directory>\S60CppExamples\HelloWorldBasic\group\helloworldbasic.mmp
In the SDKs and Build Configurations list, under "All SDKs" select "Nokia Symbian^3" and "Emulator Debug(WINSCW)[S60_5th_Edition_SDK_V1.0]".
Click Finish.
The wizard will now create import the project and display it in the C/C++ Projects view, from where it can be built.
For more information on importing and creating project in Carbide.c++, please refer to the following topic in the Carbide.c++ Help:
Carbide.c++ User Guide > Symbian OS Projects > Tasks > Projects > Importing Projects
In order to be able to view an aplication in the SDK emulator, you need to create a WINSCW build of it:
Select Project > Properties from the menu bar.
The Properties dialog opens. Here you can manage the build process by defining all aspects of the build by entering the needed information.
Click C/C++ Build in the dialog TOC.
Select "S60 3.0 Emulator Debug" from the Configuration drop-down menu.
Click OK.
Select Project > Build Project from the menu bar.
Carbide.c++ creates a build of your project according to the current configuration determined in the Properties dialog - in this case, a WINSCW build.
For more information on building a project, please refer to the following topics in the Carbide.c++ Help:
Carbide.c++ User Guide > Getting Started > First Application Example > 5. Building a Symbian OS Executable
C/C++ Development User Guide > Tasks > Building projects
Once you have created a GCCE build of your project, you can run it on the S60 emulator.
Select Run > Run... from the menu bar.
The Run dialog opens. The Run dialog allows you to define the launch configuration of the build.
Select the GCCE build from the Configurations list of the dialog.
Define and/or accept the values in the fields (above all, make sure that the Executable and Emulator or host application paths are correct).
Click the Apply button.
Click the Run button.
The application is launched in the emulator (see step 2 onwards in Launch the application in the emulator for a description of the Hello World Basic example application).
For more information on running projects and applications through Carbide.c++, please refer to the following topics in the Carbide.c++ Help:
Carbide.c++ User Guide > Getting Started > First Application Example > 3. Building a Symbian OS Executable
C/C++ Development User Guide > Tasks > First Application Example > Running and debugging projects