03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure A4.5<br />

An emulator configuration directory and startup directory completes the list of directories<br />

required by the emulator. Here's an example of the directories involved when using<br />

CodeWarrior:<br />

Directory Description Contents<br />

\epoc32\data\ Emulator<br />

configuration<br />

directory<br />

\epoc32\release\<br />

winscw\udeb\<br />

\epoc32\release\<br />

winscw\udeb\z\<br />

Emulator<br />

startup<br />

directory<br />

Emulated<br />

z:drive<br />

\epoc32\winscw\c\ Emulated<br />

c:drive<br />

Why those long names?<br />

epoc.ini (the initialization parameters for the<br />

emulator), epoc.bmp (the bitmap used as the<br />

fascia surround for the screen), and variants for<br />

screens of different sizes.<br />

epoc.exe, the program you invoke from<br />

Windows to bring up the emulator, is in here. So<br />

are all the shared library DLLs.<br />

Everything that the EPOC z:drive should<br />

contain, except shared library DLLs that are in<br />

the parent directory.<br />

Any data and files. No compiled C++ programs –<br />

those should all be on z:.<br />

In the emulator, all compiled applications become<br />

part of the pseudo-ROM that is the emulated z:<br />

drive.<br />

You might wonder why there are so many deeply nested directories. The directories<br />

categorize the Symbian OS SDK materials, as follows:<br />

� \epoc32\ sets apart all Symbian OS SDK runtime software from anything else on the<br />

same drive.<br />

� release\ sets apart released code from documentation, temporary build files,<br />

configuration files, and so on.<br />

� winstarget\ sets apart the emulator from target machine builds. Different targets use<br />

different directories; in the case of Metrowerks CodeWarrior it's winscw.<br />

� udeb\ sets apart the debug build from other builds.<br />

� z\ attempts to mirror the structure of z: on a real Symbian OS phone.<br />

An executable C++ program built for the emulator debug build won't run in any other<br />

execution environment, so the debug build is kept distinct from any other build.<br />

It would be nice if \epoc32\release\winstarget\udeb\z\ could contain the entire<br />

emulated z: drive. Unfortunately, it can't: .exes and shared library DLLs can't use the file

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!