Devkitppc setup (Linux)

From WiiBrew
Jump to navigation Jump to search

Installing devkitPPC

There is also an automated Linux Installer for devkitPPC. If it doesn't work for you, here's how to do it by hand:

the Homebrew Channel (in order to have the executable "wiiload" that should be in wiiload/lin32)

  • Create a folder for devkitpro and extract everything into it such that you have this directory structure:
devkitpro
  devkitPPC
  libogc
  wii-examples
  wiiload

the folder wiiload should only contain the executable "wiiload" that you found in the homebrew channel

  • Edit ~/.bashrc and add
export DEVKITPRO=/path/to/devkitpro # replace this by your actual path
export DEVKITPPC=$DEVKITPRO/devkitPPC
PATH=$PATH:$DEVKITPPC/bin
PATH=$PATH:$DEVKITPRO/wiiload
  • Optionally, find out your Wii's IP with the homebrew channel and add
export WIILOAD=tcp:192.168.1.5 # replace this by your Wii's IP
  • Restart your terminal or type
source ~/.bashrc

Compiling a Hello World

  • Enter devkitpro/wii-examples/template and simply type
make
  • To run the example on your Wii, start the homebrew channel and type
make run

(To make this work, you should have the folder with wiiload in your $PATH)

Voilà! You just compiled your first Wii program!

Compiling Insight Debugger

A custom version of the Insight graphical debugger is included as part of the DevkitPro package, however currently there are no linux binaries available. In order to successfully compile the source under linux, you need to run the following sequence of commands from the directory where you unpacked the source:

for f in `find`; do; dos2unix ${f}; done
./configure --target=powerpc-gekko
make
make install prefix=/directory/to/install/to