Technical support > Mac

[FIXED in macports trunk] SDL_mixer + OGG broken? Fix in macports!

(1/5) > >>

tchristney:
Edit: this has been fixed in macports trunk, but this may be useful info if you don't use the source version of macports.

Hi fellow mac users. I've been experiencing a problem the last couple of weeks with OGG sound files not playing, and getting an error:


--- Code: ---S_LoadSound: There are 0 joysticks available.
S_LoadSound: Could not find sound file: 'footsteps/water_under'

--- End code ---

IF you are having the same problem (i.e. no footsteps being played, among other things), then read on! Otherwise, pretend that this message ends here.  ;)

I finally tracked it down and it is a problem with SDL_mixer that has only been fixed with version 1.2.11 (which is not current in macports). It is fairly easy to modify the macports Portfile and PortIndex files to upgrade your version. First, find the port file using port file libsdl_mixer, and open it in an editor as the super user.


* Change the line that reads version 1.2.10 so that it reads version 1.2.11
* Comment out the line that reads patchfiles patch-leopard.diff
* Change the checksums: md5 65ada3d997fe85109191a5fb083f248c, sha1 ef5d45160babeb51eafa7e4019cec38324ee1a5d and rmd160 559355116a1c380edf71879da0dbcf5359f05476
* Save the file and exit the editor.
Next, you need to change the PortIndex file so that it knows about the change. If port file libsdl_mixer returns a path PREFIX/audio/libsdl_mixer/Portfile, then you need to edit PREFIX/PortIndex (again as the super user). Search for libsdl_mixer, and change 1.2.10 to 1.2.11. Save and exit.

Lastly, run port upgrade libsdl_mixer. Done!

I'm going to notify the port maintainer to get this modification upstream. And no, mattn, I'm not going to update the wiki because this problem will hopefully be extremely short lived.  ;) :P ;D

ps. if this doesn't work for you, keep in mind that I'm using the source version of macports from their trunk and using the most up to date dports. Modifying the instructions to work for a packaged release of macports is left as an exercise for the reader...

Mattn:
we have reports about a missing libvorbis and libogg in the created dmg files. it would be really cool if you could have a look at that issue, too (looks like they are not added because they are not found by otool (because they are loaded at runtime))

keybounce:
Alright, what do you do if you have the up to date version of sdl_mixer, a properly set
stbmac:23 Michael$ echo $DYLD_FALLBACK_LIBRARY_PATH
:/opt/local/lib/:/opt/local/lib/

and you still get these errors on some sound files?

I get the main background music, but no sound effects.

keybounce:
Bump

I am still getting these errors on the current branch checkout.

At the load sample code, at
                if (!(chunk = Mix_LoadWAV_RW(rw, qfalse)))
                        Com_Printf("S_LoadSound: %s.\n", Mix_GetError());

the Mix_LoadWAV_RW call is failing.

stbmac:23 Michael$ port installed libsdl_mixer
The following ports are currently installed:
  libsdl_mixer @1.2.8_1+universal
  libsdl_mixer @1.2.11_0+universal (active)

I've got 1.2.11 of sdl_mixer

I've verified that the sound file is found, and opened.

stbmac:23 Michael$ printenv | egrep DYLD
DYLD_FALLBACK_LIBRARY_PATH=:/opt/local/lib/

I've got my environment set.

smlacc:
I still have this problem too.  Running otool on the ufo binary inside the ufoai.app I generated just now gives this output:
-------------------
   /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
   /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.21.0)
   /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 15.0.0)
   @executable_path/../Libraries/libvorbis.0.dylib (compatibility version 5.0.0, current version 5.3.0)
   @executable_path/../Libraries/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
   @executable_path/../Libraries/libcurl.4.dylib (compatibility version 6.0.0, current version 6.1.0)
   @executable_path/../Libraries/libjpeg.8.dylib (compatibility version 9.0.0, current version 9.2.0)
   @executable_path/../Libraries/libpng14.14.dylib (compatibility version 17.0.0, current version 17.0.0)
   @executable_path/../Libraries/libSDL-1.2.0.dylib (compatibility version 12.0.0, current version 12.3.0)
   @executable_path/../Libraries/libSDL_image-1.2.0.dylib (compatibility version 9.0.0, current version 9.2.0)
   @executable_path/../Libraries/libSDL_mixer-1.2.0.dylib (compatibility version 11.0.0, current version 11.1.0)
   @executable_path/../Libraries/libSDL_ttf-2.0.0.dylib (compatibility version 11.0.0, current version 11.0.0)
   @executable_path/../Libraries/libogg.0.dylib (compatibility version 7.0.0, current version 7.0.0)
   @executable_path/../Libraries/libtheora.0.dylib (compatibility version 4.0.0, current version 4.10.0)
   @executable_path/../Libraries/libintl.8.dylib (compatibility version 10.0.0, current version 10.0.0)
   /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.1)
   /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
   /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.19.0)
   /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 38.0.0)
   /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1038.29.0)
-----------
Have checked, and al libraries listed are where they should be, including the ogg/theora ones.

Smlacc

Navigation

[0] Message Index

[#] Next page

Go to full version