Building Dolphin on Linux: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
=Compile and build Dolphin on Linux=
Dolphin is compatible with both 32 and 64 bit linux distributions. Following instructions explain how to build dolphin on linux using the cmake build system.
Dolphin is compatible with both 32 and 64 bit linux distributions. Following instructions explain how to build dolphin on linux using the cmake build system.


(This howto is based upon the outdated build instruction from the project wiki page [http://code.google.com/p/dolphin-emu/wiki/Linux_Build])
(This howto is based upon the outdated build instruction from the project wiki page [http://code.google.com/p/dolphin-emu/wiki/Linux_Build])


==Preparations to build Dolphin ==
==Step 1 - install the correct dependencies ==
First, make sure you have the correct dependencies installed.


'''Ubuntu 12.04'''<br>
'''Ubuntu 12.04'''<br>
<code>sudo apt-get install git cmake git g++ wx2.8-headers libwxbase2.8-dev libwxgtk2.8-dev libgtk2.0-dev libsdl1.2-dev nvidia-cg-toolkit libxrandr-dev libxext-dev libglew1.5-dev libao-dev libasound2-dev libpulse-dev libbluetooth-dev libreadline-gplv2-dev libavcodec-dev libavformat-dev libswscale-dev</code>
<code>sudo apt-get install cmake git g++ wx2.8-headers libwxbase2.8-dev libwxgtk2.8-dev libgtk2.0-dev libsdl1.2-dev nvidia-cg-toolkit libxrandr-dev libxext-dev libglew1.5-dev libao-dev libasound2-dev libpulse-dev libbluetooth-dev libreadline-gplv2-dev libavcodec-dev libavformat-dev libswscale-dev</code>


'''Ubuntu 11.10'''<br>
'''Ubuntu 11.10'''<br>
Line 14: Line 14:
'''Other Linux version?'''<br>
'''Other Linux version?'''<br>
If you run a distribution without aptitude, see the build dependencies in addendum A for a list of packages you'll need to install.
If you run a distribution without aptitude, see the build dependencies in addendum A for a list of packages you'll need to install.
==Step 2 - Get the dolphin repository==
Get a local copy of the dolphin-emu repository
<code>git clone https://code.google.com/p/dolphin-emu/ dolphin-emu</code>


==Addendum A - dependencies==
==Addendum A - dependencies==

Revision as of 14:34, 11 August 2012

Compile and build Dolphin on Linux

Dolphin is compatible with both 32 and 64 bit linux distributions. Following instructions explain how to build dolphin on linux using the cmake build system.

(This howto is based upon the outdated build instruction from the project wiki page [1])

Step 1 - install the correct dependencies

Ubuntu 12.04
sudo apt-get install cmake git g++ wx2.8-headers libwxbase2.8-dev libwxgtk2.8-dev libgtk2.0-dev libsdl1.2-dev nvidia-cg-toolkit libxrandr-dev libxext-dev libglew1.5-dev libao-dev libasound2-dev libpulse-dev libbluetooth-dev libreadline-gplv2-dev libavcodec-dev libavformat-dev libswscale-dev

Ubuntu 11.10
sudo apt-get install cmake git g++ wx2.8-headers libwxbase2.8-dev libwxgtk2.8-dev libgtk2.0-dev libsdl1.2-dev nvidia-cg-toolkit libxrandr-dev libxext-dev libglew1.5-dev libao-dev libasound2-dev libpulse-dev libbluetooth-dev libreadline5-dev libavcodec-dev libavformat-dev libswscale-dev

Other Linux version?
If you run a distribution without aptitude, see the build dependencies in addendum A for a list of packages you'll need to install.

Step 2 - Get the dolphin repository

Get a local copy of the dolphin-emu repository git clone https://code.google.com/p/dolphin-emu/ dolphin-emu


Addendum A - dependencies

This addendum lists the dependencies to build Dolphin.

  • Build Dependencies
  • git
  • cmake
  • g++
  • wx2.8-headers
  • libwxbase2.8-dev
  • libwxgtk2.8-dev
  • libgtk2.0-dev
  • nvidia-cg-toolkit
  • libbluetooth-dev (optional, for real wiimotes)
  • libxrandr-dev (optional, for switching desktop resolution in fullscreen mode)
  • libxext-dev
  • libreadline-dev
  • libasound-dev (optional, for alsa sound backend)
  • libpulse-dev (optional, for pulseaudio sound backend)
  • libao-dev (optional, for ao sound backend)
  • libopenal-dev (optional, for openal sound backend)
  • libavcodec-dev (optional, for dumping frames in AVI format)
  • libavformat-dev (optional, for dumping frames in AVI format)
  • libswscale-dev (optional, for dumping frames in AVI format)
  • libglew1.5-dev (optional, if not found will be built statically)
  • liblzo2-dev (optional, if not found will be built statically)
  • libsdl1.2-dev (optional, if not found will be built statically)
  • libsoil-dev (optional, if not found will be built statically)
  • libsfml-dev (optional, if not found will be built statically)