devkitPPC dependency issues
Posted: Sun Sep 23, 2012 2:44 pm
Following the instructions on the Getting Started wiki page, I had to compile devkitPPC (on the Wii itself, no less), and ran into a couple dependency issues.
First of all, I was told gxtexconv couldn't be compiled because I was missing libfreeimage, which I wasn't. In reality it was libstdc++ dev files it wanted.
Then I also had to install OpenGL dev files, which also wasn't mentioned as a dependency anywhere causing a compile failure.
Finally, it told me to add a line to my environment:
DEVKITPRO=/opt/devkitpro DEVKITPPC=/opt/devkitpro/devkitPPC
This is a bit misleading, because 1) it's missing a line break and 2) it's missing "export". What I really needed to add was:
export DEVKITPRO=/opt/devkitpro
export DEVKITPPC=/opt/devkitpro/devkitPPC
After that I was able to successfully compile and execute devkitPPC. Now if only it worked:
First of all, I was told gxtexconv couldn't be compiled because I was missing libfreeimage, which I wasn't. In reality it was libstdc++ dev files it wanted.
Then I also had to install OpenGL dev files, which also wasn't mentioned as a dependency anywhere causing a compile failure.
Finally, it told me to add a line to my environment:
DEVKITPRO=/opt/devkitpro DEVKITPPC=/opt/devkitpro/devkitPPC
This is a bit misleading, because 1) it's missing a line break and 2) it's missing "export". What I really needed to add was:
export DEVKITPRO=/opt/devkitpro
export DEVKITPPC=/opt/devkitpro/devkitPPC
After that I was able to successfully compile and execute devkitPPC. Now if only it worked:
Code: Select all
whiite:/opt/devkitpro/examples/wii# make
make[1]: Entering directory `/opt/devkitpro/examples/wii/audio'
make[2]: Entering directory `/opt/devkitpro/examples/wii/audio/modplay'
linking ... modplay.elf
/opt/devkitpro/devkitPPC/lib/gcc/powerpc-eabi/4.6.3/../../../../powerpc-eabi/bin/ld: cannot find -lwiiuse
/opt/devkitpro/devkitPPC/lib/gcc/powerpc-eabi/4.6.3/../../../../powerpc-eabi/bin/ld: cannot find -lbte
/opt/devkitpro/devkitPPC/lib/gcc/powerpc-eabi/4.6.3/../../../../powerpc-eabi/bin/ld: cannot find -lmodplay
/opt/devkitpro/devkitPPC/lib/gcc/powerpc-eabi/4.6.3/../../../../powerpc-eabi/bin/ld: cannot find -laesnd
/opt/devkitpro/devkitPPC/lib/gcc/powerpc-eabi/4.6.3/../../../../powerpc-eabi/bin/ld: cannot find -logc
collect2: ld returned 1 exit status
make[3]: *** [/opt/devkitpro/examples/wii/audio/modplay/modplay.elf] Error 1
make[2]: *** [build] Error 2
make[2]: Leaving directory `/opt/devkitpro/examples/wii/audio/modplay'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/opt/devkitpro/examples/wii/audio'
make: *** [all] Error 1