2.3 KiB
| title | tags | keywords | last_updated | sidebar | permalink | folder | topnav | |
|---|---|---|---|---|---|---|---|---|
| Setting up an IDE |
|
ide, codeblocks | July 24, 2018 | dev_sidebar | dev_ide_setup.html | dev | topnav |
Code::Blocks
This page is about setting up CodeBlocks for developing Wii U Homebrew using the DevkitPPC toolchain.
If you haven't already set up the toolchain, follow this tutorial.
You also should've installed the required libraries by now. If not check out: Installing the required libraries.
Code::Blocks is free and can be downloaded here.
Download and install it according to the Code::Blocks homepage.
Setting up the compiler
The Wii U is using custom Makefiles, but Code::Blocks still needs to have an valid compiler/toolchain set. Using this tutorial we are overriding an existing compiler setting.
If you are using it for non-WiiU projects, make sure to make an backup / copy.
Once you have opened Code::Blocks, you can access the compiler options 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 your DEVKITPPC installation (on windows probablyC:\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 an Code::Blocks project by following this tutorial.
Or you can use the the Code::Blocks template to create a new plugin project from the scratch. A tutroial can be found here.
{% include links.html %}