Prerequisites
Before building for Wii, ensure you have:- Completed the dependency setup
- Installed the devkitPro toolchain
- Installed required Wii libraries
Install devkitPro
Download devkitPro
Follow the official installation guide at https://devkitpro.org/wiki/Getting_Started for your operating system.
Install Wii development packages
Use the devkitPro package manager to install the required libraries:
Build Process
Build Configuration
The Wii build uses the following compiler flags (fromMakefile:35):
Compiler Options
-std=c99- Use C99 standard-O3- Maximum optimization level-flto=auto- Link-time optimization for better performance-DPLATFORM_WII- Platform-specific compilation flag-DNDEBUG- Disable debug assertions
Linked Libraries
The following libraries are linked (fromMakefile:43):
- libwiiuse - Wii remote input handling
- libfat - FAT filesystem support (SD card access)
- libbte - Block transfer engine
- libogc - OGC/libogc core library
- libm - Math library
- libz - zlib compression
Deployment
Copy the DOL file
Copy the compiled
.dol file from the build directory to apps/cavex/boot.dol on your SD card.Optional: Direct Loading
If you have wiiload set up on your network, you can load the game directly to your Wii:wiiload $(OUTPUT).dol (from Makefile:120).
Performance Considerations
fCavEX is optimized for Wii hardware and typically runs at around 60fps with a 5-chunk render distance. Adjust video settings before building to optimize performance for your needs.
Recommended Settings for Wii
For optimal performance on Wii hardware:- Keep
GFX_GUI_SCALEat2for 640x480 resolution - Consider disabling
GFX_FANCY_LIQUIDSif experiencing frame drops GFX_CLOUDScan be disabled for a small performance boost
Cleaning Build Files
To clean the build directory:.dol and .elf files.