Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Files and locations


Overview

The Emulator maps the Symbian platform file system onto the PC’s file system. This drive mapping is performed at run-time. It enables applications to use the file system drives without interfering with PC’s drives in unpredictable ways. The Symbian platform creates two default drives: z:, which in target machines maps to the ROM, and c:, a RAM drive.

To allow for the differing requirements of different products containing the Emulator, the default locations for the virtual drives vary depending on where the Emulator itself is installed. This section describes the different cases.

You can also add further virtual drives, and reconfigure the standard drives to map to alternative locations.

[Top]


Virtual drives

The two default virtual drives, z: and c:, can be changed, and new virtual drives can be added — for example to simulate a CF card acting as a removable drive.

There are a number of ways of performing these tasks. The recommended method is to use the configuration file. If required, you can also override the location of the emulated c: drive using the command-line.

Note that any mapping for the z: drive must specify a directory named z.


See also

How to emulate drives using the configuration file, How to emulate c: using a command-line option

[Top]


Emulator in C++ SDK

When the Emulator is used with the C++ SDK, it must be located in the following directories:

When this is the case, drives z: and c: are mapped by default to sub-directories of the \epoc32\ tree, as follows:

c:

.\epoc32\wins\c\

z:

.\epoc32\release\wins\urel\z\, or \ .\epoc32\release\wins\udeb\z\

Therefore, an application program such as z:\system\apps\helloworld\helloworld.app is mapped by the Unicode debug build to .\epoc32\release\wins\udeb\z\system\apps\helloworld\helloworld.app.

Configuration files for the Emulator are located in \epoc32\data\.


Note

[Top]


Alternative Emulator location

In some products, the Emulator can be run in another location than \epoc32\release\wins\build\. In this case, the Emulator looks by default for the following sub-directories below its own location:

Name

Description

c

virtual c: drive

z

virtual z: drive

data

Emulator configuration files

[Top]


Location of executable programs

GUI application programs must be located in a folder under the z:\system\apps\ directory tree to appear on the Extras bar.

This usual configuration is determined by the way that the Emulator locates a library file that is to be loaded. In detail, this is as follows:

Executable applications, e.g. text console applications, must be located in the same directory as those dll files which they statically link to. The usual approach is to build both exe and dll files to the z: parent directory. The location of emulated drives is calculated from the directory containing the exe.

[Top]


Installation of more than one SDK

The EPOCROOT environment variable allows different SDKs to be installed on the same drive. By changing EPOCROOT a build can be done for the required SDK. There can only be one EPOCROOT and therefore only one active development environment at any one time. Tools are installed in a shared path while the rest of the epoc32 tree that comprises each SDK emulator can be installed in its own directory. EPOCROOT points to the directory of the "active" emulator installation and tools that recognise EPOCROOT, such as epoc.bat build into this location. The epoc.bat tool is invoked to launch the active emulator.

It should be noted that the emulator may still be used in the same way as for ER5 — by installing the emulator in its own drive and running the executable epoc.exe.


See also

How to configure the EPOCROOT environment variable, How to start the emulator.

[Top]


Application data files

Application data files can be copied from a Symbian machine, using EPOC Connect, onto a Emulator virtual drive and opened from within the Emulator. This is not true of Application code which must be re-compiled to run on each platform.

Installation .sis files can be installed on the Emulator, using the application install program from the Emulator's application launcher. The install program dispalys a list of .sis files to install. These should be located in .\epoc32\wins\c\.

Applications are installed to .\epoc32\release\wins\udeb\z\system\apps\ for debug builds or .\epoc32\release\wins\urel\z\system\apps\ for release builds.