Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
69 lines (37 sloc) 1.97 KB

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?

  1. 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
  2. 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.

  3. Run the toolchain script:



  1. Install [port][MacPorts] or [brew][HomeBrew].

  2. 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
  3. Run This will auto-install rest of the dependencies

     sudo ./
  4. Build and install the toolchain and SDK.

     sudo ./



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 break it down using

	sudo ./ x

where x is replaced by number from 1 to 12 denoting part of buildscript (take a look at /scripts directory)

Building hello world

Just follow steps from PSP Programming Book