Author Topic: [TUTORIAL] Compiling xerpi's PS2 emulator Play!  (Read 26344 times)

teakhanirons

  • Guest
[TUTORIAL] Compiling xerpi's PS2 emulator Play!
« on: April 01, 2020, 10:24:55 PM »
With the release of the PS2 emulator Play! on Vita, ported by xerpi, many have wondered... Is it real?
Link: https://gitlab.com/xerpi/play
The problem stems from there not being precompiled binaries, instructions being somewhat lacking and issues stemming from VitaSDK (especially the Windows build) having issues accepting certain GCC arguments. Of course, not to mention it being posted on April Fools.

However, working with xerpi, we have found a way to circumvent the issue.

These building instructions only work with Linux for now.
EDIT: It seems it is broken with WSL too since it apparently can't run 32 bit applications. WSL2 apparently fixes that.

This guide assumes you have VitaSDK installed and configured.

First you'll need to clone this repo which contains the emulator source code, alongside the submodules required to build Play!:
Code: [Select]
git clone --recurse-submodules https://gitlab.com/xerpi/play
Then you must install Wine and obtain “psp2cgc.exe” and place it in:
Code: [Select]
$VITASDK/bin
In the same folder, create a file called psp2cgc.sh in the same folder. In that newly created file, put the following:
Code: [Select]
#!/bin/sh
wine $VITASDK/bin/psp2cgc.exe $*

You must then add execute privileges to psp2cgc.sh using your shell, execute the following:
Code: [Select]
chmod +x $VITASDK/bin/psp2cgc.sh
Then this code to your .bashrc:
Code: [Select]
export PSP2CGC=$VITASDK/bin/psp2cgc.sh
Navigate to the location of the source code, then you need to use a special cmake command:
Code: [Select]
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=$VITASDK/share/vita.toolchain.cmake -DCMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES=$VITASDK/arm-vita-eabi/include/ -DBUILD_TESTS:BOOL=OFF && make Play_Vita.vpk

This should produce a VPK in the newly build directory.

I should also note that the current version as of writing this post only loads ux0:Play/cube.elf. Please keep this in mind.

Also here's a nice teapot demo: http://www.billhung.net/3d/ps2/teapot/


We have a Discord server if you want any help, want to contact us or simply want to have FUN!

Please remember, I just wrote this tutorial for this amazing work.
All thanks go to xerpi for helping me sort out this issue and actually making the port!!
« Last Edit: April 27, 2020, 08:27:10 PM by teakhanirons »

Offline dots_tb

  • Refugee
  • **
  • Posts: 93
    • View Profile
Re: Compiling xerpi's PS2 emulator Play!
« Reply #1 on: April 01, 2020, 10:36:29 PM »
Here is a precompiled binary.

Edit:
Further instructions:


« Last Edit: April 02, 2020, 01:10:24 AM by dots_tb »