Updated Installing on Linux (markdown)

Florin9doi 2020-06-10 23:01:20 +03:00
parent e5a4371ed0
commit 5d3098f5fb
1 changed files with 27 additions and 0 deletions

@ -7,6 +7,7 @@ NOTE: Only 32-bit architectures are supported, or distributions that allow the i
3. [OpenSUSE Tumbleweed](#opensuse-tumbleweed)
4. [Ubuntu PPA](#ubuntu-ppa)
5. [Arch Linux](#arch-linux)
6. [Ubuntu 20.04](#how-to-compile-pcsx2-in-2020-ubuntu-2004)
## Introduction
@ -253,3 +254,29 @@ cd pcsx2-git
makepkg -csi
```
This will build the package, automatically installing all dependencies. It will then prompt for your password to install the package with pacman.
## How to compile PCSX2 in 2020 (Ubuntu 20.04)
```
sudo apt remove gcc-9 g++-9
sudo apt install cmake g++-10-multilib \
libwxgtk3.0-gtk3-dev:i386 libgtk-3-dev:i386 \
libaio-dev libasound2-dev liblzma-dev:i386 libsdl2-dev:i386 libsoundtouch-dev:i386 \
libxml2-dev:i386 libpcap0.8-dev:i386
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
git clone https://github.com/PCSX2/pcsx2.git
cd pcsx2 && mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_REPLAY_LOADERS=TRUE -DCMAKE_BUILD_PO=FALSE -DGTK3_API=TRUE ..
make -j10
make install
cd ../bin
```