-
-
Notifications
You must be signed in to change notification settings - Fork 194
Setup SGDK with QtCreator
Stephane Dallongeville edited this page Mar 12, 2021
·
4 revisions
- Download Qt from
www.qt.io/download-open-source/
- Install QtCreator. The QtCreator checkbox is mandatory; you do not need any of the optional Qt components the installer suggests.
- First, open the project, by selecting File › New File or Project..., then Import Project › Import Existing Project › Choose....
- Choose a directory to keep your source code in (create one if you haven't already done so), and give the project a name for QtCreator to call it. Click Next.
- QtCreator will show a list of all the files currently in your project. (If you haven't yet added any files, none will be shown.) Click Next.
- QtCreator will show a summary of the files that will be added. Click Finish.
- You can add new source code to the project by right-clicking on the project root and choosing Add new... or Add Existing Files... If creating a new file, note that QtCreator has no C-specific templates, but the C++ source/header file templates are suitable for C code as well.
- To tell QtCreator where the SGDK headers are, add a line to the
.includes
file that was automatically created with your SGDK directory (with forward slashes for path separators).
- Choose the Projects tab on the left.
- Expand the Build Environment section by pressing Details ▼ button. On the right, click Add. Set the name of the new variable to
GDK
, and its value to the location where you extracted the SGDK to (with forward slashes).
- Change the Build Steps and Clean Steps: Set the executable to
SGDK_PATH/bin/make.exe
, and the arguments to-f SGDK_PATH/makefile.gen
whereSGDK_PATH
refer to your SGDK installation path. For the Build Steps, untick all the targets; for the Clean Steps, leaveClean
ticked.
- Build the project by pressing the hammer in the bottom-left. It should build successfully and create
out/rom.bin
in your project root.