Step 1: Make sure you have Wine installed and all of the required dependencies for this project. On Debian-based systems, run:
Code: Select all
sudo apt-get install wine wget libtinyxml2-dev unzip git make cmake gcc g++
Step 2: Create a 32-bit Wine prefix for the Psy-Q SDK. Let's say you want to put it into ".psyq" in your home directory.
Code: Select all
export WINEPREFIX=$HOME/.psyq
export WINEARCH=win32
wine wineboot
Code: Select all
cd ~/.psyq/drive_c
unzip ~/Downloads/PSYQ_SDK.zip
Code: Select all
cd ~/.psyq/drive_c/psyq/bin
unzip ~/Downloads/cpe2x.zip
mv cpe2x/cpe2x.exe CPE2X32.EXE
rm -r cpe2x
EDIT: The following bit of code has been changed to download an earlier version of mkpsxiso, because its creators have made numerous changes to the project (since the time this post was originally written) which break compatibility with our example project (srcdir seems to be broken in the new version).
Code: Select all
cd ~/Downloads
wget https://github.com/Lameguy64/mkpsxiso/archive/refs/tags/v1.26.zip
unzip v1.26.zip
cd mkpsxiso-1.26
mkdir build
cd build
cmake ..
make
sudo cp bin_nix/mkpsxiso /usr/bin/
Code: Select all
cd ~/Downloads
git clone https://github.com/Lameguy64/mkpsxiso
cd mkpsxiso
git submodule update --init --recursive
mkdir build
cd build
cmake ..
make
sudo cp mkpsxiso /usr/bin/
Code: Select all
cd ~/Downloads
unzip example.zip
cd example
./make.sh
Well, that's it, now you should have a fully-working Psy-Q building environment!
