03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

make -r -f "\EPOC32\BUILD\SCMP\HELLOGUI\GROUP\WINSCW.make" LIBRARY<br />

VERBOSE=-s<br />

make -s -r -f<br />

"\EPOC32\BUILD\SCMP\HELLOGUI\GROUP\HELLOGUI\WINSCW\HELLOGUI.WINSCW"<br />

LIBRARY<br />

make -r -f "\EPOC32\BUILD\SCMP\HELLOGUI\GROUP\WINSCW.make"<br />

RESOURCE<br />

CFG=UDEB VERBOSE=-s<br />

make -s -r -f<br />

"\EPOC32\BUILD\SCMP\HELLOGUI\GROUP\HELLOGUI\WINSCW\HELLOGUI.WINSCW"<br />

RESOURCEUDEB<br />

make -r -f "\EPOC32\BUILD\SCMP\HELLOGUI\GROUP\WINSCW.make" TARGET<br />

CFG=UDEB VERBOSE=-s<br />

make -s -r -f<br />

"\EPOC32\BUILD\SCMP\HELLOGUI\GROUP\HELLOGUI\WINSCW\HELLOGUI.WINSCW"<br />

UDEB<br />

make -r -f "\EPOC32\BUILD\SCMP\HELLOGUI\GROUP\WINSCW.make" FINAL<br />

CFG=UDEB<br />

VERBOSE=-s<br />

When building has finished, the application will be in \epoc32\<br />

release\winscw\udeb\z\system\apps\hellogui\. In Windows Explorer, you'll see<br />

hellogui.app and hellogui.rsc, which are the real targets of the build.<br />

This time, unlike for hellotext, you can't launch the application directly by (say) doubleclicking<br />

on hellogui.app from Windows Explorer. Instead, you have to launch the<br />

emulator using \epoc32\release\winscw\udeb\epoc.exe. You'll find that hellogui is<br />

displayed as an application, and you can launch it by clicking on its icon. This is what it looks<br />

like.<br />

You can see the world-famous text in the center of the screen, together with a menu that<br />

happened to be popped up when I did the screenshot.<br />

4.4.5 Building in the CodeWarrior IDE<br />

The main phase of real application development is writing, building, and debugging from<br />

within the Metrowerks CodeWarrior IDE – not the command line. To see how to build a GUI<br />

program from the IDE, let's start with a clean sheet. If you tried out the command-line build<br />

above, from the command line type:<br />

abld reallyclean<br />

which will get rid of all files from the build. (It may also report errors and issue not-found<br />

messages as it tries to get rid of files that might have been produced, but weren't.)<br />

You can then launch the IDE and select File | Import Project From.mmp File to build the<br />

CodeWarrior project file. Select the appropriate

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

Saved successfully!

Ooh no, something went wrong!