Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not find SDL. #5

Open
Senevri opened this issue Aug 31, 2013 · 3 comments
Open

Does not find SDL. #5

Senevri opened this issue Aug 31, 2013 · 3 comments

Comments

@Senevri
Copy link

Senevri commented Aug 31, 2013

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                                                                   
@jacius
Copy link
Owner

jacius commented Sep 2, 2013

Which version of SDL did you install? And, exactly which windows system directories did you copy the DLL to?

@Senevri
Copy link
Author

Senevri commented Sep 2, 2013

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?

@ghost
Copy link

ghost commented Jul 28, 2016

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants