rpcsx/.github/BUILDING.md
hax4dazy ef526f70a4
Remove 2nd instructions for arch. Make warning stand out (#64)
This removes the second way for arch to install spriv-cross as its easier / better to just use YAY.  

This also fixes the warning to make it an actual warning and stand out a bit more.
2024-02-24 13:25:09 +03:00

64 lines
1.6 KiB
Markdown

## Building
### The dependencies for Debian-like distributions.
```
sudo apt install build-essential cmake libunwind-dev libglfw3-dev libvulkan-dev vulkan-validationlayers-dev spirv-tools glslang-tools libspirv-cross-c-shared-dev libsox-dev git
```
# git is only needed for ubuntu 22.04
### The dependencies for Fedora distributions:
```
sudo dnf install cmake libunwind-devel glfw-devel vulkan-devel vulkan-validation-layers-devel spirv-tools glslang-devel gcc-c++ gcc spirv-tools-devel xbyak-devel sox-devel
```
### The dependencies for Arch distributions:
```
sudo pacman -S libunwind glfw-x11 vulkan-devel sox glslang git cmake
```
> Side note you will need to pull ``spirv-cross`` from the AUR for now so do the following
```
sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
```
```
yay -S spirv-cross
```
## Getting spriv-cross on Fedora
```
git clone https://github.com/KhronosGroup/SPIRV-Cross && cd SPIRV-Cross && mkdir build && cd build && cmake .. && cmake --build . && sudo make install
```
> [!WARNING]
> Fedora will compile to a point and then error out
## Cloning the Repo
```
git clone --recursive https://github.com/RPCSX/rpcsx && cd rpcsx
```
```
git submodule update --init --recursive
```
## How to compile the emulator
```
mkdir -p build && cd build && cmake .. && cmake --build .
```
## How to create a Virtual HDD
> The PS4 has a case-insensitive filesystem. To create the Virtual HDD, do the following:
```
truncate -s 512M ps4-hdd.exfat
mkfs.exfat -n PS4-HDD ./ps4-hdd.exfat
mkdir ps4-fs
sudo mount -t exfat -o uid=`id -u`,gid=`id -g` ./ps4-hdd.exfat ./ps4-fs
```