LibGX

From GamecubeLinux Wiki

LibGX is the GX part of libOGC ported to GC-Linux. Documentation for libOGC is available here (http://devkitpro.sourceforge.net/devkitProWiki/index.php/libogcDocs).

(The above link doesn't seem to work. Try this one Main libOGC page (http://devkitpro.sourceforge.net/devkitProWiki/libogc/) or Video Pages: [1] (http://devkitpro.sourceforge.net/devkitProWiki/libogc/a00269.html) [2] (http://devkitpro.sourceforge.net/devkitProWiki/libogc/a00270.html) [3] (http://devkitpro.sourceforge.net/devkitProWiki/libogc/a00271.html))

To be able to build it, you will need various packages, among those are:

  • autoconf
  • automake1.8

You will also need to have installed GNU Binutils for Gekko.

Here are quick building and installation instructions:

# cvs -d:pserver:anonymous@gc-linux.cvs.sourceforge.net:/cvsroot/gc-linux login
# cvs -z3 -d:pserver:anonymous@gc-linux.cvs.sourceforge.net:/cvsroot/gc-linux co -P libgx
# cd libgx
# aclocal
# autoheader --force
# libtoolize --automake --ltdl --copy --force
# automake-1.8 --gnu --add-missing --copy -f
# autoconf --force
# ./configure --enable-static
# make && make install

If it complains about unknown assembler instructions, try this patch (http://www.itstud.chalmers.se/~larssten/gc-linux/libgx-fix.patch).

# wget http://www.itstud.chalmers.se/~larssten/gc-linux/libgx-fix.patch
# cd libgx
# patch -p1 < ../libgx-fix.patch