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-glfwto install all of the dependencies needed for Switch building.
- Run these commands: export DEVKITPRO=/opt/devkitproexport DEVKITARM=/opt/devkitpro/devkitARMexport DEVKITPPC=/opt/devkitpro/devkitPPC