Use FFI with Linux / Ubuntu ?

Dave Hylands dhylands at gmail.com
Thu Mar 2 15:30:19 UTC 2006


Hi Vincent,

>  I'm  squeak newbie and I want to use a C DLL with FFI on Linux (I use the
> The Ubuntu Linux distribution).
>
>      I have a function test which is written in a Linux C DLL. It works when
> I call it from an exe.
>  When I call it from my class I obtain the error message : "Error: unable to
> find function address"

Just an off the wall guess, but is the diretory containing test.so
included in the environment variable LD_LIBRARY_:PATH?

> ---------------------------------------------------------------------
>  TestClass>>testLinux
>      <cdecl: void 'test' (void) module: 'test.so'>
>      ^self externalCallFailed
> ---------------------------------------------------------------------
>
>  I use FFI with windows for an C Windows DLL and it works correctly,  so is
> the FFI package works with Linux / Ubuntu ?

I'd be very interested to see your example. I'd like to interface i2c
to Squeak and to do so I would like to make some wrapper functions
available (the wrapper functions all eventually call ioctl, but that
doesn't seem to be availble to Squeak either).

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/



More information about the Squeak-dev mailing list