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 

SDL_Mixer fun and games

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



Joined: 05 Oct 2005
Posts: 6

PostPosted: Sat Jul 08, 2006 8:35 am    Post subject: SDL_Mixer fun and games Reply with quote

Ok, so I'm following some tutorial at http://gpwiki.org/index.php/C:Playing_a_WAV_Sound_File_With_SDL_mixer - so far so good, but when I try to compile I get a bunch of errors to do with loading OGG and Midi files, even though I'm playing a wav file. To put it in perspective, I get the following from Make:

Code:
/usr/local/pspdev/psp/lib/libSDL_mixer.a(mixer.o): In function `mix_channels':
/home/slord/trunk/SDL_mixer/mixer.c:207: undefined reference to `SDL_MixAudio'
/home/slord/trunk/SDL_mixer/mixer.c:231: undefined reference to `SDL_MixAudio'
/usr/local/pspdev/psp/lib/libSDL_mixer.a(mixer.o): In function `Mix_LoadWAV_RW':

/home/slord/trunk/SDL_mixer/mixer.c:433: undefined reference to `SDL_LoadWAV_RW'

/home/slord/trunk/SDL_mixer/mixer.c:482: undefined reference to `SDL_FreeWAV'
/home/slord/trunk/SDL_mixer/mixer.c:477: undefined reference to `SDL_FreeWAV'
/usr/local/pspdev/psp/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_new':
/home/slord/trunk/SDL_mixer/music_ogg.c:74: undefined reference to `ov_open'
/usr/local/pspdev/psp/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_new_RW':

/home/slord/trunk/SDL_mixer/music_ogg.c:126: undefined reference to `ov_open_cal
lbacks'
/usr/local/pspdev/psp/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_playAudi
o':
/home/slord/trunk/SDL_mixer/music_ogg.c:214: undefined reference to `SDL_MixAudi
o'
/usr/local/pspdev/psp/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_getsome'
:
/home/slord/trunk/SDL_mixer/music_ogg.c:159: undefined reference to `ov_read'
/home/slord/trunk/SDL_mixer/music_ogg.c:173: undefined reference to `ov_info'
/usr/local/pspdev/psp/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_delete':

/home/slord/trunk/SDL_mixer/music_ogg.c:237: undefined reference to `ov_clear'
/usr/local/pspdev/psp/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_jump_to_
time':
/home/slord/trunk/SDL_mixer/music_ogg.c:245: undefined reference to `ov_time_see
k'
/usr/local/pspdev/psp/lib/libSDL_mixer.a(wavestream.o): In function `WAVStream_P
laySome':
/home/slord/trunk/SDL_mixer/wavestream.c:196: undefined reference to `SDL_MixAud
io'
/home/slord/trunk/SDL_mixer/wavestream.c:196: undefined reference to `SDL_MixAud
io'
/usr/local/pspdev/psp/lib/libSDL_mixer.a(load_ogg.o): In function `Mix_LoadOGG_R
W':
/home/slord/trunk/SDL_mixer/load_ogg.c:93: undefined reference to `ov_open_callb
acks'
/home/slord/trunk/SDL_mixer/load_ogg.c:93: undefined reference to `ov_open_callb
acks'
/home/slord/trunk/SDL_mixer/load_ogg.c:101: undefined reference to `ov_info'
/home/slord/trunk/SDL_mixer/load_ogg.c:112: undefined reference to `ov_pcm_total
'
/home/slord/trunk/SDL_mixer/load_ogg.c:122: undefined reference to `ov_read'
/home/slord/trunk/SDL_mixer/load_ogg.c:128: undefined reference to `ov_read'
/home/slord/trunk/SDL_mixer/load_ogg.c:140: undefined reference to `ov_clear'
collect2: ld returned 1 exit status
make: *** [zzzz.elf] Error 1


I have -lSDL_mixer in my LIBS for the makefile and everything else is peachy. If I take -lSDL_mixer out I get different errors, so I'm presuming it's all good. I have Libtremor compiled against SDL, so everythig should work. Any ideas?
Back to top
View user's profile Send private message
urchin



Joined: 02 Jun 2005
Posts: 121

PostPosted: Sat Jul 08, 2006 5:31 pm    Post subject: Reply with quote

The first few errors looks like it can't find SDL. Have you got you libs the right way round in the makefile?

The rest of the errors look to do with OGG support. You either need to get an OGG lib or disable OGG support.
Back to top
View user's profile Send private message
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