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

How did you compile your library?

On Mar 28, 2012, at 9:28 AM, 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:
> https://gist.github.com/2227967
> 
> Am I doing something wrong?
> 
> Thanks