Jump to navigation Jump to search
reorganised a little, made some corrections, binary parser.
Provided you have wiiload set up correctly, double clicking this will allow you to easily send your most recently compiled .dol/.elf to your Wii. Your makefile entry for wiiload should look something like this, if not set up already:
run: make $(BUILD)
wiiload $(TARGET).dol
This is the same as the standard makefile from the template, but "make" the $(BUILD) dependency is added simply to be sure we have a compiled version before trying to send our .elf/.dol file.
== More Settings ==
*Hit next, accept the terms, then finish. It will install, and ask you if you want to restart Eclipse, and I suggest you do.
=== Debug Method & Settings ===In order to debug a Wii application, you have to connect your computer based debugger to it somehow. Your options consist of the You can use of a [[#USB Gecko |USB Gecko]] or a [[#Wifi Debugging Patch|libogc wifi patch]]. Either way, the base setup is outlined here first. *Head to Project > Properties then C/C++ Build ¬ Settings.*On the Binary Parsers tab, check "GNU Elf Parser" and move it to the top of the list.*Select it and enter C:\devkitPro\devkitPPC\bin\powerpc-gekko-addr2line.exein the sameaddr2line field, and C:\devkitPro\devkitPPC\bin\powerpc-gekko-c++filt.exein the c++filt field.*Head Next, head to Run > Debug Configurations. Select "Zylin Embedded debug (Native)" and create a new configuration.
*Name it HelloWorld GDB or other relevant name, but bear in mind that it will need to be unique across all Eclipse projects.
From here, I'll explain settings tab by tab, as there are several ways to achieve the same setup.
==== Main tab ====
*Adding Specify your project name if it is optional, and may or may not be filled in for you already. It only seem to enable the Search Project button below, which doesn't actually do anything useful for us.*In ''C/C++ Application'' you can specify your project's .elf (not.dol) to be used by GDB as a symbol file. If your project is currently compiled you should be able to use "Search Project". An absolute path to the relevant .elf file will also work fine. *Alternatively, it you can be done via specify the .elf in the [[#Commands tab|commands tab]], with a symbol-file command, instead of here.
==== Debugger tab ====
==== Commands tab ====
*If you are not using an external gdb command file, "Initialize" should contain your "target" command, and if which varies depending on your debug method ([[#Debug Method|see relevant example below]]). *If you did not specify a path to your project .elf in the C/C++ on the main tab, you also need a "symbol-file" command, like so: symbol-file C:/WiiDev/projects/HelloWorld/HelloWorld.elfThe path does need to use forward slashes.
*I don't personally use "run" for any gdb commands, but it probably has a use for more seasoned developers.
*If you don't want to be able to use the Eclipse console to enter GDB commands, you have the option to disable it, but I'd recommend that you leave it enabled.
*You can also have an external file process the output from GDB.
=== Debug Method ===
==== USB Gecko ====
*Eclipse has a SVN client plugin that you may like. [ Subclipse]
*Apply tcpipwifi.patch from:
*Within Eclipse, applying a patch is as easy as right clicking the project and heading to Team > Apply Patch. Stay with default settings.
*Compile libogc and install.


Navigation menu