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,

LarBob

Well-Known Member
OP
Member
Joined
Dec 29, 2013
Messages
370
Trophies
0
Age
23
XP
563
Country
United States
It gives this now.

Code:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:12 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:12 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/alarm/dolphin-emu/Build/CMakeFiles/CMakeOutput.log".
See also "/home/alarm/dolphin-emu/Build/CMakeFiles/CMakeError.log".
Try installing base-devel?
 
D

Deleted User

Guest
Issue is that we dont have Vulkan Yet and Vulkan will give Dolphin a decent Speed Boost
 

Sonicbrawler

Well-Known Member
Member
Joined
Sep 7, 2015
Messages
205
Trophies
0
Age
27
XP
457
Country
United States
My switch keeps going to a black screen when im working on this. no idea what the cause is, as it randomly happens.
 

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
Dolphin plays wii games too, anyone tried skyward sword with joycons? :yayswitch::wub:

Haven't tried any Zelda game. Although I did test Super Mario Galaxy 2. In terms of graphics, the game looks superb, but it runs like crap.

Help everytime i type make -j6 it crashes my system help

Try using just make. It'll take a lot more time to compile, but your system shouldn't crash. It happened to me as well.

Tried VC Wads. SNES works fine but any N64 wad I try doesnt work.

I totally forgot about WADs. I'll test some of 'em right away.
 

Attachments

  • IMG_20180505_011034_808.jpg
    IMG_20180505_011034_808.jpg
    1.5 MB · Views: 370
  • IMG_20180508_005036.JPG
    IMG_20180508_005036.JPG
    92.5 KB · Views: 315

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    a_username_that_isnt_cool @ a_username_that_isnt_cool: Good morning!