Using GCCSDK: Difference between revisions
No edit summary |
(→Using GCCSDK to cross-compile for RISC OS: Fleshed out the tutorial a bit more) |
||
Line 3: | Line 3: | ||
''This is a quick outline of how to use GCCSDK and its autobuilder. We hope to expand this section soon''. |
''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 [http://subversion.tigris.org/ Subversion] client installed for your system, and fetch the GCCSDK source: |
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 [http://subversion.tigris.org/ Subversion] client installed for your system, and fetch the GCCSDK source to the current directory (which needs about 200MB disc space): |
||
mkdir gccsdk |
mkdir gccsdk |
||
Line 9: | Line 9: | ||
svn co svn://svn.riscos.info/gccsdk/trunk/autobuilder gccsdk/autobuilder |
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 |
Detailed instructions are given in the file gccsdk/gcc/README (or the [http://www.riscos.info/websvn/filedetails.php?repname=gccsdk&path=%2Fbranches%2Frelease_3_4_6%2Fgcc%2FREADME&rev=0&sc=0 WebSVN copy]), however they are essentially as follows. Refer to the README where assumptions are noted. |
||
You'll need at least the following programs (or later versions) installed on your Unix-alike machine: |
|||
gcc version 3 recommended |
|||
svn (subversion) |
|||
bash for this example |
|||
autoconf version 2.50 |
|||
autoheader |
|||
bison version 1.27 |
|||
flex version 2.5.4 |
|||
gperf version 2.7.2 |
|||
sed version 2.05 |
|||
GNU make version 3.80 |
|||
makeinfo version 4.2 (see README for Debian notes) |
|||
We also need to be able to write to a directory named /home/riscos (this can be changed, see the README). |
|||
First we set the GCCSDK_SRC variable so this tutorial can refer to the position of the sources. |
|||
bash |
|||
export GCCSDK_SRC=$PWD/gccsdk |
|||
Then we build GCCSDK (this may take many minutes, depending on the speed of your computer): |
|||
cd gccsdk/gcc |
cd gccsdk/gcc |
||
Line 22: | Line 43: | ||
mkdir ~/build |
mkdir ~/build |
||
cd ~/build |
cd ~/build |
||
$GCCSDK_HOME/autobuilder/build -v wget |
|||
This will attempt to build in the ~/build/wget directory (that is, in build/wget in your home directory). If the build is successful this will be deleted and the results placed in $GCCSDK_SRC/autobuilder/autobuilder_packages. If not successful the ~/build/wget directory will remain for you to inspect. The output from the build process is also saved in $GCCSDK_SRC/autobuilder/network/wget as either a file last-success or last-failure depending on what happened. |
|||
See autobuilder documentation gccsdk/autobuilder/AutoBuilder.html for more detailed instructions. |
See autobuilder documentation gccsdk/autobuilder/AutoBuilder.html ([http://www.riscos.info/websvn/filedetails.php?repname=gccsdk&path=%2Ftrunk%2Fautobuilder%2FAutoBuilder.html&rev=0&sc=0 or see HTML source from WebSVN]) for more detailed instructions. |
||
== Links== |
== Links== |
Revision as of 18:43, 7 October 2006
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 to the current directory (which needs about 200MB disc space):
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 (or the WebSVN copy), however they are essentially as follows. Refer to the README where assumptions are noted.
You'll need at least the following programs (or later versions) installed on your Unix-alike machine:
gcc version 3 recommended svn (subversion) bash for this example autoconf version 2.50 autoheader bison version 1.27 flex version 2.5.4 gperf version 2.7.2 sed version 2.05 GNU make version 3.80 makeinfo version 4.2 (see README for Debian notes)
We also need to be able to write to a directory named /home/riscos (this can be changed, see the README). First we set the GCCSDK_SRC variable so this tutorial can refer to the position of the sources.
bash export GCCSDK_SRC=$PWD/gccsdk
Then we build GCCSDK (this may take many minutes, depending on the speed of your computer):
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 $GCCSDK_HOME/autobuilder/build -v wget
This will attempt to build in the ~/build/wget directory (that is, in build/wget in your home directory). If the build is successful this will be deleted and the results placed in $GCCSDK_SRC/autobuilder/autobuilder_packages. If not successful the ~/build/wget directory will remain for you to inspect. The output from the build process is also saved in $GCCSDK_SRC/autobuilder/network/wget as either a file last-success or last-failure depending on what happened.
See autobuilder documentation gccsdk/autobuilder/AutoBuilder.html (or see HTML source from WebSVN) for more detailed instructions.