Console Hacking > Tutorials

[TUTORIAL] Compiling xerpi's PS2 emulator Play!

(1/1)

teakhanirons:
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: ---git clone --recurse-submodules https://gitlab.com/xerpi/play
--- End code ---

Then you must install Wine and obtain “psp2cgc.exe” and place it in:

--- Code: --- $VITASDK/bin
--- End code ---

In the same folder, create a file called psp2cgc.sh in the same folder. In that newly created file, put the following:

--- Code: --- #!/bin/sh
wine $VITASDK/bin/psp2cgc.exe $*
--- End code ---

You must then add execute privileges to psp2cgc.sh using your shell, execute the following:

--- Code: --- chmod +x $VITASDK/bin/psp2cgc.sh
--- End code ---

Then this code to your .bashrc:

--- Code: --- export PSP2CGC=$VITASDK/bin/psp2cgc.sh
--- End code ---

Navigate to the location of the source code, then you need to use a special cmake command:

--- Code: ---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

--- End code ---

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!!

dots_tb:
Here is a precompiled binary.

Edit:
Further instructions:


* Install the VPK
* Download http://www.billhung.net/3d/ps2/teapot/teapot.elf
* Rename it to "cube.elf" and put it in"ux0:Play"

Navigation

[0] Message Index

Go to full version