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 libOGC/GClib
  Written: January 10th, 2004 @ 16:36 GMT By: Thorsten Titze
 
 

Now that we have built the PowerPC compilers and standard libraries we can concentrate on getting the needed GameCube library compiled. The GClib I release is a slightly changed libOGC library. (this project has been started by Peter)

What you first might want to do is download my libOGC package here.

  • You should already have the path to both the compilers in your environment, if not please add the following lines to your .bashrc or .profile (in your home directory of Cygwin or LiNUX):

    PATH=/usr/local/ngc/powerpc-eabi-elf/bin:$PATH
  • Copy the downloaded libogc-20040113.tar.bz2 a directory of your choice (e.g. /home/<username>/)

  • Unpack the archive with the following commandline

    tar -jxf libogc-20040113.tar.bz2
  • Now change into the directory that the unpacking created

    cd libogc
  • Now that you know where your GCLIB file structure is residing on the harddisk it would be time to configure our environment in the environ.sh file that you can find in the gclib directory.
    Open this file in your facorite editor and enter the path to your GCLIB directory where you find

    export GCLIB_BASE="${HOME}/libogc"

    (if you have just unpacked the archive directly into your home directory this should work fine for you)

    If you did not build the compilers following my guides you will also have to change the paths to the compilers in the same file where you find.

    export GCLIB_CC_BASE="/usr/local/ngc/powerpc-eabi-elf"

    (you do not have to include the bin part of the directory)
  • Now set the environment that we just modified

    . ./environ.sh

    (You may also add this line to the .bashrc file in your home directory, so that every BASH you start has the right environment loaded)

  • Now we can compile the library and the samples

    make

Now you have your libOGC library compiled for the PowerPC processor of the GameCube.



  [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