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 

some trouble with libmad [resolved]

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



Joined: 13 Jul 2006
Posts: 46

PostPosted: Sun Jul 16, 2006 12:41 pm    Post subject: some trouble with libmad [resolved] Reply with quote

Im trying to get libmad installed, but whenever i try to compile with it i get these errors

Code:
Stuart@water ~/projects/DirReadExample
$ make kxploit
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -L. -L/usr/local/
pspdev/psp/sdk/lib   main.o mp3.o stuFunctions.o mp3player.o -lpspgu -lpng -lz -
lm -lstdc++ -lpspaudio -lpspaudiolib -lpsppower -lmad -lpspdebug -lpspdisplay -l
pspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_reso
lver -lpsputility -lpspuser -lpspkernel -o DirectoryReading.elf
/usr/local/pspdev/psp/sdk/lib/libpspaudiolib.a(pspaudiolib.o): In function `pspA
udioOutBlocking':
/tmp/pspdev/pspsdk/src/audio/pspaudiolib.c:55: undefined reference to `sceAudioO
utputPannedBlocking'
/usr/local/pspdev/psp/sdk/lib/libpspaudiolib.a(pspaudiolib.o): In function `pspA
udioInit':
/tmp/pspdev/pspsdk/src/audio/pspaudiolib.c:105: undefined reference to `sceAudio
ChReserve'
/tmp/pspdev/pspsdk/src/audio/pspaudiolib.c:111: undefined reference to `sceAudio
ChRelease'
/usr/local/pspdev/psp/sdk/lib/libpspaudiolib.a(pspaudiolib.o): In function `pspA
udioEnd':
/tmp/pspdev/pspsdk/src/audio/pspaudiolib.c:171: undefined reference to `sceAudio
ChRelease'
collect2: ld returned 1 exit status
make: *** [DirectoryReading.elf] Error 1


can anyone help me out with these?


Last edited by sturatt on Sun Jul 16, 2006 7:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
PeterM



Joined: 31 Dec 2005
Posts: 125
Location: Edinburgh, UK

PostPosted: Sun Jul 16, 2006 6:24 pm    Post subject: Reply with quote

Try specifying your libraries in a different order when linking - try putting -lpspaudiolib before -lpspaudio?

Hopefully it'll work...
Back to top
View user's profile Send private message Visit poster's website
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Sun Jul 16, 2006 6:49 pm    Post subject: Reply with quote

And if that doesn't work, there's always the fallback option of making sure you have the latest version of the SDK installed.
Back to top
View user's profile Send private message
sturatt



Joined: 13 Jul 2006
Posts: 46

PostPosted: Sun Jul 16, 2006 7:51 pm    Post subject: Reply with quote

well that did it, i had no idea that those needed to be put in a certain order. thanks for all the help guys, i appreciate it.
Back to top
View user's profile Send private message
PeterM



Joined: 31 Dec 2005
Posts: 125
Location: Edinburgh, UK

PostPosted: Sun Jul 16, 2006 8:22 pm    Post subject: Reply with quote

It's to do with how the linker sorts out dependencies.

libpspaudiolib depends on libpspaudio, so it needs to go first. Which is a bit silly, but hey...
Back to top
View user's profile Send private message Visit poster's website
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