PCSX2 Documentation/Compiling on Linux: Difference between revisions

Jump to navigation Jump to search
(Increase generic list of dependencies, update Fedora dependencies subsection.)
Line 48: Line 48:
==Installing the Dependencies==
==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.
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. Here's a non-exhaustive list of these dependencies.  


<source lang="bash">
<source lang="bash">
Line 61: Line 61:
lib32-wxgtk3
lib32-wxgtk3
lib32-soundtouch
lib32-soundtouch
lib32-libpcap
lib32-libsamplerate
sparsehash
sparsehash
fmt
</source>
</source>
When generating the build configuration, CMake will first attempt to use pre-bundled versions of some of these packages to ensure PCSX2 is built against the most suitable version of its dependencies. Please note you may still need to install 32-bit versions of some of these libraries yourself.


===Fedora===
===Fedora===


To obtain all the required dependencies for 32-bit compile on Fedora use:
To obtain all the required dependencies for 32-bit compile on Fedora, reference their <code>i686</code> architecture version, like so:
 
<pre>
# 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 \
  gtk3.i686 gtk3-devel.i686 glib2-devel.i686 libsamplerate.i686 libsamplerate-devel.i686 gdk-pixbuf2-devel.i686
</pre>


<code># dnf install alsa-lib-devel.i686 libpcap-devel.i686 libxml2-devel.i686 freetype-devel.i686
Note: this list of dependencies was last verified on a Fedora 33 (x86_64) installation.
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==