OSLib, I need help compiling a sample.

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
CT_Bolt
Posts: 14
Joined: Sat Mar 04, 2006 3:21 am
Location: Computer Chair

OSLib, I need help compiling a sample.

Post by CT_Bolt »

Ok, I downloaded Super Patrick II from here:http://oslib.palib.info/samples/

I am sorta new but not really to the whole C/C++ Dev thing.
Anyway I have compiled my own C programs using OSLib, under the same settings I'm using now.


This is what I get when I try to compile Super Patrick II:
psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -O2 -L. -LC:/pspdev/psp/sdk/
lib main.o -losl -lmikmod -lpng -lz -lpspsdk -lpspctrl -lpspumd -lpsprtc -lpsp
power -lpspgu -lpspaudiolib -lpspaudio -lm -lpspmpeg -lpspaudiocodec -lpspdebug
-lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apct
l -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o maps.elf
C:/pspdev/psp/sdk/lib/libosl.a(media.o): In function `oslLoadSoundFileAT3':
audio/media.c:404: undefined reference to `sceAudiocodecCheckNeedMem'
audio/media.c:377: undefined reference to `sceAudiocodecCheckNeedMem'
C:/pspdev/psp/sdk/lib/libosl.a(media.o): In function `osl_mp3Load':
audio/media.c:266: undefined reference to `sceAudiocodecCheckNeedMem'
C:/pspdev/psp/sdk/lib/libosl.a(media.o): In function `initME':
audio/media.c:172: undefined reference to `sceUtilityLoadAvModule'
collect2: ld returned 1 exit status
make: *** [maps.elf] Error 1
It is a C++ program, if that matters.

Any help would be greatly appreciated.
Thanks for reading this.
Question_dev
Posts: 88
Joined: Fri Aug 24, 2007 8:23 pm

Post by Question_dev »

i think you have to install a lib (an audio lib, i don't know wich)
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Post by sakya »

Hi! :)

I think you should update yur sdk. ;)

Ciaooo
Sakya
CT_Bolt
Posts: 14
Joined: Sat Mar 04, 2006 3:21 am
Location: Computer Chair

Thanks...

Post by CT_Bolt »

Umm ok... thanks...
Update my sdk... huh... yeah... right, right... that would probably work...
How do I update it?

Thanks for the replies.
Post Reply