Playstation Portable (PSP) development system with OpenGL, OggVorbis and SDL Simple Direct Layer support.

[Commands legend: # executed as root user, $ executed as normal user]

Here can be found both binary and all sourcecode archives, with build and install directions.

Linux binary pre-build, ready to use, release: psptoolchain-20070626-sdl-complete-binary.tar.bz2 (md5) [70M]

After unpack this, you must make these environment variables changes:

$ export PSPDEV=$HOME/pspdev [*]
$ export PATH=$PATH:$PSPDEV/bin:$PSPDEV/psp/bin [*]

[*] for example, if you unpacked in your home folder; in any case must be included in your environment login script, as .bashrc or similar.
After that, you are ready to use PSP development kit in linux.

If you want build from scratch, you can find source code archives with build and install directions.
These build and install steps can be used in a Debian-like linux distro (Debian 4.0r0 Etch verified).

Files needed:

psptoolchain-20070626.tar.bz2 (md5) [115K]
psptoolchain-20070626-local-src-fixes.tar (md5) [93M] [*]
psptoolchain-20070626-sdl.tar (md5) [7M]
psppacker_src_v0.2.tar.bz2 (md5) [10K]
libTremor-pspdev.tar.bz2 (md5) [181K]
pspgl-pspdev.tar.bz2 (md5)[496K]

Just download all files in a folder and then unpack them:

$ tar -jxvf psptoolchain-20070626.tar.bz2
$ tar -xvf psptoolchain-20070626-local-src-fixes.tar
$ tar -xvf psptoolchain-20070626-sdl.tar
$ tar -jxvf psppacker_src_v0.2.tar.bz2
$ tar -jxvf libTremor-pspdev.tar.bz2
$ tar -jxvf pspgl-pspdev.tar.bz2

[*] edited 7/sept/2007 [there is a bug in archive: under psptoolchain/scripts folder you must change "unzip" to "tar -jxvf" in both and 7th line]

First development compiler and utilities must be installed in your distro, to build PSP basic toolchain:

# apt-get install autoconf automake bison flex gcc libncurses5 libtool make patch subversion texinfo wget

Note: optionally can be installed insight-6.4 also (I did), removing exit command from scripts/’s second row, but it requires “tk8.4″ and “tk8.4-dev” packages, so the previous apt-get install command needs “tk8.4″ and “tk8.4-dev” as parameters:
# apt-get install autoconf automake bison flex gcc libncurses5 libtool make patch subversion texinfo tk8.4 tk8.4-dev wget

Then enter in psptoolchain subfolder and execute:

$ mkdir $HOME/pspdev [+]
$ export PSPDEV=$HOME/pspdev [*]
$ export PATH=$PATH:$PSPDEV/bin:$PSPDEV/psp/bin [*]
$ ./

[+] I used to install all thigs in my home, for ease, if you want can be changed, but every install command (make install) must be executed as owner user of choosen folder.

[*] after complete build and installation, must be included in your environment login script, as .bashrc or similar.

Now to make and install optional psp-packer utility, zlib1g-dev package must be installed, via apt-get install command:

# apt-get install zlib1g-dev

and then enter in psppacker_src_v0.2 source folder and execute:

$ make
$ make install

Now to make and install pspGL (for OpenGL hardware support), enter in pspgl folder and execute:

$ make
$ make install

edited 7/sept/2007 This following step is optional, pspgl examples depend from libpng included in psptoolchain-20070626-sdl.tar, so this package must be compiled and installed before, after that you need also ImageMagick command line tools, so you must execute:

# apt-get install imagemagick

and then:

$ export PSP_MOUNTDIR=/media/usbdisk
$ export PSP_REVISION=1.50
$ make -C tests clean install
$ make -C test-glut clean install

These four command lines make and install library examples directly to PSP/GAME subfolder on Playstation Portable (in this example, /media/usbdisk/PSP/GAME or GAME150 if found), so you must mount it before executing (I commented out mount/umount commands in Makefile, as they aren’t compatible to all Linux distro…).

Now to make and install libTremor (for OggVorbis support), enter in libTremor subfolder and then execute:

$ LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
./ \
--build `gcc -v 2>&1 | grep Target | cut -f 2 -d " "` \
--host psp --prefix=$(psp-config --psp-prefix)
$ make
$ make install

Finally, now to make and install a local version (not from pspdev svn repository) SDL toolchain, enter in sdl subfolder, then execute:

$ ./

This version has build instructions fixes for some packages, as not updated to latest build toolchain. You can view these in script and in files with updated dates, as some .am and .ac ones. This script will use a /tmp subfolder to compile and link files, and then will install in PSPDEV folder.

In test subfolder of SDL package (but in other packages also), various examples can be found, use included makefile-sdl.psp of sdl archive as a start makefile for such examples and look into to know how to use it.

In any case, please refer to every README included in packages.


This entry was posted in PSP MAME4All. Bookmark the permalink.

Leave a Reply