PSXSDK is an open source software development kit for the
Sony PlayStation 1 console made by NextVolume aka Tails92.
In this tutorial I will explain how to install and use PSXSDK.
Currently this tutorial is for Windows and Ubuntu linux.
Other operating systems will be added in the future.
Windows XP, Vista, 7 and 8:
As PSXSDK requires POSIX environment we will be using Cygwin.
Download x86 version even if you use x64 build of Windows (thanks Xavi92).
After you have downloaded "Setup.exe" run it, choose the Internet instalation and select a source
closest to your location (or any one if you don't mind the slower download rate).
Default packages wil now be shown.
The following packages need to be added to the installation (use the search command):
wget, make, mkisofs, gcc-g++, diffutils, zlib-devel
When the setup is done run the "Cygwin Terminal" shortcut that was placed on your desktop.
Note: Don't use sudo command on Cygwin, just omit it.
Windows 10:
On Windows 10 for our POSIX needs we can use WSL (Windows Subsystem for Linux).
Follow this guide and make sure you have a working Ubuntu WSL setup before proceeding.
If for some reason you can't or won't use WSL follow the guide for older Windows releases
but I really recommend WSL on Windows 10 as it compiles faster in my experience.
Ubuntu:
Just follow the guide, there are no extra steps.
Install prerequisites (Windows 10 and Ubuntu):
Code: Select all
sudo apt-get update
sudo apt-get install wget mkisofs gcc g++ make zlib1g-dev
Code: Select all
wget http://ftp.gnu.org/gnu/binutils/binutils-2.31.tar.gz
wget ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-8.2.0/gcc-8.2.0.tar.gz
export BASEDIR=$PWD
mkdir source build
tar -zxf binutils*gz -C source
tar -zxf gcc*gz -C source
cd build
mkdir psxsdk-binutils
mkdir psxsdk-gcc
cd psxsdk-binutils
$BASEDIR/source/binutils*/configure --disable-nls --prefix=/usr/local/psxsdk --target=mipsel-unknown-elf --with-float=soft
make
sudo make install
cd $BASEDIR/source/gcc*
./contrib/download_prerequisites
cd $BASEDIR/build/psxsdk-gcc
$BASEDIR/source/gcc*/configure --disable-nls --disable-libada --disable-libssp --disable-libquadmath --disable-libstdc++-v3 --target=mipsel-unknown-elf --prefix=/usr/local/psxsdk --with-float=soft --enable-languages=c,c++
make
sudo make install
Code: Select all
cd $BASEDIR
wget http://unhaut.x10host.com/psxsdk/psxsdk-20180115.tar.bz2
tar xvjf psxsdk-20180115.tar.bz2 -C source
cd source/psxsdk-20180115
export PATH=$PATH:/usr/local/psxsdk/bin
Save the file and proceed. You can use Vim ( to close it press ESC, then ":" and "x" to save changes).
Code: Select all
vi Makefile.cfg
Code: Select all
make
sudo make install
Code: Select all
vi ~/.bashrc
Congratulations You have successfully installed PSXSDK on your PC.
To test your newly installed SDK run the example, eg. mandel.
Code: Select all
cd examples/mandel
make