Can I load shared libraries with FFI?
utgarda opened this issue · comments
Hi! Is it possible to use additional ruby gems somehow or load shared libraries (.so , .dll) ?
Some time ago I tried that, but had to pack it all into the big jruby-all.jar , so that was unusable with default distribution of ruby-processing.
To use rubygems with jruby it is normal to install the gems with jruby (these get placed differently from regular installed gems) there can be issues with native libraries see https://github.com/jruby/jruby/wiki/C-Extension-Alternatives. However it is possible to install the ffi-java gem using jruby
jruby -S gem install ffi
installs java ffi, I've yet to test it in earnest.
@utgarda if you are still interested in ruby-processing you might care to try my development version here
https://github.com/monkstone/ruby-processing
Thanks!