Setting up DevKitPro

From homebrew.pixelbath
Jump to navigation Jump to search

This page is incomplete! Please edit this page to add as much detail as possible.

The goal of this tutorial is to get a working setup for devKitPro. For now, this guide will focus mainly on Windows-specific configuration.

Installing DevKitPro

Download the Windows installer. If you only plan on creating PSP homebrew, deselect devkitARM and devkitPPC. The setup wizard should guide you through the remainder of installation. This guide assumes you installed to the default location of C:\DevKitPro.

Setup Project Folder

You should avoid storing projects within the devKitPro folder. If any updates are applied, the updater can and will overwrite or delete your files. Instead, create a new folder outside the main devKitPro folder, such as C:\_code\[consolename], substituting [consolename] with the name of the system you're developing for (psp, wii, nds, etc.). The path should not contain spaces, since many of the tools will not support them properly (yes, even in the post-XP world).

Compile a Sample

If you come across a build error like No rule to make target `/lib/build.mak'. Stop. then you have a path issue. Above that line is probably something like make: psp-config: Command not found. This is indicating a path issue. The program psp-config.exe is in the devkitPro\devkitPSP\bin folder and simply outputs different values depending on the parameter passed in. For the PSP SDK samples, it's executing psp-config --pspsdk-path which gives the full path for the SDK folder. The makefile then adds /lib/build.mak onto this path to get the full makefile (which will then link all the other needed libraries and so on).