mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
37 lines
888 B
Markdown
37 lines
888 B
Markdown
## Building
|
|
|
|
|
|
### The dependencies for Debian-like distributions.
|
|
```
|
|
sudo apt install build-essential cmake libunwind-dev libsox-dev git libasound2-dev nasm g++-14
|
|
```
|
|
|
|
### The dependencies for Fedora distributions:
|
|
|
|
```
|
|
sudo dnf install cmake libunwind-devel gcc-c++ gcc sox-devel alsa-lib-devel nasm
|
|
```
|
|
|
|
### The dependencies for Arch distributions:
|
|
|
|
```
|
|
sudo pacman -S libunwind sox git cmake alsa-lib nasm
|
|
```
|
|
|
|
## Cloning the Repo
|
|
|
|
```
|
|
git clone --recursive https://github.com/RPCSX/rpcsx && cd rpcsx
|
|
```
|
|
## How to compile the emulator
|
|
|
|
```
|
|
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_INIT="-march=native" && cmake --build build -j$(nproc)
|
|
```
|
|
|
|
For Ubuntu 24.04 you need to manually specify compiler version:
|
|
|
|
```
|
|
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_INIT="-march=native" -DCMAKE_CXX_COMPILER=g++-14 && cmake --build build -j$(nproc)
|
|
```
|