Jump to: navigation, search

Devkitppc setup (Windows)

1,015 bytes added, 23 February
Updated emulator information
== Installing devkitPPC ==
* Go to [http this page] and download the latest Windows installer.
* Let it install to the C:\devkitPro\ to make it easier to follow the tutorial for now.
* When installing it, you can deselect devkitARM and devkitPSP
== Run the Hello World Example on the emulator ==
* Now, browse to the helloworld folder. There should be a helloworld.dol file here now.
* Run the hellworldhelloworld.dol in an emulator. As of 3123-MarFeb-20092019, emulators for the Wii are not 100% mostly compatible and feature complete. [[Dolphin]] can successfully run some boot all GameCube games, most Wii games and most homebrew. See the [[Dolphin]] page for more information. Another emulator is [[Gcube]]. Gcube does not run homebrew compiled in Wii mode, but can run homebrew if compiled for the GameCube mode. See the [[Gcube]] page for more information.
== Run the Hello World Example on the Wii using wiiload ==
* Click on Tools -> run or use the ALT+R key combination.
* The output window at the bottom will show the upload progress (so does the Homebrew Channel) and the example will be started on your Wii when it's done.
== Edit the msys etc/profile file ==
The etc/profile file loads some settings at each launch of the msys shell.
It can be used to set some environement variable for the compiler/linker
<source lang="bash">
export CC=powerpc-eabi-gcc
export CXX=powerpc-eabi-g++
export DEVKITPRO=/c/usr/devkitpro
export SDL_CONFIG=$DEVKITPRO/libogc/bin/sdl-config
export WIILOAD="tcp:"
export PATH="$DEVKITPPC/bin:$DEVKITPPC/powerpc-eabi/bin:$DEVKITPPC\libexec\gcc\powerpc-eabi\4.4.3:$PATH"
export LDFLAGS="-L$DEVKITPRO/libogc/lib/wii"
Set the $DEVKITPRO variable to the devkitpro directory and the WIILOAD with the Wii IP.
CC: C Compiler to use
CXX: C++ compiler to use (note: CPP stand for C preprocessor)
DEVKITPRO: Needed by the Devkitpro Makefiles
WIILOAD: Needed by the wiiload program
PATH: Search in bin and libexec in order to perform a gcc or g++ command without a makefile, followed by your Windows existing variables.
== Some Code snippets ==

Navigation menu