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.
-
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:
./toolchain.sh
-
Install [
port
][MacPorts] or [brew
][HomeBrew]. -
Install needed libraries:
sudo port install autoconf automake bison flex ncurses readline subversion texinfo wget mpfr
or
sudo brew install autoconf automake bison flex ncurses readline subversion texinfo wget mpfr
-
Run
prepare-mac-os.sh
. This will auto-install rest of the dependenciessudo ./prepare-mac-os.sh
-
Build and install the toolchain and SDK.
sudo ./toolchain-sudo.sh
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
where x
is replaced by number from 1 to 12 denoting part of buildscript (take a look at /scripts
directory)
Just follow steps from PSP Programming Book