SDL_Mixer and Ogg Vorbis support

Okay, I’ve downloaded all the ogg vorbis stuff from the ogg vorbis CVS,
compiled SDL (again) from the August 1st CVS snapshot and then tried to
compile SDL_Mixer with Ogg Vorbis support…

but

The first time I compiled it, it worked in the debug version but not the
release version.

So I nabbed the CVS version and it doesn’t compile in either versions then.

Linking…
Creating library Release/SDL_mixer.lib and object Release/SDL_mixer.exp
music_ogg.obj : error LNK2001: unresolved external symbol _SDL_Error
Release/SDL_mixer.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

SDL_mixer.dll - 2 error(s), 0 warning(s)

And yes it’s linked against sdl.lib

including SDL_error.h doesn’t help.

I’m using VisualC++ 6_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

in music_ogg.c there are two calls to “SDL_OutOfMemory()”
(line 80 and 136). you need to change these both to
"SDL_SetError(“Out of memory”)". once you do that you’ll
be up and running.

for some reason i thought i submitted this and it was fixed
in the latest SDL_mixer cvs code, but i guess not. Sam?

ah, i remember the problem now (moments after hitting the "send"
in my previous post). the function SDL_Error is not in the list
of exported functions for SDL. it needs to be added to the "SDL.def"
for SDL.

Kisai wrote:

Okay, I’ve downloaded all the ogg vorbis stuff from the ogg
vorbis CVS, compiled SDL (again) from the August 1st CVS
snapshot and then tried to

ahyes, i’ve built SDL_mixer with oggvorbis support, but
there is a problem in the source. the solution is pretty
simple…

in music_ogg.c there are two calls to “SDL_OutOfMemory()”
(line 80 and 136). you need to change these both to
"SDL_SetError(“Out of memory”)". once you do that you’ll
be up and running.

for some reason i thought i submitted this and it was fixed
in the latest SDL_mixer cvs code, but i guess not. Sam?

if you still can’t get it built, the version i have is
available online.
http://www.pygame.org/ftp/win32-dependencies.zip

Hello,

I got this same error to before. I think this might be a bug, I am not for
sure.

To fix:
1.Find the file music_ogg.c in SDL_mixer’s library
2.Change the line SDL_OutOfMemory(); to say SDL_SetError(“Out of memory”);
3.Compile and it should work just fine!

I am not sure what the problem is though, It compiles just fine on Linux with
OGG support without changing any files.

-Jordan Wilberding>On Thursday 09 August 2001 01:18, you wrote:

Okay, I’ve downloaded all the ogg vorbis stuff from the ogg vorbis CVS,
compiled SDL (again) from the August 1st CVS snapshot and then tried to
compile SDL_Mixer with Ogg Vorbis support…

but

The first time I compiled it, it worked in the debug version but not the
release version.

So I nabbed the CVS version and it doesn’t compile in either versions then.

Linking…
Creating library Release/SDL_mixer.lib and object Release/SDL_mixer.exp
music_ogg.obj : error LNK2001: unresolved external symbol _SDL_Error
Release/SDL_mixer.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

SDL_mixer.dll - 2 error(s), 0 warning(s)

And yes it’s linked against sdl.lib

including SDL_error.h doesn’t help.

I’m using VisualC++ 6


Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Jordan Wilberding <@Jordan_Wilberding>
Diginux.net Sys Admin

<wod.sourceforge.net>
<aztec.sourceforge.net>

“Fight war, not wars,
destroy power, not people”
-Crass

in music_ogg.c there are two calls to “SDL_OutOfMemory()”
(line 80 and 136). you need to change these both to
"SDL_SetError(“Out of memory”)". once you do that you’ll
be up and running.

for some reason i thought i submitted this and it was fixed
in the latest SDL_mixer cvs code, but i guess not. Sam?

It is now. :slight_smile:

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment