Subject: [ruby-ffi] Re: Cannot Open Mac Universal Library |
From: Wayne Meissner |
Date: 3/28/12 4:10 PM |
To: ruby-ffi@googlegroups.com |
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 0x0AI have A gist here:Am I doing something wrong?Thanks