O'Reilly logo

Palm OS Programming, 2nd Edition by Neil Rhodes, Julie McKeehan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing OReilly Sample project

This section of the tutorial is for both Windows and Unix users of PRC-Tools.

We know our job is to make things as simple as possible for you. As a result, we imagine that when you create a new project you would like it to be as easy as can be expected. So, presto, we have made it so. We’ve created a new, very simple project that has the correct structure of a Palm OS application, but that doesn’t actually do very much. That way, it’s easier to use as the basis of a new application.

Download this project from http://www.calliopeinc.com/stationery.html.

Cloning the Sample Project

Duplicate the OReillyStationery directory:

cp -r OReillyStationery MyProject

Build the project by doing a make:

cd MyProject
make

The resulting PRC can be found in GCC/OReillyStarter.prc.

Customizing the Output File

To change the output file, edit the Makefile by changing the value of the APP variable:

APP=MyProject

In addition, rename the .def file:

mv OReillyStarter.def MyProject.def

Now, when you make, the resulting PRC can be found in GCC/MyProject.prc.

A Non-Debug Build

If you’d like to build without debugging, change the CFLAGS definition in the Makefile from:

CFLAGS = -palmos4.0 $(DEBUGCFLAGS)

to:

CFLAGS = -palmos4.0 $(RELEASECFLAGS)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required