Compiling libogc

Post Reply
dancinninja
Posts: 6
Joined: Thu Jun 10, 2010 3:08 am

Compiling libogc

Post by dancinninja » Sun Aug 01, 2010 4:17 am

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!

User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Re: Compiling libogc

Post by vuurrobin » Sun Aug 01, 2010 1:39 pm

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.

dancinninja
Posts: 6
Joined: Thu Jun 10, 2010 3:08 am

Re: Compiling libogc

Post by dancinninja » Wed Aug 11, 2010 2:09 am

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!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests