Does not find SDL.
Windows 7 64-bit, JRuby with SDL.dll in application's directory - and the execution directory of ruby. DLL also copied to windows system directories.
LoadError: Could not load SDL.
load_library at c:/jruby-1.7.4/lib/ruby/gems/shared/gems/nice-ffi-0.4/lib/nice-ffi/library.rb:98
SDL at c:/jruby-1.7.4/lib/ruby/gems/shared/gems/ruby-sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl.rb:51
(root) at c:/jruby-1.7.4/lib/ruby/gems/shared/gems/ruby-sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl.rb:34
require at org/jruby/RubyKernel.java:1054
(root) at c:/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:1
require at c:/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:55
require at org/jruby/RubyKernel.java:1054
(root) at c:/jruby-1.7.4/lib/ruby/gems/shared/gems/rubygame-2.6.4/lib/rubygame/main.rb:22
(root) at c:/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:1
each at org/jruby/RubyArray.java:1617
require at c:/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:55
require at org/jruby/RubyKernel.java:1054
(root) at c:/jruby-1.7.4/lib/ruby/gems/shared/gems/rubygame-2.6.4/lib/rubygame.rb:44
(root) at gametemplate.rb:8
Which version of SDL did you install? And, exactly which windows system directories did you copy the DLL to?
1.2.15, 64-bit MinGW, installed to SysWOW64, and when that didn't work, to System32. I did get it to work with standard ruby, so unsurprisingly, this is an interaction issue with jRuby. Maybe the ball should be passed to them regarding this issue?
I have the same problem: I still don't know how to solve it:
Dimmi: \Ruby23\bin\ruby.exe board.rb
C:/Ruby23/lib/ruby/gems/2.3.0/gems/nice-ffi-0.4/lib/nice-ffi/library.rb:98:in load_library': Could not load SDL. (LoadError) from C:/Ruby23/lib/ruby/gems/2.3.0/gems/ruby-sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl.rb:51:inmodule:SDL'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/ruby-sdl-ffi-0.4/lib/ruby-sdl-ffi/sdl.rb:34:in <top (required)>' from C:/Ruby23/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygame-2.6.4/lib/rubygame/main.rb:22:in<top (required)>'
from C:/Ruby23/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygame-2.6.4/lib/rubygame.rb:44:in block in <top (required)>' from C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygame-2.6.4/lib/rubygame.rb:43:ineach'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/rubygame-2.6.4/lib/rubygame.rb:43:in <top (required)>' from C:/Ruby23/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:inrequire'
from C:/Ruby23/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in rescue in require' from C:/Ruby23/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:inrequire'
from board.rb:20:in `
Dimmi: