welcome to www.hangar-eleven.de - your premier resource for console development





Development Env

Installing Cygwin
Installing MingW/MSys

Building PowerPC toolchain
Making Binutils
Making xGCC
Making Newlib
Making final GCC

Compiling libOGC

Testing LIB and compilers
Compiling/upping an example

Back to News

 

  Compiling/uploading an example
  Written: January 10th, 2004 @ 16:49 GMT By: Thorsten Titze
 
 

Now that we have compiled the library for the Gamecube (which can be checked by looking into the lib directory of GCLIB and to check if there's a libogc.a to be found) it is time to check whether or not the compilers and the library work.

  • Change to where you unpacked your GCLIB

  • Make sure that you have the needed build environment by executing the environment script:

    . ./environ.sh

    (Note: The dot in front of ./environ.sh is essential sind otherwise the environment would be gone as soon as the script-execution ends)
    (Note2: You could also add the above line to your .bashrc file to be started whenever you start a new bash)

  • Change to the example directory

    cd samples/hello

  • Build the .dol file (this being a format the the GameCube recognizes as executable)

    make dol

  • You can now either upload the resulting hello.dol file with your preferred upload tool or just use the following commandline

    make run

    Note:
    The following make targets can be used in a project

    make clean : clean up the build directory
    make : build the .elf file of the application
    make dol : build the .bin and .dol files of the application
    make run : send the .dol file to GameCube via PSOload

This is only a small and easy test of the library and I will write more detailed tutorials soon. But if you've come this far without any errors you are ready to write nice GameCube applications.

  [NO LINKS PROVIDED]

Back to GameCube Development Main


DISCLAIMERS:
Website Design © 2002 by Thorsten Titze / hangar-eleven.de
(the pictures used for the design were taken from a WindowsXP Skin and WindowsXP)
All brand names used on this site are registered trademarks of their respective owners
No copyright infringement is intended
Last updated @ 17-Jan-2004 10:04 PM Contact me via eMail