Skip to content

Latest commit

 

History

History
107 lines (74 loc) · 2.88 KB

Build.md

File metadata and controls

107 lines (74 loc) · 2.88 KB

VitaOxiPad Client and server build instruction

This guide describes how to compile the VitaOxiPad Client and Server. It is assumed that the user has basic skills in using the console.

1. Client compilation

1.1 Dependencies

To compile the Client you will need

Install the necessary dependencies in a way that is convenient for you.

1.1.1 Windows

You can use MSYS2, which provides this in a convenient way.

Dependencies you will need for MSYS2 MINGW64:

pacman -S mingw-w64-x86_64-rust mingw-w64-x86_64-flatbuffers make git wget cmake

1.1.2 Linux

For Alpine:

sudo apk add build-base flatc cargo

For Arch:

sudo pacman -S base-devel flatbuffers rust

For Fedora:

sudo dnf install make automake gcc gcc-c++ flatbuffers-compiler cargo

1.2 Clone and Compile

Clone the repository and log into it:

git clone --recurse-submodules https://github.com/DvaMishkiLapa/VitaOxiPad.git
cd ./VitaOxiPad

Build the client side:

cd ./client
cargo build --release --bin cli

You can check the finished binary by running in it:

 ./target/release/cli.exe your_PS_Vita_IP

2. PS Vita server compilation

  1. Make sure that you have cmake installed;
  2. Make sure you have VitaSDK installed and configured (try vdpm);
  3. Sometimes, for whatever reason, flatbuffers are not installed in the VitaSDK (fatal error: flatbuffers/flatbuffers.h: No such file or directory). You can install it manually via vdpm. Do this after installing the VitaSDK via vdpm:
./vdpm flatbuffers
  1. Install flatc v24.3.25 for your system. For Linux:
git clone --branch v24.3.25 https://github.com/google/flatbuffers.git && cd flatbuffers
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
make -j
./flattests # this is quick, and should print "ALL TESTS PASSED"
sudo make install
sudo ldconfig
flatc --version # "flatc version 24.3.25"
  1. Build the project with the following commands:
cmake -S server -B build
cmake --build build

Then, install the generated VitaOxiPad.vpk file on your PS Vita.