Hey there,
Currently I am playing around with Gosu and Ruby. I think it's a great Framework and makes Game Development and Prototyping really a joy. Unfortunately I ran into an error when I tried to complete the Gosu Tutorial (
https://github.com/jlnr/gosu/wiki/Ruby-Tutorial) and I am really curios to know where the problem is. Please have a look at my Player Class at:
http://cl.ly/code/0B3w2r352t2DWhen I fire up the game, I get this warning:
dyld: lazy symbol binding failed: Symbol not found: _alcOpenDevice
Referenced from: /Users/<user>/.rvm/gems/ruby-2.0.0-p247/gems/gosu-0.7.48/lib/gosu.bundle
Expected in: flat namespace
dyld: Symbol not found: _alcOpenDevice
Referenced from: /Users/<user>/.rvm/gems/ruby-2.0.0-p247/gems/gosu-0.7.48/lib/gosu.bundle
Expected in: flat namespace
Trace/BPT trap: 5
I have managed to determine, that I got the error message because of the line:
@beep = Gosu::Sample.new(window, 'media/beep.wav')
Gosu seems not to be able to load the sound. If I set this line as a comment the whole game works fine. The beep file exists of course and the path is correct - other media like images for the background and the player works well.
I use a Mac OS X ML, Ruby 2.0.0 and gosu 0.7.48, installed with RVM.
I hope someone can help me! Thank you very much.