Can't get rubygame to work

Hello,

I am new to ruby and rubygame and have tried to get
http://rubygame.org/wiki/Generic_Game_Template to work as a starting
point, but I only get this error:

/usr/lib64/ruby/gems/1.8/gems/rubygame-2.5.3/lib/…/ext/rubygame/rubygame_core.so:

/usr/lib64/ruby/gems/1.8/gems/rubygame-2.5.3/lib/…/ext/rubygame/rubygame_core.so:

undefined symbol: SDL_FreeSurface -
/usr/lib64/ruby/gems/1.8/gems/rubygame-2.5.3/lib/…/ext/rubygame/rubygame_core.so

(LoadError)
from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' from /usr/lib64/ruby/gems/1.8/gems/rubygame-2.5.3/lib/rubygame.rb:34 from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require’
from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require’
from main.rb:2

I have all dependencies for rubygame installed.
I use Gentoo Linux with a 32/64bit multilib profile. SDL, ruby and
rubygame are compiled as 64bit app.

I hope somebody can help me.

Greetings

Sebastian Beßler

Hello,

this mail is just for reference, for people facing the same problem as
me.

I have solved this problem by rebuilding rubygame without -as-needed in
my LDFLAGS.

See also http://rubygame.org/forums/viewtopic.php?f=4&t=60

Greetings

Sebastian

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs