SDL_Mixer fun and games

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

Moderators: cheriff, TyRaNiD

Post Reply
monkeymagic
Posts: 6
Joined: Wed Oct 05, 2005 6:09 am

SDL_Mixer fun and games

Post by monkeymagic »

Ok, so I'm following some tutorial at http://gpwiki.org/index.php/C:Playing_a ... _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: Select all

/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?
urchin
Posts: 121
Joined: Thu Jun 02, 2005 5:41 pm

Post by urchin »

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.
Post Reply