[squeak-dev] FFI question [WAS] squeakopendbx, which VM?
Bert Freudenberg
bert at freudenbergs.de
Thu Apr 30 21:43:19 UTC 2009
On 30.04.2009, at 23:22, Mariano Martinez Peck wrote:
> However, you can of course manually do the "linking" step - in the
> ffi function declarations, use "libopendbx.so.1" as module instead
> of just "opendbx". This will then only work on Linux of course,
> since other Unix platforms use different schemes of versioning
> libraries.
>
> Indeed. That's why I don't want to change the module name.
Well, you can also automate this "pseudo-linking". When starting up,
just patch the right module name for the current platform into all the
FFI declarations. That's how the OpenGL FFI bindings in Croquet work ...
- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090430/04fb57bb/attachment.htm
More information about the Squeak-dev
mailing list
|