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





Development Env

Installing Cygwin

Building EE (R5900) toolchain
Compiling EE binutils
Compiling EE GCC

Building IOP(R3000) toolchain
Compiling IOP binutils
Compiling IOP GCC

Compiling PSX2LIB

PS2 Independence Exploit

Testing LIB and the Compilers
Writing the first program
Compiling the first program
Uploading to the PS2

Making a CD

Back to News

 

  Compiling PS2LIB with xGCC Compilers
  Written: May 04th , 2002 @ 9:29 GMT By: Thorsten Titze
 
 

Now that you have your compilers ready to build for the Playstation 2 platforms EE and IOP processor it's time to move onto the programming library called PSX2LIB (this project has been initiated by Gustavo Scotti and is actively being worked on).

What you first might want to do is download my PSX2LIB package here and the corresponding patch to make it work with the new compilers 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/ps2/ee/bin:/usr/local/ps2/mipsel-scei-elfl:$PATH
  • Copy the downloaded ps2lib-2.0.tar.gz and the ps2lib-2.0-GCC322.digg.gz to a directory of your choice (e.g. /home/<username>/ps2dev)
  • Unpack the archive with the following commandline

    tar -zxf ps2lib-2.0.tar.gz
  • Now we have to patch the downloaded release to make it work with the new compilers (this patch also changes the IOP processor prefixes to the mipsel target)

    tar -zxf ps2lib-2.0-GCC322.diff.gz
    patch -p0<ps2lib-2.0-GCC322.dif
    f
  • Now change into the directory that the unpacking created

    cd ps2lib-2.0
  • Now that you know where your PS2LIB is residing on the harddisk it would be time to add the following line to your .bashrc (via vi ~/.bashrc):

    export PS2LIB="~/ps2dev/ps2lib-2.0"

    If you are not starting a new BASH right away you should also execute this command in your current shell since you need this variable during the build process.
  • Now we can compile the library, the utils and the samples

    make lib
    make utils
    make samples

    NOTE:
    The make all command will compile everything in one go.

Now you have your GNU PS2™ Development library compiled for the Emotion Engine and the IOP.



  Go to the sourceforge homepage of PSX2LIB

Back to Playstation 2 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 @ 23-Aug-2003 5:10 PM Contact me via eMail