Skip to content

Developer Getting Started: GCW Zero

cxong edited this page Nov 2, 2014 · 7 revisions

The GCW-Zero is an open-source handheld console, that runs a customized Linux environment.

Therefore most of the instructions from the Linux guide also apply and this page will only list the differences.

Prerequisites

Instead of installing the SDL libraries for your host machine, you need to setup the GCW-Zero Toolchain, it will include the needed libraries.

Instructions and download here: http://www.gcw-zero.com/develop Reproduced here for convenience:

Download the latest toolchain

Become root

Run the following commands:

mkdir -p /opt
cd /opt
tar jxvf /path/where/you/downloaded/opendingux-gcw0-toolchain.date.tar.bz2

Clone repo

No differences.

Run CMake and build

  1. Simply run make_gcw0.sh.

There should be a cdogs-sdl.opk file now that can be deployed to your device.

Notes

If you get weird errors about the compiler being broken, note that the toolchain is 32-bit, which means its binaries are incompatible with 64-bit OS unless you install 32-bit compatibility libraries. With Debian/Ubuntu, run this:

sudo apt-get install ia32-libs