Tutorial  Updated

Install Dolphin (GC emulator) on Switch

Here's what the end result looks like:

I tested with Animal Crossing. It runs at about half speed at best. (If you saw this tutorial on Reddit already, I did not steal this guide. I posted it there as well.)

I'm assuming you already have Arch running on your switch with SSH and Wi-Fi working. SSH isn't needed, but it's way easier to do this with SSH. If you don't have Arch set up, look here: https://gbatemp.net/threads/quick-tuto-how-to-boot-linux-on-your-switch.501918/ I would also suggest the precompiled version of the booting tools here https://github.com/SoulCipher/shofel2_linux

Please comment if anything doesn't work as I might have forgotten something (I did most of this last night so I'm pretty much trying to remember the steps I took).

First you should have the equivalent of build-essential or base-devel for your system.

SSH into the Switch and sudo su into root. Now run

Code:
pacman -Syu alsa-lib bluez-libs cairo enet gcc-libs gdk-pixbuf2 glib2 glibc gtk2 hidapi libevdev libpng libpulse libsm libx11 libxi libxrandr libxxf86vm lzo mbedtls pango sfml zlib cmake git

This will install Dolphin-emu's dependencies. Next, run

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

Which will clone Dolphin-emu's repository to your Switch. Move into the dolphin-emu directory.

Code:
cd dolphin-emu

Now create a folder called Build and go into it.

Code:
mkdir Build && cd Build

Configure the build

Code:
cmake ..

After this is completed, run

Code:
make -j6

to compile Dolphin. Now run

Code:
make install

to install Dolphin on to the Switch.

Run it by typing dolphin-emu in LXTerminal on the Switch and pressing enter. You can type by using the "Onboard" program. Press the Config button, go to the audio section, and tap where it says ALSA. Change this to disabled. Close Dolphin and go back to your ssh session. Run

Code:
nano ~/.config/dolphin-emu/Dolphin.ini

and change where it says CPUCore = 1 to CPUCore = 4. This sets it to use the JIT64 DC, which is the fastest CPU interpreter for the Switch.

Now you can relaunch Dolphin and load a game!

Edit: To improve performance, try running

Code:
echo 0a > /sys/kernel/debug/dri/0/pstate

(Thanks, @natinusala!)
 
Last edited by LarBob,

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,220
Country
United States
Here's what the end result looks like:

I tested with Animal Crossing. It runs at about half speed at best. (If you saw this tutorial on Reddit already, I did not steal this guide. I posted it there as well.)

I'm assuming you already have Arch running on your switch with SSH and Wi-Fi working. SSH isn't needed, but it's way easier to do this with SSH. If you don't have Arch set up, look here: https://gbatemp.net/threads/quick-tuto-how-to-boot-linux-on-your-switch.501918/ I would also suggest the precompiled version of the booting tools here https://github.com/SoulCipher/shofel2_linux

Please comment if anything doesn't work as I might have forgotten something (I did most of this last night so I'm pretty much trying to remember the steps I took).

First you should have the equivalent of build-essential or base-devel for your system.

SSH into the Switch and sudo su into root. Now run

Code:
pacman -Syu alsa-lib bluez-libs cairo enet gcc-libs gdk-pixbuf2 glib2 glibc gtk2 hidapi libevdev libpng libpulse libsm libx11 libxi libxrandr libxxf86vm lzo mbedtls pango sfml zlib cmake git

This will install Dolphin-emu's dependencies. Next, run

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

Which will clone Dolphin-emu's repository to your Switch. Move into the dolphin-emu directory.

Code:
cd dolphin-emu

Now create a folder called Build and go into it.

Code:
mkdir Build && cd Build

Configure the build

Code:
cmake ..

After this is completed, run

Code:
make -j6

to compile Dolphin. Now run

Code:
make install

to install Dolphin on to the Switch.

Run it by typing dolphin-emu in LXTerminal on the Switch and pressing enter. You can type by using the "Onboard" program. Press the Config button, go to the audio section, and tap where it says ALSA. Change this to disabled. Close Dolphin and go back to your ssh session. Run

Code:
nano ~/.config/dolphin-emu/Dolphin.ini

and change where it says CPUCore = 1 to CPUCore = 4. This sets it to use the JIT64 DC, which is the fastest CPU interpreter for the Switch.

Now you can relaunch Dolphin and load a game!

Edit: To improve performance, try running

Code:
echo 0a > /sys/kernel/debug/dri/0/pstate

(Thanks, @natinusala!)


The problem is:

After I type cmake .. and I got this message:

CMake Error: The source directory "/Users/azoreseuropa" does not appear to contain CMakeLists.txt.
 

LuigiGold

Well-Known Member
Newcomer
Joined
Feb 9, 2016
Messages
75
Trophies
0
Age
35
XP
297
Country
Spain
The problem is:
After I type cmake .. and I got this message:

CMake Error: The source directory "/Users/azoreseuropa" does not appear to contain CMakeLists.txt.
(I don't see the point of running Dolphin as it will obviously perform like shit, but...)

Well, I think error explains itself.

There's no CMakeLists.txt in that dir.

Perhaps are you building it in "Build/" directory?


Greetings
 
  • Like
Reactions: spotanjo3

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,220
Country
United States
(I don't see the point of running Dolphin as it will obviously perform like shit, but...)

Well, I think error explains itself.

There's no CMakeLists.txt in that dir.

Perhaps are you building it in "Build/" directory?


Greetings

Never mind. I figured it out.. Something to do with qt5 screwed up so I unlink and installed it again through terminal windows. Everything is good but as you said it will run badly. So I won't do it. Thanks.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @Veho, let @AncientBoi fix it