Subject:
[ruby-ffi] Re: Cannot Open Mac Universal Library
From:
Nick Clark
Date:
4/7/12 10:36 PM
To:
ruby-ffi@googlegroups.com

Sorry for the delayed response. I wasn't getting reply notifications.

P4010 and Wayne,

The lib was not mine. I ended up writing the wrapper by hand as a ruby C extension which does work.

Thanks


On Wednesday, March 28, 2012 12:28:53 PM UTC-4, Nick Clark wrote:
I am trying to wrap a simple, three function SDK for use in ruby, but when I try to use FFI with it I get the following error:

/Users/nick/.rvm/gems/ruby-1.9.3-p0-perf/gems/ffi-1.0.12.rc1/lib/ffi/library.rb:121:in `block in ffi_lib': Could not open library 'lib/ext/libH-ITTSDK.so': dlopen(lib/ext/libH-ITTSDK.so, 5): no suitable image found.  Did find: (LoadError)
lib/ext/libH-ITTSDK.so: unknown file type, first eight bytes: 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A

I have A gist here:

Am I doing something wrong?

Thanks