User avatar
bomblord
Posts: 265
Joined: Sun Jul 14, 2019 2:54 am

Building and running dolphin (GC/Wii emulator) on the 64bit Raspberry Pi OS

Sat Jun 06, 2020 5:41 pm

Hello all I finally managed to install Dolphin the GC/Wii emulator on the latest 64 bit Pi OS. After having so so so many issues getting it setup I wanted to document exactly what I did (partially for my sake). Here's a step by step guide of what I did to get it installed and working.

First of all DO NOT SUDO APT INSTALL dolphin-emu it is multiple years and multiple thousands of commits behind.

Alright now that that is out of the way we're going to want to build from source. Don't worry this is not nearly as difficult as it sounds.

1. Dependencies: There are a lot of dependencies however I've listed all the ones that in the end had to be installed to get it to build successfully. Run these before building! Open Terminal and run the following (first update then install upgrades then install dependencies)

Code: Select all

sudo apt update

sudo apt upgrade

sudo apt 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 libpolarssl-dev libsoil-dev libsoundtouch-dev libsfml-dev libusb-1.0-0-dev libbluetooth-dev libxrandr-dev qtbase5-private-dev
2. Building: Once again just run these in order the make process should take around an hour on a non-overclocked pi. Open a new terminal session so you know for sure you'll be in the default directory.

Code: Select all

git clone https://github.com/dolphin-emu/dolphin.git dolphin-emu 

cd dolphin-emu

(if it's been a while run git pull origin in this directory to get the latest files)

mkdir build && cd build

sudo cmake ..

sudo make

sudo make install

sudo reboot
3. Configure Dolphin: Now we want to configure dolphin if you attempt to run it now you'll get OpenGL errors.

First you'll want to open dolphin once and click "Graphics" and set it to open GL you can do this either by typing dolphin-emu in terminal or open it from the "games" tab. After this close dolphin. This creates and populates the gfx.ini that we are going to be editing (it's a 1 line edit). After this open terminal again

DO NOT RUN THIS AS SUDO

Code: Select all

nano ~./config/dolphin-emu/GFX.ini 

Find this -> [Settings]

Under it type this
PreferGLES = True

hit CTRL + X
hit Enter
You have to put this under [Settings] (it will only work under that). You don't actually need to type settings I just put it there for reference.

The purpose of this is to tell Dolphin to fall back to OpenGLES which pi has a supported version of instead of OpenGL which is not up to date enough to run Dolphin.

Additionally if you know the game in question wasn't stressing original hardware you can go to the advanced settings and underclock the virtual CPU. I don't recommend this for many games though.

4. Overclock your Pi: This is optional technically but not really if you want a chance of even running light games at full speed

Code: Select all

sudo nano /boot/config.txt

at the very bottom put

over_voltage = 5
arm_freq = 2000
gpu_freq = 600

Ctrl+X
Enter

sudo reboot
Both the CPU/GPU can go higher however I consider these clocks stable for the majority (read every pi I've tested).

And that's it you're now running Dolphin. Here's a pic of Harvest Moon AWL running.
Image

Note: There are other topics on this subject but nothing specifically on the new Pi OS.

fonzy44
Posts: 1
Joined: Mon Jun 29, 2020 12:44 pm

Re: Building and running dolphin (GC/Wii emulator) on the 64bit Raspberry Pi OS

Mon Jun 29, 2020 12:50 pm

Hi Bomblord,

Very nice but which Raspberry pi do you use ? Pi 4 or Pi 3b+ ?

Thank you for your answer.
Fonzy44 (Alias SteF)

Return to “Gaming”