Skip to content

extremscorner/libogc2

Repository files navigation

libogc2 build Extrems' Corner.org Discord

Projects using libogc2

Subprojects

cubeboot-tools, gamecube-examples, gamecube-tools, libfat, libntfs, wii-examples

Installing

Follow the instructions from pacman-packages.

sudo (dkp-)pacman -S libogc2 libogc2-docs libogc2-examples

Migrating from libogc

GNU Make

-include $(DEVKITPPC)/gamecube_rules
+include $(DEVKITPRO)/libogc2/gamecube_rules
-include $(DEVKITPPC)/wii_rules
+include $(DEVKITPRO)/libogc2/wii_rules

CMake

sudo (dkp-)pacman -S libogc2-cmake

DKP_OGC_PLATFORM_LIBRARY may be set to libogc or libogc2 to build projects using either thereafter.

Building

  1. Existing packages should first be uninstalled if already installed.

    sudo (dkp-)pacman -R --cascade libogc2(-git)
    
  2. Install build dependencies.

    sudo (dkp-)pacman -S --needed devkitPPC gamecube-tools ppc-libmad
    
  3. Clone and build source repositories.

    git clone https://github.com/extremscorner/libogc2.git
    cd libogc2
    make
    sudo -E make install
    
    git clone https://github.com/extremscorner/libfat.git
    cd libfat
    make ogc-release
    sudo -E make ogc-install
    

Using sudo is not necessary with MSYS2.

Upgrading

sudo (dkp-)pacman -Syu
cd libogc2
git pull
sudo -E make uninstall
sudo -E make clean
make
sudo -E make install
cd libfat
git pull
make ogc-clean
make ogc-release
sudo -E make ogc-install