[Tutorial] How to compile WiiFlow on Kubuntu

Step-by-step Wii tutorials: mod your Wii, install the Homebrew Channel, cIOS and a USB Loader, back up and unbrick your console.
User avatar
Ayatus
Gamer
Members
Posts: 846
Joined: Tue 3 Aug 2010 17:08
Wi-Fi: Non

[Tutorial] How to compile WiiFlow on Kubuntu

Post by Ayatus »

Automatically translated from French.

A Linux distro user for over ten years, I felt I had to offer this tuto.
It's quite similar in many ways to the tuto for Mac OS X but simpler and will be based on a Kubuntu 12.10 amd64.

Preparing the environment:

The whole process will be done from a terminal.

Installing the packages for compiling and versioning.

Code: Select all

sudo apt-get install build-essential subversion
We start by making sure we're indeed in our user directory:

Code: Select all

cd ~
We then create the development directory and move into it:

Code: Select all

mkdir WiiFlow && cd WiiFlow
Downloading and extracting libogc and devkitPPC:

Code: Select all

wget https://open-wiiflow-mod.googlecode.com/files/libogc_svn_r4902.zip
wget https://downloads.sourceforge.net/project/devkitpro/devkitPPC/devkitPPC_r26-x86_64-linux.tar.bz2
unzip libogc_svn_r4902.zip -d devkitpro
tar -xjf devkitPPC_r26-x86_64-linux.tar.bz2 -C devkitpro
Creating and saving the environment variables:

Code: Select all

echo 'export DEVKITPRO=/home/$USER/WiiFlow/devkitpro
export DEVKITPPC=$DEVKITPRO/devkitPPC' >> ~/.bashrc
. ~/.bashrc
Creating a working copy of the WiiFlow sources

Code: Select all

svn co https://open-wiiflow-mod.googlecode.com/svn/trunk/ wiiflow-src
Compiling:

We start by moving into our working copy's directory:

Code: Select all

cd wiiflow-src
All that's left is to launch the compilation:

Code: Select all

make
To go further:

Odds and ends.
  • Cleaning up between two compilations:

    Code: Select all

    make clean
  • Speed up the compilation by running several processes in parallel with a multi-core processor, here a quad-core:

    Code: Select all

    make -j5
  • Updating the working copy:

    Code: Select all

    svn up
  • Undoing the changes made to the working copy's files:

    Code: Select all

    svn revert -R .
  • Updating the working copy to revision n:

    Code: Select all

    svn up -r n
And finally, a customizable script to place at the root of the working copy:

Code: Select all

#!/bin/bash
# Suppression des fichiers objets d'une précédente compilation
make clean
# Restauration à l'état initial de la copie de travaille puis mise à jour
svn revert -R . && svn up
# Désactivation des Fanarts
sed -i 's/enable_fanart", true/enable_fanart", false/g' source/gui/fanart.cpp
# Désactivation de l'affichage de la piste sonore
sed -i 's/display_music_info", true/display_music_info", false/g' source/menu/menu.cpp
# Désactivation de la vibration de la wiimote
sed -i 's/rumble", true/rumble", false/g' source/menu/menu.cpp
# Désactivation de l'affichage des bannières dans les pages de configuration
sed -i 's/banner_in_settings", true/banner_in_settings", false/g' source/menu/menu.cpp
# Détermination de chemin par défaut de la NAND émulée
sed -i 's/wiiflow\/nandemu/nands\/pl_eu/g' source/defines.h
# Désactivation des plugins
sed -i 's/PLUGIN_DOMAIN, "disable", false/PLUGIN_DOMAIN, "disable", true/g' source/menu/menu_main.cpp
# Désactivation du menu source
sed -i 's/use_source", true/use_source", false/g' source/menu/menu_main.cpp
# Récupération de l'heure Unix en seconde avant compilation
d1=`date +%s`
# Compilation avec l'option -j[N] pour un Quadcore où N = nb core+1
make -j5
# Calcul du temps de compilation
echo -e "\033[00;31m compilé en $((`date +%s`-$d1))s\033[00m"
User avatar
Oops
God Member
Members
Posts: 7083
Joined: Thu 2 Apr 2009 00:35
Wi-Fi: Oui
CFW Wii: Wii vendu
Type de DS: 3DS
Linker DS: R4i GOLD 3DS (r4ids.cn)
CFW PS3: ode a venir
Type PSP: Fat
Firmware PSP: 6.60 pro-B10
lecteurxbox: LiteOn
Firmware lecteur Xbox360: LT+3.0 rgh2 coolrunn
Dashboard: 3.775
Location: 17 et 95

Re: [Tutorial] How to compile WiiFlow on Kubuntu

Post by Oops »

Automatically translated from French.

There's no stopping him :twisted: :accord:
User avatar
Ayatus
Gamer
Members
Posts: 846
Joined: Tue 3 Aug 2010 17:08
Wi-Fi: Non

Re: [Tutorial] How to compile WiiFlow on Kubuntu

Post by Ayatus »

Automatically translated from French.

Added an example Bash script to customize WiiFlow.

Everything for Wii · Wii U · Switch