2.4 KiB
| title | tags | keywords | last_updated | sidebar | permalink | folder | topnav | |
|---|---|---|---|---|---|---|---|---|
| Setting up an IDE |
|
ide, codeblocks | November 20, 2018 | dev_sidebar | dev_ide_setup.html | dev | topnav |
Code::Blocks
This page is about setting up Code::Blocks for developing Wii U Homebrew using the devkitPPC toolchain.
Preparations
If you didn't set up devkitPPC already, you may want to follow this tutorial. You should've installed the required libraries for plugin development by now as well. If not, check out this page.
Installation
Code::Blocks is a free IDE and can be downloaded here. Install it according to the Code::Blocks homepage.
Setting up the compiler
For Wii U homebrew we generally use custom makefiles but Code::Blocks still needs to have a valid compiler/toolchain set. Using this tutorial we are overriding an existing compiler setting.
If you are using it for non Wii U projects, make sure to make a backup/copy of the settings.
Once you have opened Code::Blocks, you can access the compiler options menu via Settings -> Compiler... on the menu bar.
- Select the
GNU GCC Compiler for PowerPC (HighTec)in the dropdown menu. - Press
Set as default - Click on the
Toolchain executablestab. - Set
Compiler's installation directoryto the bin folder of yourdevkitPPCinstallation (on Windows this usually isC:\devkitPro\devkitPPC\bin) - Set
C compilertopowerpc-eabi-gcc(on Windowspowerpc-eabi-gcc.exe) - Set
C++ compilertopowerpc-eabi-g++(on Windowspowerpc-eabi-g++.exe) - Set
Linker for dynamic libs:topowerpc-eabi-g++(on Windowspowerpc-eabi-g++.exe) - Set
Linker for static libs:topowerpc-eabi-ar(on Windowspowerpc-eabi-ar.exe) - Set
Make programtomake(on Windowsmake.exe) - Save the settings by clicking on
OK
An example configuration can be found here:

Next steps
Now you can turn any existing project into a Code::Blocks project by following this tutorial.
Alternatively, you can use the Code::Blocks template to create a new plugin project from the scratch. A tutorial for this can be found here.
{% include links.html %}