Function 'SDL_HasMMXExt' not found

20 views
Skip to first unread message

jolisper

unread,
Nov 19, 2011, 1:09:19 PM11/19/11
to Rubygame Talk
Hello everyone,

I need to play some wavs files in a basic metronome implementation and
i use de Rubygame::Sound class to do that, but I get the following
error:

/home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/ffi-1.0.11/lib/
ffi/library.rb:249:in `attach_function': Function 'SDL_HasMMXExt' not
found in [/usr/local/lib/libSDL.so] (FFI::NotFoundError)
from /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/nice-
ffi-0.4/lib/nice-ffi/library.rb:122:in `attach_function'
from /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/ruby-
sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl.rb:54:in `sdl_func'
from /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/ruby-
sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl/core.rb:86:in `<module:SDL>'
from /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/ruby-
sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl/core.rb:31:in `<top (required)>'
from /home/jorge/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/
site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/jorge/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/
site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/ruby-
sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl.rb:80:in `block in <top (required)>'
from /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/ruby-
sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl.rb:67:in `each'
from /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/ruby-
sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl.rb:67:in `<top (required)>'
from /home/jorge/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/
site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/jorge/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/
site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/
rubygame-2.6.4/lib/rubygame/main.rb:22:in `<top (required)>'
from /home/jorge/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/
site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/jorge/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/
site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/
rubygame-2.6.4/lib/rubygame.rb:44:in `block in <top (required)>'
from /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/
rubygame-2.6.4/lib/rubygame.rb:29:in `each'
from /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/
rubygame-2.6.4/lib/rubygame.rb:29:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:33:in `require'
from <internal:lib/rubygems/custom_require>:33:in `rescue in
require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from threads.rb:1:in `<main>'

i followed the wiki and already installed all the dependencies.

setup:
Ubuntu 11.04
CRuby 1.9.2

does anyone have any idea about this error?

thanks in advance

Jorge

John Croisant

unread,
Nov 20, 2011, 1:27:00 AM11/20/11
to rubyga...@googlegroups.com
On Sat, Nov 19, 2011 at 12:09 PM, jolisper <joli...@gmail.com> wrote:
> Hello everyone,
>
> I need to play some wavs files in a basic metronome implementation and
> i use de Rubygame::Sound class to do that, but I get the following
> error:
>
> /home/jorge/.rvm/gems/ruby-1.9.2-p180@metronome/gems/ffi-1.0.11/lib/
> ffi/library.rb:249:in `attach_function': Function 'SDL_HasMMXExt' not
> found in [/usr/local/lib/libSDL.so] (FFI::NotFoundError)
[snip]

>
> i followed the wiki and already installed all the dependencies.
>
> setup:
> Ubuntu 11.04
> CRuby 1.9.2
>
> does anyone have any idea about this error?
>
> thanks in advance
>
> Jorge

This error says that your version of SDL is missing the
"SDL_HasMMXExt" function, which Ruby-SDL-FFI (a library used by
Rubygame) expected to find. But, I think that is a bug in
Ruby-SDL-FFI. It should not fail when that function is missing.

Which version of SDL are you using? I'm guessing SDL 1.3, because SDL
1.2 would probably have that function. Am I right? :)

- John

Jorge Luis Pérez

unread,
Nov 20, 2011, 1:50:11 PM11/20/11
to rubyga...@googlegroups.com
2011/11/20 John Croisant <jac...@gmail.com>
Yes! you are right. I have removed and reinstaled all sdl 1.2 pakages and now it's working fine. Thank you.

Jorge 
Reply all
Reply to author
Forward
0 new messages