-
-
Notifications
You must be signed in to change notification settings - Fork 189
Setup SGDK with Eclipse
Stephane Dallongeville edited this page May 8, 2015
·
19 revisions
- Define "GDK" environment variable to your installation path in unix path format (example D:/apps/sgdk).
- Download Eclipse CDT at http://www.eclipse.org/cdt/downloads.php and install it wherever you want.
- Launch Eclipse and set your workspace folder as your root folder of your futures development projects as each new project will be added to this folder by Eclipse.
- Go to the workbench and select menu Window > Preferences to setup Eclipse
- In General > Workspace
- check Save automatically before build
- uncheck Build automatically
- In C/C++ > New CDT Project Wizard > Makefile Project go to the Builder Settings tab
- uncheck Use default build command
- set Build command value to
${GDK}/bin/make -f ${GDK}/makefile.gen
- In C/C++ > New CDT Project Wizard > Makefile Project go to the Behavior tab
- be sure Build (incremental build) is checked and replace field value
all
by${ConfigName}
so it will use the current active configuration to build the project
- You can now create a new project (File > New > C Project > Makefile project > Empty Project > --Other toolchain--).
- Right-click on it and select Properties to setup the project itself.
- In C/C++ General > Paths and Symbols, add a new directory in Includes tab
- Directory :
${GDK}/include
- Add to all configurations
- Add to all languages
- Click Apply and rebuild the index
{{{ this will make available the headers on /sdk/include to your project }}}
- Right-click on the project and select Build configurations > Manage...
- Rename the
Default
configuration torelease
- Add a new configuration named
debug
- So now you can change the active configuration depending the build you need :)
If you have an error on build like main() not found
, be sure to click Apply on project properties's C/C++ General > Paths and Symbols.
Another source of problem : be sure to un-mark Project>Build automatically