Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / dyld: lazy symbol binding failed
- - By zero Date 2013-10-03 20:49
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/0B3w2r352t2D

When 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.
Parent - - By jlnr (dev) Date 2013-10-04 06:32
Hmmm, do you happen to know which C/C++ compiler you have used to install Gosu? rvm will use whatever is there, but I only test Gosu with Xcode's command line tools. _alcOpenDevice should be present on every OS X installation, unless you have played around with your OpenAL frameworks :)

I've just installed Gosu on exactly the same system setup and sound works.
Parent - By zero Date 2013-10-07 20:42 Edited 2013-10-10 07:53
Hey jlnr

thank you for your fast response. I have used Xcode's command line tools. But it's possible that I messed up the OpenAL Framework with something else - since I produce music from time to time. Thank you for your hint. I will try to reinstall/establish the defaults of the Framework and then I'll try again to run the code. It's good to know that everything is okay with gosu and my code.

cheers

edit: This worked for me: http://stackoverflow.com/questions/10536001/my-openal-framework-is-broken-how-can-i-fix-it-osx-lion
Up Topic Gosu / Gosu Exchange / dyld: lazy symbol binding failed

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill