forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OSLib, I need help compiling a sample.

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
CT_Bolt



Joined: 04 Mar 2006
Posts: 14
Location: Computer Chair

PostPosted: Wed Apr 23, 2008 5:18 am    Post subject: OSLib, I need help compiling a sample. Reply with quote

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:
Quote:
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.
Back to top
View user's profile Send private message Yahoo Messenger
Question_dev



Joined: 24 Aug 2007
Posts: 88

PostPosted: Wed Apr 23, 2008 5:59 am    Post subject: Reply with quote

i think you have to install a lib (an audio lib, i don't know wich)
Back to top
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Wed Apr 23, 2008 6:01 am    Post subject: Reply with quote

Hi! :)

I think you should update yur sdk. ;)

Ciaooo
Sakya
Back to top
View user's profile Send private message Visit poster's website
CT_Bolt



Joined: 04 Mar 2006
Posts: 14
Location: Computer Chair

PostPosted: Thu Apr 24, 2008 2:08 am    Post subject: Thanks... Reply with quote

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

Thanks for the replies.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group