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

 

  Preparing the Emotion Engine GCC toolchain
  Written: January 23rd, 2002 @ 18:09 GMT By: Thorsten Titze
 
 

After installation of the CygWin environment for Windows you are ready to compile the needed cross-compiler for the Toshiba/Sony Emotion Engine processor of the Playstation 2.

First we have to prepare a directory structure for our compiles. Go to the root of your Cygnus-Environment and make a directory called GCC (I will use the same locations and descriptions as Hitmen do in their guide for easier adaption).

Inside this directory make a new directories called build-gcc. For easier understanding here's a little tree:

GCC
build-binutils
build-gcc

Copy your downloaded source tar-balls (those files that end with .tar.gz or .tar.bz2) into the GCC directory.

Now let's unzip and untar these files.

  • Use the following commandline to unpack the files:

    .tar.gz: gunzip filename.tar.gz
    .tar.bz2: bunzip2 filename.tar.bz2

  • Use the following commandline to untar the files:

    tar xf filename.tar

Now your directory structure should look someting like:

GCC
build-binutils
build-gcc
gcc-3.2.2

binutils-2.13.2.1

Now everything is set to compile the whole xGCC toolchain for EE.

IMPORTANT: (this is the same problem as with DCDEV toolchains)
In case any compile process throws errors concerning a variable called sys_errlist (it being declared twice) you have to change the file /usr/include/sys/errno.h.

Search for the variable in question and change the following lines to:

/* Please don't use these variables directly.
Use strerror instead. */
// extern __IMPORT _CONST char * _CONST _sys_errlist[];
extern __IMPORT int _sys_nerr;
#ifdef __CYGWIN__
// extern __IMPORT const char * const sys_errlist[];

(you have to comment out the declaration of sys_errlist here. the bold lines have to be changed )



  Go to the sourceforge homepage of KallistiOS

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