PCSX2 Documentation/Compiling on Linux: Difference between revisions

Jump to navigation Jump to search
Information on how to compile for Fedora
(Removed link that had instructions to download BIOS.)
(Information on how to compile for Fedora)
Line 10: Line 10:
*'''Arch Linux:''' <code># pacman -S git</code>
*'''Arch Linux:''' <code># pacman -S git</code>
*'''Debian:''' <code># apt-get install git</code>
*'''Debian:''' <code># apt-get install git</code>
*'''Fedora:''' <code># dnf install git</code>


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 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:
Line 24: Line 25:
PCSX2 uses the cmake build system to create project files and other things for multiple platforms, and GCC to compile on the linux platform.
PCSX2 uses the cmake build system to create project files and other things for multiple platforms, and GCC to compile on the linux platform.


===64-bit Arch===
===32-bit compile on 64-bit machines===
====Arch====


If you are running 64-bit Arch Linux, you are going to 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>:
If you are running 64-bit Arch Linux, you are going to 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>:
Line 34: Line 36:
Then, just run the following:
Then, just run the following:


<source lang="bash">
<code># pacman -S cmake gcc</code>
# pacman -S cmake gcc
 
</source>
====Fedora====
 
It is important to note that you do not need to install <code>gcc-c++.i686</code>. Installing this package could result in some packages being downgraded, resulting in a broken g++ compiler.
 
The required packages to compile PCSX2 can be installed with:
 
<code># dnf install gcc-g++ glibc-devel.i686 libstdc++-devel.i686</code>


==Installing the Dependencies==
==Installing the Dependencies==
Line 55: Line 63:
sparsehash
sparsehash
</source>
</source>
===Fedora===
To obtain all the required dependencies for 32-bit compile on Fedora use:
<code># dnf install alsa-lib-devel.i686 libpcap-devel.i686 libxml2-devel.i686 freetype-devel.i686
xz-devel.i686 mesa-libGL-devel.i686 libpng-devel.i686 libaio-devel.i686 systemd-devel.i686
portaudio-devel.i686 soundtouch-devel.i686 SDL2-devel.i686 harfbuzz-devel.i686 wxGTK3-devel.i686
compat-wxGTK3-gtk2-devel.i686 gtk2-devel.i686 glib2-devel.i686
</code>


==Compiling the Source==
==Compiling the Source==
ninja
320

edits

Navigation menu