| View previous topic :: View next topic |
| Author |
Message |
sturatt
Joined: 13 Jul 2006 Posts: 46
|
Posted: Sun Jul 16, 2006 12:41 pm Post subject: some trouble with libmad [resolved] |
|
|
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 |
|
 |
PeterM
Joined: 31 Dec 2005 Posts: 125 Location: Edinburgh, UK
|
Posted: Sun Jul 16, 2006 6:24 pm Post subject: |
|
|
Try specifying your libraries in a different order when linking - try putting -lpspaudiolib before -lpspaudio?
Hopefully it'll work... |
|
| Back to top |
|
 |
FreePlay
Joined: 04 Jan 2006 Posts: 71 Location: Schenectady, New York, USA
|
Posted: Sun Jul 16, 2006 6:49 pm Post subject: |
|
|
| 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 |
|
 |
sturatt
Joined: 13 Jul 2006 Posts: 46
|
Posted: Sun Jul 16, 2006 7:51 pm Post subject: |
|
|
| 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 |
|
 |
PeterM
Joined: 31 Dec 2005 Posts: 125 Location: Edinburgh, UK
|
Posted: Sun Jul 16, 2006 8:22 pm Post subject: |
|
|
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 |
|
 |
|