Linux Palm Developer's Quick Start GuideJim Weller
Wed Feb 21 04:33:07 AKST 2001
The current version is at http://www.jimweller.net/palmdevqs/
Table of Contents
This guide is intended to help those new to palm programming get started developing using linux, PRC Tools, GNU tools, and the PalmOS© SDK. It assumes a fair knowledge of linux and GNU tools and a user level understanding of the PalmOS. There are development tools for Windows, but whaateverrr. If you find this at all useful please drop me a 5+ word email, for gloating statistics.
These are my notes from the night when I learned these tools. It
will take you from clueless to empowered (able to compile a HelloWorld program).
I couldn't find a working equivalent. So, I hope this information will be
helpful, but it is provided with no warranty or gaurantee. If you break anything
you get to keep both pieces.
PalmOS © SDKGet sdk,examples, and docs (hidden behind cgi that makes you read license agreement)
PalmOS © Emulator
Building the emulator for linux was a another step I didn't want to deal with yet. Fear not. It's Weller with 2 L's. I will do it soon, and I'll rewrite this doc to reflect that portion. For now I just got the windows prebuilt emulator and skins. Pretty straight forward. You install a palm app that comes with the package to your handheld. This allows you to download the PalmOS © image from the palm's rom. You have to pay money and sign an NDA (double whammy) to get other rom images/versions. Anybody got an archive ;) Do the deed as in the readmes and Blamh your palm on your desktop. Plus you can hotsync over the network with the regular hotsync manager and the emulator.http://www.PalmOS.com/dev/tech/tools/emulator/
PRC ToolsGet the prc tools (patches to GNU tools and some palm tools )
GNU ToolsGet gdb,gcc,binutils
3. Setting up, building and installing the toolsNow your ready to unpack, configure, build, and install the tools. You need to do all the commands listed in the box below: including LONG ASS COMPILE®: Complete with Jim-isms and fixes. Here are some things to keep in mind about the commands in the box below.
Assuming all goes as expected. You'll have the SDK stuff in /usr/local/palmdev and then platform specific tools (m68k-palmos-gcc,m68k-palmos-c++,m68k-palmos-ranlib, etc.) in /usr/local/palm. Now put /usr/local/palm/bin in your permanent path (edit .bashrc,.cshrc, profile etc.).[top]
4. A Hello World Program
Now you can compile a hello proggie.
I had to hack up all the demos from the HOWTOs after reading the SDK header files. The header names, primitive types, and compiler tool's names are incorrect for version 3.5 of the PalmOS © SDK in the HOWTO samples. Plus, it appears that the Examples that come with the SDK all have zero length resource files (e.g. SampleCalculator.rsrc). I compiled the packages, but they crashed on the emulator.
Save the below snippet in a text file called hello.c .hello.c
You can compile it like this. Did you fix your PATH to have /usr/local/palm/bin ?
Blamho! Now you'll have a hello.prc that you can put in the emulator (works!) or in your palm (WORKS!).
5. Screen Shots
Here's some pics and screen shots of the emulator (running under windows) running hello.prc (compiled under linux). You'll note the name of the app is what was specified on the build-prc command line. I also tested the hello.prc file on my PalmIIIe. It Works!
6. ReferencesI glommed all this together from the following urls.
7. DownloadsI have copies of the software mentioned locally here at jimweller.net. Some of it is protectected by licenses. So be sure and read those. And be all legal and stuff. It is only a 128K connection, but for what it's worth here ya' go:
All trademarks and copyrighted materials on this page are owned by their respective owners. The Rest Copyright © Jim Weller 2001.