I’m trying to load the FFI gem version (ffi-1.9.17-x64-mingw32) in Windows 10, Sketchup 2017 (maintenance build - 17.2.2555).
Edit note: In my old post, I had only loaded the ffi_c.so file corresponding to ruby version 2.2 and I can see that was incomplete frm FFI perspective, and hence now loaded the whole of FFI gem.
As I execute the below command of getting a memory pointer, SketchUp throws a bug splat…
$: << File.join('C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\ffi-1.9.17-x64-mingw32\lib') require 'ffi' float_ptr = FFI::MemoryPointer.new :float, 1
But giving the same command outside in ruby IRB in version 2.2.4 creates the pointer just fine.
Any help is greatly appreciated.