Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building Dolphin from Source on Debian 9 & Ubuntu
#1
How to Build Dolphin from Source

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

Why build from source?

Building from source insures that your emulator was built from 100% correct code as corruption can happen when downloading complete binary packages.

You also can stay up to date by running simple scripts/commands instead of downloading another entire binary package.

You can add/remove extra features not found in the binary packages.

You can place your build/source directory anywhere you like.

You can run the latest dev version that has all the newest features & fixes.

Ubuntu Users: This will work on 16.04 LTS and later
Debian Users: This will work on Debian 8 or later

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 && sudo apt-get clean


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 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 script.sh

Open script.sh with any basic editor and enter this in..

#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
getdolphin() {
echo 'Downloading Dolphin...'
git clone https://github.com/dolphin-emu/dolphin.git
}
updatedolphin() {
cd $DIR/dolphin
echo 'Updating the local repository...'
git pull origin
}
build() {
cmake $DIR/dolphin
make
}
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.'
read
if [ $(whoami) == "root" ];
then
make install
else
sudo make install
fi


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 script.sh

Now run the script!

sudo ./script.sh

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 caught 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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)