Skip to content

This program will automatically build and install a DVP compiler which is used in the creation of homebrew software for the Sony PlayStation® 2 videogame system.

License

Notifications You must be signed in to change notification settings

ps2dev/ps2toolchain-dvp

Repository files navigation

CI CI-Docker

ps2toolchain-dvp

ATTENTION

If you are confused on how to start developing for PS2, see the getting started section on the ps2dev main page.

Introduction

This program will automatically build and install a DVP compiler, which is used in the creation of homebrew software for the Sony PlayStation® 2 videogame system.

Supported platforms

  • macOS (Intel and Apple Silicon) with Homebrew or MacPorts
  • Ubuntu (x86_64 and arm64)
  • Windows (MSYS2, MinGW32 environment)

What these scripts do

These scripts download (with git clone) and install binutils 2.45.0 (dvp).

Requirements

  1. Install gcc/clang, make, patch, git, and texinfo if you don't have those packages. Below are example commands per platform:

macOS (Homebrew)

brew update
brew install texinfo bison flex gnu-sed gsl gmp mpfr libmpc

macOS (MacPorts)

Make sure MacPorts is installed first. Then:

sudo port selfupdate
sudo port install gmp mpfr libmpc libiconv bison flex texinfo

Ubuntu

sudo apt-get update
sudo apt-get -y install texinfo bison flex gettext libgmp3-dev libmpfr-dev libmpc-dev

Windows (MSYS2 MinGW32)

Use the MSYS2 MinGW32 shell and run:

pacman -S --noconfirm base-devel git make texinfo flex bison patch binutils mpc-devel tar \
  mingw-w64-i686-readline mingw-w64-i686-gcc mingw-w64-i686-cmake mingw-w64-i686-make mingw-w64-i686-libogg
  1. Ensure that you have enough permissions for managing PS2DEV location (which defaults to /usr/local/ps2dev). PS2DEV location MUST NOT have spaces or special characters in its path! For example, on Linux systems, you can set access for the current user by running commands:
export PS2DEV=/usr/local/ps2dev
sudo mkdir -p $PS2DEV
sudo chown -R $USER: $PS2DEV
  1. Add this to your login script (example: ~/.bash_profile)
export PS2DEV=/usr/local/ps2dev
export PATH=$PATH:$PS2DEV/dvp/bin
  1. Run toolchain.sh ./toolchain.sh

Community

Links for discussion and chat are available here.

About

This program will automatically build and install a DVP compiler which is used in the creation of homebrew software for the Sony PlayStation® 2 videogame system.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 7