Skip to content
HunterZ edited this page Mar 14, 2015 · 1 revision

Hints for compiling abuse-wii.

Prerequisites

A working Wii build environment containing the following tools:

  • A working devkitpro/devkitPPC installation.
  • A working libogc, installed properly into the devkitpro toolchain.
    • Apparently version 1.8.8 or higher is required, but I don't remember why (maybe the author added a fix specifically at my request). Just use the latest version!
  • A working SDL-wii and its dependencies, installed properly into the devkitpro toolchain. Additional notes:
    • An install built from the latest SVN source is currently needed for compatibility with the latest libogc, as the latest binary package is out of date.
    • SDL_config_minimal.h has a duplicate definition (with respect to devkitPPC's stdint.h) of uintptr_t for some reason. You will need to comment it out, or otherwise resolve the conflict.
  • GNU autotools, for generating the configure script.

Instructions

The following steps may or may not work. I've only tested them under Xubuntu x64:

  1. Run ./bootstrap to generate the configure script.
  2. Run ./wiiconfig.sh to generate the Wii-specific makefiles.
  3. Run make to build the abuse-wii source.
  4. Run make install-strip to install to the configured path, which will create a deployment that can then be copied onto a Wii.
  5. Run elf2dol abuse.elf boot.dol to make a .dol binary from the generated ELF binary.
  6. Copy all files (except for readme.txt) from the wii/ subdirectory of the source package into the root directory of the deployment path, including the save/ subdirectory.
  7. Delete the useless share/ directory and abuse-tool.elf binary from the deployment to reduce size.
  8. Copy the deployment onto the Wii, just like you would with any other homebrew app. It should then show up in and launch from the Homebrew Channel.

Notes

  • sdl-config and wiiconfig.sh are kludges. You may need to tweak one or both to suit your needs.
    • In particular, you will probably want to change the paths passed to configure in wiiconfig.sh if you want 'make install-strip' to deploy to a different path than /apps/abuse.
  • It is vital that you have a save directory in the abuse directory on the Wii. You must have a save/ directory to be able to save! I couldn't get the stock code for creating one automatically to work; it just crashes on the Wii.
  • SDL-wii's audio stereo panning is backwards for me. I've kludged abuse-wii to compensate for this.
  • Check the Abuse Wii article on the WiiBrew wiki for info on music support, Dolpin, etc.
  • abuse-tool notes:
    • Yes, abuse-tool compiles.
    • No, I haven't tested it.
    • To be useful on the Wii, it would probably need a GUI frontend.
    • If you want to use it, build and run a PC version instead.
Clone this wiki locally