Page 1 of 1

Compiling libogc

Posted: Sun Aug 01, 2010 4:17 am
by dancinninja
Hello, I would like to compile libogc, but I am having some trouble and I'm hoping that you can help. I tried to search the forum for an answer, but I could not find one. I have looked at this related topic: http://devkitpro.org/viewtopic.php?f=3&t=2069, but what I am trying to do is compile libogc, not set it up to work in my development environment (that I managed to do successfully). I am using Visual Studio 2008, but I am not adverse to using another method, I just thought that I would use the included studio solution.

It seems that I am missing some files, here are some of the ones that pop up:
asm.h
stdbool.h
lwp.h
unistd.h
_ansi.h
processor.h

What is strange is that I can find some of these files, hidden deep within devkitPPC or msys, like stdbool.h. Adding them to the include path just seems to introduce new errors. It is my guess that I am missing something with my current set up.

Thank you very much!

Re: Compiling libogc

Posted: Sun Aug 01, 2010 1:39 pm
by vuurrobin
are you compiling with VS built in compiler or with the devkitPPC toolchain provided by devkitPro?

try compiling it with just the makefile and see if you get the same errors.

Re: Compiling libogc

Posted: Wed Aug 11, 2010 2:09 am
by dancinninja
That did the trick! Thank you very much!

Now I have a different problem. I have my brand-new libogc in the right folders (using the "make install" command) and that worked like a charm. However, when I go to build a different project (for the Wii) that uses my new library, I get the following errors:

undefined reference to `AUDIO_SetStreamSampleRate'
undefined reference to `AUDIO_SetStreamVolLeft'
undefined reference to `AUDIO_SetStreamVolRight'

What's strange is that I didn't even touch those functions (I only added something to gu_psasm.S). The functions reside in libogc/audio.c, and are entirely contained within a "ifdef HW_DOL" define.

Did I do something wrong?

Thank you!