chipmunk-rb / chipmunk-ffi

chipmunk ruby bindings using ffi
26 stars 6 forks source link

Chipmunk 5.2 Dll for Mingw32 #10

Open Trebor777 opened 14 years ago

Trebor777 commented 14 years ago

HI, It would be great if a Dll could be created for windows users who are not familliar with compiling stuff.. and just want to use it with ruby 1.9.1 from RubyInstaller.org ( created with Mingw32 )

Thanks a lot.

shawn42 commented 14 years ago

I've compiled the current svn build of chipmunk; not sure what if any changes are needed to chipmunk-ffi to make this work. Please give this a try and let me know any errors you get. Thanks!

http://github.com/downloads/shawn42/chipmunk-ffi/libchipmunk.dll

Trebor777 commented 14 years ago

:) thanks a lot for this !! And i got errors right from the require :

C:/Ruby191/lib/ruby/gems/1.9.1/gems/ffi-0.6.3-x86-mingw32/lib/ffi/types.rb:46:in find_type': Unable to resolve type 'size_t' (TypeError) from C:/Ruby191/lib/ruby/gems/1.9.1/gems/ffi-0.6.3-x86-mingw32/lib/ffi/library.rb:267:infind_type' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/ffi-0.6.3-x86-mingw32/lib/ffi/struct.rb:191:in find_type' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/ffi-0.6.3-x86-mingw32/lib/ffi/struct.rb:231:inarray_layout' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/ffi-0.6.3-x86-mingw32/lib/ffi/struct.rb:158:in layout' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/nice-ffi-0.4/lib/nice-ffi/struct.rb:104:inlayout' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/chipmunk-ffi-1.1.0/lib/chipmunk-ffi/shape.rb:25:in <class:ShapeStruct>' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/chipmunk-ffi-1.1.0/lib/chipmunk-ffi/shape.rb:24:inmodule:CP' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/chipmunk-ffi-1.1.0/lib/chipmunk-ffi/shape.rb:1:in <top (required)>' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/chipmunk-ffi-1.1.0/lib/chipmunk-ffi.rb:44:inrequire' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/chipmunk-ffi-1.1.0/lib/chipmunk-ffi.rb:44:in block in <top (required)>' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/chipmunk-ffi-1.1.0/lib/chipmunk-ffi.rb:43:ineach' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/chipmunk-ffi-1.1.0/lib/chipmunk-ffi.rb:43:in `<top (required)>'