Skip to content

prc-tools 2.3 ported to modern Linux / Mac OS X

Notifications You must be signed in to change notification settings

meepingsnesroms/prc-tools-remix

 
 

Repository files navigation

Complete Palm OS development Toolkit

I have done my best to make this a 1click compile and install.

If you are on Mac OS you need brew installed. On linux you need the old texinfo-4.13(http://ftp.gnu.org/gnu/texinfo/texinfo-4.13.tar.gz) installed, this may be bundled later.

The prerequisites are "bash flex texinfo(v4.13 is required) bison gperf libncurses-dev autoconf gcc g++ make" and "sudo".

Then just run the install script for your platform.

When asked you must give the script root to copy the compiler to /usr/local/bin.

You must leave this repository where you cloned it or at least the "palmSdk" dir or compiling will break.

Overview

prc-tools is a collection of tools supporting C and C++ programming for Palm OS. It supplies a full GCC cross-compilation toolchain for m68k and ARM, as well as Palm OS-specific utilities.

Over the past decade, the Palm OS platform has surely faded into oblivion. The last release of prc-tools, version 2.3 released in 2003, no longer even compiles under modern versions of GCC and Clang. As a long-time Palm OS user and occasional app developer, I decided to do something about it.

This repository is an archive of prc-tools 2.3 (and its GCC cross-compilation toolchain), with many patches enabling it to build and run on modern Linux and Mac OS X systems.

Building

Windows

Install Windows subsystem for Linux and follow the Linux path.

Linux

To build from source on Linux, e.g., on Ubuntu:

sudo apt-get install \
    texinfo \
    flex \
    bison \
    gperf \
    autoconf \
    libncurses-dev


git clone git@github.com:jichu4n/prc-tools-remix.git
cd prc-tools-remix

mkdir build && cd build
../prc-tools-2.3/configure \
    --enable-targets=m68k-palmos,arm-palmos \
    --enable-languages=c,c++ \
    --disable-nls \
    --with-palmdev-prefix=/opt/palmdev \
    --host=i686-linux-gnu
make
sudo make install
Mac OS X

On Mac OS X, you can install using Homebrew with:

brew tap jichu4n/palm-os
brew install prc-tools

See the relevant README for details.

To build from source on Mac OS X, assuming you have a sane build environment(the linux dependencies listed above must be installed too) from Homebrew / Xcode:

git clone git@github.com:jichu4n/prc-tools-remix.git
cd prc-tools-remix

mkdir build && cd build
../prc-tools-2.3/configure \
    --enable-targets=m68k-palmos,arm-palmos \
    --enable-languages=c,c++ \
    --disable-nls \
    --with-palmdev-prefix=/usr/local/opt/palmdev \
    --host=i686-apple-darwin
make
make install

Usage

Please refer to the prc-tools homepage for documentation on usage.

About

prc-tools 2.3 ported to modern Linux / Mac OS X

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 69.6%
  • C++ 7.3%
  • Makefile 4.7%
  • Assembly 4.0%
  • Roff 3.7%
  • GCC Machine Description 3.7%
  • Other 7.0%