Building Dolphin on Linux: Difference between revisions

Update build instructions for evdev
(Update build instructions for evdev)
Line 19: Line 19:


<pre>sudo add-apt-repository ppa:kalakris/cmake
<pre>sudo add-apt-repository ppa:kalakris/cmake
There is no ppa for libevdev-dev, so you will need to build libevdev from source, or disable the evdev backend (cmake .. -DENABLE_EVDEV=OFF -DENABLE_SDL=ON)


sudo apt-get update</pre>
sudo apt-get update</pre>
Line 24: Line 26:
Now, install all necessary packages by running the following command:
Now, install all necessary packages by running the following command:


<pre>sudo apt-get install cmake pkg-config git gcc-4.9 g++-4.9 libao-dev libasound2-dev libbluetooth-dev libgl1-mesa-dev libgtk2.0-dev liblzo2-dev libopenal-dev libpulse-dev libreadline-dev libsdl1.2-dev libsoil-dev libxext-dev libxrandr-dev zlib1g-dev</pre>
<pre>sudo apt-get install cmake pkg-config git gcc-4.9 g++-4.9 libao-dev libasound2-dev libbluetooth-dev libgl1-mesa-dev libgtk2.0-dev liblzo2-dev libopenal-dev libpulse-dev libreadline-dev libsdl1.2-dev libsoil-dev libxext-dev libxrandr-dev zlib1g-dev libudev-dev</pre>


==== 14.04 (LTS) ====
==== 14.04 (LTS) ====
Line 36: Line 38:
Install all necessary packages by running the following command (minimum version for Wx is 3.0.1, but trusty repo comes with 3.0.0, so it will build from Externals):
Install all necessary packages by running the following command (minimum version for Wx is 3.0.1, but trusty repo comes with 3.0.0, so it will build from Externals):


<pre>sudo apt-get install cmake pkg-config git gcc-4.9 g++-4.9 libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libgtk2.0-dev liblzo2-dev libopenal-dev libpulse-dev libreadline-dev libsdl2-dev libsfml-dev libsoil-dev libswscale-dev libusb-1.0-0-dev libxext-dev libxrandr-dev portaudio19-dev zlib1g-dev</pre>
<pre>sudo apt-get install cmake pkg-config git gcc-4.9 g++-4.9 libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libgtk2.0-dev liblzo2-dev libopenal-dev libpulse-dev libreadline-dev libsfml-dev libsoil-dev libswscale-dev libusb-1.0-0-dev libxext-dev libxrandr-dev portaudio19-dev zlib1g-dev libudev-dev libevdev-dev</pre>


==== 15.04 and newer ====
==== 15.04 and newer ====
Line 42: Line 44:
Install all necessary packages by running the following command:
Install all necessary packages by running the following command:


<pre>sudo apt-get install cmake pkg-config git g++ libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libenet-dev libgtk2.0-dev liblzo2-dev libminiupnpc-dev libopenal-dev libpolarssl-dev libpulse-dev libreadline-dev libsdl2-dev libsfml-dev libsoil-dev libsoundtouch-dev libswscale-dev libusb-1.0-0-dev libwxbase3.0-dev libwxgtk3.0-dev libxext-dev libxrandr-dev portaudio19-dev zlib1g-dev</pre>
<pre>sudo apt-get install cmake pkg-config git g++ libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libenet-dev libgtk2.0-dev liblzo2-dev libminiupnpc-dev libopenal-dev libpolarssl-dev libpulse-dev libreadline-dev libsfml-dev libsoil-dev libsoundtouch-dev libswscale-dev libusb-1.0-0-dev libwxbase3.0-dev libwxgtk3.0-dev libxext-dev libxrandr-dev portaudio19-dev zlib1g-dev libudev-dev libevdev-dev</pre>


=== Other Linux Distributions ===
=== Other Linux Distributions ===
Line 125: Line 127:
* libreadline-dev
* libreadline-dev
* libgl1-mesa-dev
* libgl1-mesa-dev
* libevdev-dev
* libudev-dev


=== Optional dependencies ===
=== Optional dependencies ===
Line 161: Line 165:
|-
|-
| libpolarssl-dev (>= 1.3.8)
| libpolarssl-dev (>= 1.3.8)
| if not found will be built statically
|-
| libsdl2-dev (should be > 2.0.3, if possible)
| if not found will be built statically
| if not found will be built statically
|-
|-
Line 186: Line 187:


== Addendum B ==
== Addendum B ==
Scipts for building Dolphin.
Scripts for building Dolphin.


=== General purpose script ===
=== General purpose script ===
Line 212: Line 213:
mkdir $DIR/build
mkdir $DIR/build
cd $DIR/build
cd $DIR/build
build && echo 'Compiled succesfully.' || exit
build && echo 'Compiled successfully.' || exit
echo 'Proceeding to the installation; press Enter to continue or Ctrl+C to cancel.'
echo 'Proceeding to the installation; press Enter to continue or Ctrl+C to cancel.'
read
read
Line 225: Line 226:
Instructions:
Instructions:


Put this script in any directory, prefferably a subdirectory of the Home directory, such as <code>~/.scripts/dolphin</code><br>
Put this script in any directory, preferably a subdirectory of the Home directory, such as <code>~/.scripts/dolphin</code><br>
Within this directory, the script will create two subdirectories, ''dolphin-emu'' and ''build''. It must remain in this directory to work.<br>
Within this directory, the script will create two subdirectories, ''dolphin-emu'' and ''build''. It must remain in this directory to work.<br>
Execute the script from anywhere, by running <code>sh /path/to/the/script.sh</code>, where /path/to/the/script.sh is replaced with the actual path to the script.<br>
Execute the script from anywhere, by running <code>sh /path/to/the/script.sh</code>, where /path/to/the/script.sh is replaced with the actual path to the script.<br>
4

edits