-
Notifications
You must be signed in to change notification settings - Fork 0
How to set up a development environment
J.SH edited this page Jul 6, 2022
·
8 revisions
This guide will teach you how to set up the development environment on Quartz.
This assumes you are using VSCode as your editor.
- Install devkitPro for your respective platform.
- Install
switch-dev
package using devkitPro-pacman on Unix platforms or select Switch in the windows installer.
Install these extensions
Clangd 14 has a known issue when recognizing headers, you could use an older version of clang or download the snapshot release.
If using the snapshot build change the clangd.path
option in VSCode JSON settings to point toward the clangd binary.
Configuring clangd properly
- Open the command palette (CTRL+SHIFT+P)
- Open
clangd: Open user configuration file
- Paste
---
If:
PathMatch: /opt/devkitpro/.* # Change this to the devkitPro path if you are on windows
CompileFlags:
Add: [-D__DEVKITA64__]
Remove: [-mtp=*]
Change the cmake active kit to devkitPro
Everything else is taken care of by the toolchain file and the configurations in .vscode
.