Subject:
[ruby-ffi] Re: Cannot Open Mac Universal Library
From:
Wayne Meissner
Date:
3/28/12 4:10 PM
To:
ruby-ffi@googlegroups.com

It looks like that lib was built wrong.

file is reporting it is a universal ar archive, not a dynamic lib.


On Thursday, March 29, 2012 2:28:53 AM UTC+10, 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


Am I doing something wrong?

Thanks