Must be on Linux. If you are running Windows, then install Windows Subsystem for Linux (WSL) and run all of these steps through there.
- Install devkitpro-pacman from here.
- Install Git through your preferred package manager if you don't already have Git.
- Run
sudo dkp-pacman -S switch-dev switch-sdl2 switch-libogg switch-libtheora switch-glad switch-glfw
to install all of the dependencies needed for Switch building. - Run these commands:
export DEVKITPRO=/opt/devkitpro
export DEVKITARM=/opt/devkitpro/devkitARM
export DEVKITPPC=/opt/devkitpro/devkitPPC