Setting up Linux version: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
Arch Linux: <code># pacman -S git</code> | Arch Linux: <code># pacman -S 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 | 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>$ cd /home/you/workspace</code><br /> | ||
<code>$ git clone https://github.com/PCSX2/pcsx2.git</code> | <code>$ git clone https://github.com/PCSX2/pcsx2.git</code> | ||
Line 24: | Line 24: | ||
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. | ||
Arch 64: <code># pacman -S lib32-alsa-lib lib32-bzip2 lib32- | Arch 64: <code># pacman -S lib32-alsa-lib lib32-bzip2 lib32-libjpeg lib32-glew lib32-nvidia-cg-toolkit lib32-portaudio lib32-sdl lib32-wxgtk2.8 lib32-libaio</code> | ||
==Compiling the Source== | |||
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. | |||
NOTE! There seems to be a small problem in Arch where the cmake cannot find wxgtk. You can fix this by adding these flags to the build script: | |||
<code>-DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config-2.8' -DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc-2.8'</code> | |||
<code>$ cd /home/you/workspace/pcsx2</code><br /> | |||
<code>$ sh build.sh<br /> | |||
This process may take several minutes. Once it has finished, you should be able to run the pcsx2 binary: | |||
<code>$ ./<br /> |