Setting up Linux version: Difference between revisions

From PCSX2 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
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 [[Compiling on Linux | this guide here.]]
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 [[Compiling on Linux | this guide here.]]


==Obtaining the Source Code==
==Arch Linux==
<source lang="bash">
pacman -S pcsx2
</source>


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.
==Debian==
 
<source lang="bash">
'''Arch Linux:''' <code># pacman -S git</code>
apt-get install pcsx2
 
</source>
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:
 
<code>$ cd /home/you/workspace</code><br />
<code>$ git clone https://github.com/PCSX2/pcsx2.git</code>
 
You are now making a copy of the remote repository into your own directory.
 
==Installing the Build System==
 
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:
 
'''Arch 64:''' <code># pacman -S cmake gcc-multilib </code>
 
==Installing the Dependencies==
 
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.
 
'''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>
 
==Compiling the Source==
 
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:
 
<code>-DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config32-2.8'</code>
<code>-DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc32-2.8'</code>
 
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</code><br />
 
==Additional external links==
* [http://forums.pcsx2.net/Thread-PCSX2-for-Debian-Ubuntu PCSX2 for Debian/Ubuntu]
* [http://www.noobslab.com/2013/01/install-ps2-emulator-in-ubuntu.html A guide on how to setup PCSX2 in Ubuntu]
* [http://forums.pcsx2.net/Thread-PCSX2-for-Archlinux PCSX2 for Archlinux]
* [http://forums.pcsx2.net/Thread-PCSX2-for-Fedora PCSX2 for Fedora]
* [http://forums.pcsx2.net/Thread-PCSX2-for-Gentoo PCSX2 for Gentoo]
 
[[Category:Guides]]
{{General articles}}

Revision as of 15:58, 13 January 2015

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.

Arch Linux

<source lang="bash"> pacman -S pcsx2 </source>

Debian

<source lang="bash"> apt-get install pcsx2 </source>