Skip to content

Latest commit

 

History

History
133 lines (91 loc) · 3.37 KB

Build.md

File metadata and controls

133 lines (91 loc) · 3.37 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 Cargo, Make and Cmake

For 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 make git wget cmake

For Linux:

For Alpine:

sudo apk add build-base cargo

For Arch:

sudo pacman -S base-devel rust

For Fedora:

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

1.1.2 flatc compilation

You need to build flatc v24.3.25 of a certain version from source code.

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 v24.3.25"

For Linux:

sudo make install
sudo ldconfig

For Windows MSYS2:

make install

And at the end check the flatc version:

flatc --version # "flatc version v24.3.25"

1.2 Clone and compile client

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. You should have flatc v24.3.25 installed as in the paragraph 1.1.2 flatc compilation, but tailored to where you want to compile the server part;

  2. 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.