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 Portable handheld videogame system.
How do I use it?
Set up your environment by installing the following software:
autoconf, automake, bison, flex, gcc, g++/gcc-c++, libusb-dev, make, ncurses, patch, readline, subversion, texinfo, wget, mpc, gmp, libelf, mpfr, git
Set the PSPDEV and PATH environmental variables:
export PSPDEV=/usr/local/pspdev export PATH=$PATH:$PSPDEV/bin
The PSPDEV variable is the directory the toolchain will be installed to, change this if you wish. If possible the toolchain script will automatically add these variables to your systems login scripts, otherwise you will need to manually add these variables yourself.
Run the toolchain script:
port][MacPorts] or [
Install needed libraries:
sudo port install autoconf automake bison flex ncurses readline subversion texinfo wget mpfr
sudo brew install autoconf automake bison flex ncurses readline subversion texinfo wget mpfr
prepare-mac-os.sh. This will auto-install rest of the dependencies
Build and install the toolchain and SDK.
psp tool chain needs automake 1.9 version. Any other version won't work and error message can be a little bit misleading.
If you're experiencing problems while running toolchain-sudo.sh break it down using
sudo ./toolchain-sudo.sh x
x is replaced by number from 1 to 12 denoting part of buildscript (take a look at
Building hello world
Just follow steps from PSP Programming Book