Building Dolphin from Source on Debian 10 & Ubuntu 18
How to Build Dolphin from Source

In this thread, I will teach you how to build the Dolphin Wii Emulator from source code.

NOTICE: For Ubuntu, you must be on version 18.04 or later. For Debian, you must be on Debian 10 or later. As of 2018, Debian 10 is currently unstable. If you are on Debian 9 and need to upgrade, read this small guide HERE.

Computer Requirements:
8 GB RAM or higher
Basic intel i5 processor or better

Yes, you can use integrated graphics (no special video card), if you meet the specs and are using Debian with a low-memory window manager.

The information on this thread is from this Dolphin wiki page - HERE

Refer to that wiki page or post a reply here if you are stuck on a step.

Let's begin.

1. Update, Upgrade, etc, etc.

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove && sudo apt-get autoclean

The above command will update and upgrade everything for your Linux OS plus delete/wipe any unneeded cache and/or dependencies

If you had to preform any upgrades, be sure to reboot your computer - sudo reboot

2. Install the Necessary Dependencies

sudo apt-get install cmake pkg-config git libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libenet-dev libgtk2.0-dev liblzo2-dev libminiupnpc-dev libopenal-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 "libpolarssl-dev|libmbedtls-dev" libcurl4-openssl-dev libegl1-mesa-dev libpng-dev qtbase5-private-dev

The above command may take about 10 minutes to complete.

3. Install More Dependecies

sudo apt-get install git cmake pkg-config gcc libwxbase3.0-dev libwxgtk3.0-dev libgtk2.0-dev libxext-dev libreadline-dev libgl1-mesa-dev libevdev-dev libudev-dev libasound-dev libpulse-dev libao-dev libopenal-dev libavcodec-dev libavformat-dev libswscale-dev libenet-dev liblzo2-dev libminiupnpc-dev libsoil-dev libsoundtouch-dev libsfml-dev libusb-1.0-0-dev libbluetooth-dev libxrandr-dev

4. Make the script

Dolphin wiki provides an excellent script that will build the source code for you. Obviously if you are experienced with building source code, you can build it without the script

In your home user directory, make a folder called 'DolphinScript'. Inside DolphinScript, make a blank file called

Open with any basic editor and enter this in..


DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
getdolphin() {
echo 'Downloading Dolphin...'
git clone
updatedolphin() {
cd $DIR/dolphin
echo 'Updating the local repository...'
git pull origin
build() {
cmake $DIR/dolphin
updatedolphin || getdolphin
mkdir $DIR/build
cd $DIR/build
build && echo 'Compiled successfully.' || exit
echo 'Proceeding to the installation; press Enter to continue or Ctrl+C to cancel.'
if [ $(whoami) == "root" ];
make install
sudo make install

5. Running the script

First we need to make the script executable, open a terminal and cd to /home/youruser/DolphinScript

Run this command - sudo chmod +x

Now run the script!

sudo ./

This process is lengthy and can take as long as an hour. But if you have good specs and high RAM, it should only take 15 - 20 minutes.

You will be prompted to press Enter to continue or Ctrl+C to cancel. Press Enter to finish the script.

6. Booting Dolphin

Once the script is done, simply run this command - dolphin-emu

Dolphin Emulator will launch, click the Open button and choose an iso/wbfs to play.

Congratz. It's recommended to install your own NAND and some other things, which will be covered in other guides.

7. Future Use and Other Notes

Please do not change the location or names of the folders/directories of where your source code files are stored. This can cause Dolphin to break. It will also disable all future upgrades.

How to Upgrade Dolphin:
Simply re-run the script. The master git hub tree will be viewed, and updates will be installed if there are any.

Forum Jump:

Users browsing this thread: 1 Guest(s)