From 5d3098f5fb1bf0789da7e2c324a2b14cae25e0cf Mon Sep 17 00:00:00 2001 From: Florin9doi <2995486+Florin9doi@users.noreply.github.com> Date: Wed, 10 Jun 2020 23:01:20 +0300 Subject: [PATCH] Updated Installing on Linux (markdown) --- Installing-on-Linux.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Installing-on-Linux.md b/Installing-on-Linux.md index ba0ccfa..fc4496d 100644 --- a/Installing-on-Linux.md +++ b/Installing-on-Linux.md @@ -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 +``` \ No newline at end of file