Getting Started/devkitARM

From devkitPro
Revision as of 18:12, 22 June 2008 by Wintermute (talk | contribs)
Jump to navigation Jump to search

If your host platform is Windows then use the Windows Installer/Updater package. Otherwise you may proceed with manual installation.

The first thing that you need to do is create a folder for the devkitPro toolchains. Start by opening a terminal - on OSX use the apple key + space, then type terminal. In the terminal window type the following command to create a new folder - all these commands are executed by pressing the return key.

mkdir -p /opt/devkitpro

When we're done the layout for your devkitPro folder should end up like this, each folder links to the appropriate sourceforge package.

devkitpro
   |
   +-- devkitARM
   +-- examples
   |     |
   |     +-- gba
   |     +-- gp32
   +-- libgba
   +-- libmirko
   +-- libnds

Nothing else should be placed inside these folders unless otherwise instructed by the devkitPro toolchain maintainers. On Windows several of these folders are removed and replaced by the update system.

The first package to install is the devkitARM tarball, obtained from the devkitARM link shown above. Download the appropriate tarball for your host platform - the files are named as devkitARM_<revision>-<processor>-<os>.tar.bz2.

Once the file is downloaded then you need to extract it into the devkitpro folder

cd /opt/devkitpro
tar -xvjf <file you downloaded>

Obviously replace <file you downloaded> with the name of the file obtained from sourceforge. On OSX you can simply drag & drop the downloaded file into the terminal window to get the file path.

Now you need to obtain the support libraries for your target platform - we'll start with the Nintendo DS libraries.

Download the latest binary of libnds then create a new folder and extract the tarball from the terminal window as before. Note: This is the file without "-src-" in the name.

mkdir libnds
cd libnds
tar -xvjf <libnds tarball>

Again, replace <libnds tarball> with the name of the file obtained from sourceforge. On OSX you can simply drag & drop the downloaded file into the terminal window to get the file path.

Now download libfat-nds, this is the libfat-nds tarball and may not be in the release at the top of the list. You may need to expand the second section to find the appropriate file. This should be extracted to the same folder as the libnds tarball earlier.

tar -xvjf <libfat-nds tarball>