Setting up Linux version: Difference between revisions

From PCSX2 Wiki
Jump to navigation Jump to search
(Please read the sentence at the top. This page is only for setting up the current stable version. ;))
(22 intermediate revisions by 6 users not shown)
Line 1: Line 1:
The following is a guide on how to obtain and compile the PCSX2 source code on the Linux platform.
The following is a guide on how to install the latest stable version of PCSX2 on Linux. If you want to try the latest unstable builds, please refer to [[PCSX2 Documentation/Compiling on Linux| this guide here.]]


==Obtaining the Source Code==
==Installation==


PCSX2 is hosted on GitHub, a website where people can contribute to each others' programming projects using the Git version control software. GitHub is essentially just a showcase for your projects, to actually work on them you need to download and install Git itself.
===Arch Linux===


'''Arch Linux:''' <code># pacman -S git</code>
If you are running 64-bit Arch Linux, you will need to enable access to the multilib repository, so you can obtain 32-bit libraries. You can do this by uncommenting the following lines in <code>/etc/pacman.conf</code>:
<nowiki>
[multilib]
Include = /etc/pacman.d/mirrorlist</nowiki>


Next you are going to want to create a directory on your machine for the PCSX2 code to live in. For this example, let's say the directory you create is /home/you/workspace. You are going to want clone the remote PCSX2 repository like so:
Next, you can simply install PCSX2 using the package manager:
pacman -S pcsx2


<code>$ cd /home/you/workspace</code><br />
===Debian/Ubuntu based distros===
<code>$ git clone https://github.com/PCSX2/pcsx2.git</code>


You are now making a copy of the remote repository into your own directory.
Add ''one'' of the following two repositories:


==Installing the Build System==
Gregory's PPA:
sudo add-apt-repository ppa:gregory-hainaut/pcsx2.official.ppa


PCSX2 uses the cmake build system to create project files and other things for multiple platforms, and GCC to compile on the linux platform. To install these you are going to want to run:
PCSX2 Daily Builds PPA:
sudo add-apt-repository ppa:pcsx2-team/pcsx2-daily


'''Arch 64:''' <code># pacman -S cmake gcc-multilib </code>
Update repository listings:
sudo apt-get update


==Installing the Dependencies==
Install PCSX2:
sudo apt-get install pcsx2


PCSX2 relies on a number of 3rd party software libraries, so you are going to need to obtain those before you can compile the source code.
===openSUSE===
openSUSE users need to add Packman repository. This will add the repo for version 13.2:
zypper ar -f http://packman.inode.at/suse/openSUSE_13.2/ packman


'''Arch 64:''' <code># pacman -S lib32-alsa-lib lib32-bzip2 lib32-libjpeg lib32-glew lib32-nvidia-cg-toolkit lib32-portaudio lib32-sdl lib32-libaio lib32-wxgtk2.8 lib32-soundtouch sparsehash</code>
If using a different version of openSUSE (13.x, Tumbleweed, Factory) please visit [https://en.opensuse.org/Additional_package_repositories#Packman Packman]


==Compiling the Source==
(please only install the i586 package, x86_64 one has problems and so far is unsupported)
zypper install pcsx2.i586


Note: On Arch Linux, you will need to explicitly specify to cmake where to find the config executables. You can do that by adding these flags into the build script:
==Configuration==


<code>-DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config32-2.8'</code>
{{General articles}}
<code>-DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc32-2.8'</code>
[[Category:Guides]]
 
Now that we have installed all external libraries, it is time to compile the source code! To do that, we are going to run a shell script which automates the entire process.<br />
<code>$ cd /home/you/workspace/pcsx2</code><br />
<code>$ sh build.sh</code>
 
==Running the Binary==
 
This process may take several minutes. Once it has finished, you should be able to run the pcsx2 binary:<br />
<code>$ ./bin/pcsx2-dev<br />

Revision as of 18:44, 7 January 2017

The following is a guide on how to install the latest stable version of PCSX2 on Linux. If you want to try the latest unstable builds, please refer to this guide here.

Installation

Arch Linux

If you are running 64-bit Arch Linux, you will need to enable access to the multilib repository, so you can obtain 32-bit libraries. You can do this by uncommenting the following lines in /etc/pacman.conf:

[multilib]
Include = /etc/pacman.d/mirrorlist

Next, you can simply install PCSX2 using the package manager:

pacman -S pcsx2

Debian/Ubuntu based distros

Add one of the following two repositories:

Gregory's PPA:

sudo add-apt-repository ppa:gregory-hainaut/pcsx2.official.ppa

PCSX2 Daily Builds PPA:

sudo add-apt-repository ppa:pcsx2-team/pcsx2-daily

Update repository listings:

sudo apt-get update

Install PCSX2:

sudo apt-get install pcsx2

openSUSE

openSUSE users need to add Packman repository. This will add the repo for version 13.2:

zypper ar -f http://packman.inode.at/suse/openSUSE_13.2/ packman 

If using a different version of openSUSE (13.x, Tumbleweed, Factory) please visit Packman

(please only install the i586 package, x86_64 one has problems and so far is unsupported)

zypper install pcsx2.i586

Configuration