Using GCCSDK

From RISC OS

Revision as of 02:05, 7 October 2006 by Pnaulls (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Using GCCSDK to cross-compile for RISC OS

This is a quick outline of how to use GCCSDK and its autobuilder. We hope to expand this section soon.

Cross-compiling for RISC OS is done by using GCCSDK on Unix-alike host system, such as GNU/Linux, FreeBSD, Solaris, MacOS X or even Windows (under Cygwin). To get started, ensure you have a Subversion client installed for your system, and fetch the GCCSDK source:

mkdir gccsdk
svn co svn://svn.riscos.info/gccsdk/branches/release_3_4_6/gcc gccsdk/gcc
svn co svn://svn.riscos.info/gccsdk/trunk/autobuilder gccsdk/autobuilder

Detailed instructions are given in the file gccsdk/gcc/README, however they are essentially the following (this assumes that you can write to a directory named /home/riscos):

 cd gccsdk/gcc
 autoconf ; autoheader
 ./do-configure
 make setup
 make build-cross
 make porting-scripts

Now use the autobuilder to build a package:

 mkdir ~/build
 cd ~/build
 <path to gccsdk dir>/autobuilder/build -v wget

See autobuilder documentation gccsdk/autobuilder/AutoBuilder.html for more detailed instructions.

Links

Personal tools