Skip to content

Setup the console toolchain under linux

theZiz edited this page May 12, 2013 · 2 revisions

Getting the toolchain

First of all you need the toolchain and the libraries of your target. The GPH toolchains you find here: http://openhandhelds.org/ . The open2x toolchain here: http://www.open2x.org/open2x/index.html The Dingux Toolchain here: http://code.google.com/p/dingoo-linux/downloads/detail?name=dingux-toolchain-20090728.tar.bz2&can=4&q= For the pandora I recommend Ivanovic's script: http://boards.openpandora.org/index.php/topic/7147-crosscompiler-toolchain-based-on-openpandoraorg-ipks/ The GCW Toolchain installer will follow.

However, extract your toolchain somewhere. E.g. I extract them to /opt/open2x, /opt/wiz, /opt/caanoo and so one.

Using the toolchain

Afterwards have a look at the *.mk files for the targets in the sparrow3d folder and maybe change it to your paths. Oh, did I mention, that you need my original Makefile-system for this explanation? ^^ If you don't use it for normal compiling and testing e.g. with Code::Blocks, create/change it nevertheless, just for compiling for different targets. You must change the sparrow3d-path in the *.mk files and the path of your toolchain files.

Then type "make TARGET=target" (e.g. make TARGET=open2x) and you should have a compilation in build/target. Don't forget to add a starter .sh and any other necessary files (fonts, images, levels, etc.)! The library should already be copied. If not, you maybe forgot to compile sparrow3d for the target with "make TARGET=target" in the sparrow3d folder? ./make_every_target.sh in the sparrow3d folder should build the library for every on your system avaible and setup toolchain.

Now you should be able to copy it to your target and start.