Skip to content

Instantly share code, notes, and snippets.

@erfg12
Last active April 26, 2023 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erfg12/45bb0311f53bf2037d338c357c8c33f0 to your computer and use it in GitHub Desktop.
Save erfg12/45bb0311f53bf2037d338c357c8c33f0 to your computer and use it in GitHub Desktop.

For Ubuntu (WSL)

Setup your system environment variables:

rm ~/.profile
echo >>~/.profile "export PS2DEV=$HOME/ps2dev"
echo >>~/.profile "export PS2SDK=\$PS2DEV/ps2sdk"
echo >>~/.profile "export GSKIT=\$PS2DEV/gsKit"
echo >>~/.profile "export PATH=\$PATH:\$PROGRAMFILES/Git/bin"
echo >>~/.profile "export PATH=\$PATH:\$PROGRAMFILES/Mercurial"
echo >>~/.profile "export PATH=\$PATH:\$PS2DEV/bin"
echo >>~/.profile "export PATH=\$PATH:\$PS2DEV/ee/bin"
echo >>~/.profile "export PATH=\$PATH:\$PS2DEV/iop/bin"
echo >>~/.profile "export PATH=\$PATH:\$PS2DEV/dvp/bin"
echo >>~/.profile "export PATH=\$PATH:\$PS2SDK/bin"
. ~/.profile

Make sure CMake is up to date (replace 3.24.1 with latest version):

cmake --version
sudo apt install build-essential libssl-dev
cd $HOME && wget https://github.com/Kitware/CMake/releases/download/v3.24.1/cmake-3.24.1.tar.gz
tar -xvf cmake-3.24.1.tar.gz
cd ./cmake-3.24.1
./configure
make
sudo make install
(close and re-open terminal)
cmake --version

Get and build PS2Dev environment:

mkdir $HOME/ps2dev
sudo apt install build-essential gcc clang clang-format make cmake patch git texinfo flex bison gettext wget libgsl-dev texinfo bison flex gettext libgmp3-dev libmpfr-dev libmpc-dev zlib1g-dev
cd $HOME && git clone https://github.com/ps2dev/ps2dev.git ps2dev && cd ps2dev && ./build-all.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment