HowTo Setup Toolchain

Technical discussion on the newly released and hard to find PS3.

Moderators: cheriff, emoon

Post Reply
zabbyh
Posts: 13
Joined: Fri Jul 15, 2005 3:40 am

HowTo Setup Toolchain

Post by zabbyh »

The Readme states:

====================
What does this do?
====================

This program will automatically build and install a compiler and other
tools used in the creation of homebrew software for the Sony Playstation 3
videogame system.

==================
How do I use it?
==================

1) Set up your environment by installing the following software:

autoconf, automake, bison, flex, gcc, make, ncurses, patch, subversion, terminfo, wget

2) Add the following to your login script:

export PS3DEV=/usr/local/ps3dev
export PATH=$PATH:$PS3DEV/bin
export PATH=$PATH:$PS3DEV/ppu/bin
export PATH=$PATH:$PS3DEV/spu/bin

3) Run the toolchain script:

./toolchain.sh

==========================
Where do I go from here?
==========================

Visit the following sites to learn more:

http://www.ps2dev.org
http://forums.ps2dev.org

-------------------------------------------------------------------------------------

Where to get the following software?

autoconf, automake, bison, flex, gcc, make, ncurses, patch, subversion, terminfo, wget

Answer: www.gnu.org, http://subversion.tigris.org/
zabbyh
Posts: 13
Joined: Fri Jul 15, 2005 3:40 am

Post by zabbyh »

Can someone post a link to the correct terminfo prog required I managed to find something called termtypes but that is related to linux?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

The latest version of ps3toolchain has different requirements:
1) Set up your environment by installing the following software:

autoconf, automake, bison, flex, gcc, make, patch, subversion, wget
You don't need terminfo, so you don't need to worry about it.
zabbyh
Posts: 13
Joined: Fri Jul 15, 2005 3:40 am

Post by zabbyh »

@ooPo

Hi m8 in what order should these be installed, as the installation instructions are really vague and I am unable to install successfully.

For e.g. the autoconf instructions state to run configure but how.. Command prompt in Windows XP/Vista does not run anything.

Thanks for update
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

The cygwin installation program should allow you to select which packages to install and it will do it in the right order for you.
zabbyh
Posts: 13
Joined: Fri Jul 15, 2005 3:40 am

Post by zabbyh »

Add the following to your login script:

export PS3DEV=/usr/local/ps3dev
export PATH=$PATH:$PS3DEV/bin
export PATH=$PATH:$PS3DEV/ppu/bin
export PATH=$PATH:$PS3DEV/spu/bin

@ooPo where do I put this, I have placed in Environment Variables doesn't seem to do anything.

Also placed a file called ps3dev.sh file containing above in C:\cygwin\etc\profile.d

When I run cygwin I get:-

': not a valid identifier
': not a valid identifier
': not a valid identifier
': not a valid identifier

Still I have run ./toolchain & it seems to be installing..

How long does it take to install? I had it left running overnight and someone went and switched off my machine so don't know if it is fully installed.

Also when I open cygwin I get:-

Your group is currently "mkgroup". This indicates that the the /etc/group (and possibly the /etc/passwd) files should be rebuilt.

If I run

mkgroup -l it does something.

If I run mkgroup -l /etc/passwd

I get the message the domain name is only accepted when -d is given.

Then is I use mkgroup -d /etc/passwd

The format of the specified domain is invalid.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

zabbyh wrote:@ooPo where do I put this, I have placed in Environment Variables doesn't seem to do anything.
Ask google, I don't know. I do not run cygwin.
Also placed a file called ps3dev.sh file containing above in C:\cygwin\etc\profile.d
What part of the readme told you to do that?
How long does it take to install? I had it left running overnight and someone went and switched off my machine so don't know if it is fully installed.
My machine takes maybe half an hour to build the toolchain, but again I'm not running cygwin.
Also when I open cygwin I get:-

Your group is currently "mkgroup". This indicates that the the /etc/group (and possibly the /etc/passwd) files should be rebuilt.

If I run

mkgroup -l it does something.

If I run mkgroup -l /etc/passwd

I get the message the domain name is only accepted when -d is given.

Then is I use mkgroup -d /etc/passwd

The format of the specified domain is invalid.
It sounds like you've really done a hackjob on your installation of cygwin. Are you sure you know what you're doing?
User avatar
Jim
Posts: 476
Joined: Sat Jul 02, 2005 10:06 pm
Location: Sydney
Contact:

Post by Jim »

If I run mkgroup -l /etc/passwd
The command it tells you to type is
mkgroup -l > /etc/passwd

there's a redirection in there.

Jim
Post Reply