[squeak-dev] FFI library loading errors?
Stephen Travis Pope
stephen at heaveneverywhere.com
Wed Jan 18 03:47:03 UTC 2023
Solved; what changed is that the primitive call signature has changed to require the module name for every call, i.e., it used to be
<cdecl: int32_t pm_initialize(void) >
and is now,
<cdecl: int32_t pm_initialize(void) module: 'libportmidi.dylib' >
stp
--------
Stephen Travis Pope Ojai, California, USA

http://HeavenEverywhere.com
http://FASTLabInc.com
https://vimeo.com/user19434036/videos
http://heaveneverywhere.com/Reflections
> On Jan 14, 2023, at 11:16 AM, Stephen Travis Pope <stephen at heaveneverywhere.com> wrote:
>
>
> FWIW, I re-compiled the library and rebuilt the image from scratch, and now I get a different error, i.e.,
>
> <prim-err2.jpg>
>
> Is anybody changing the library loader?
> The same VM still works with my older image.
>
> stp
>
> --------
>
> Stephen Travis Pope Ojai, California, USA
> <pastedGraphic.tiff>
> http://HeavenEverywhere.com
> http://FASTLabInc.com
> https://vimeo.com/user19434036/videos
> http://heaveneverywhere.com/Reflections
>
>
>
>> On Jan 14, 2023, at 7:23 AM, Stephen Travis Pope <stephen at heaveneverywhere.com> wrote:
>>
>>
>> Hey folks,
>>
>> Has something changed in the latest updates regarding loading external libraries?
>>
>> I use a dylib for MIDI I/O and it works fine with images of version 22104, but not if I rebuild my image from sources with a fresh image after loading the latest updates. Then I get the following:
>>
>> <lib-err.jpg>
>>
>> The same VM and library class work with an image built on an un-updated 22104 image. (I put the dylib in the VM app’s Resources folder.)
>>
>> I’m running on an M1-based MacStudio running MacOS Ventura.
>>
>> …anybody got any ideas?
>>
>> stp
>>
>> ————
>>
>> Stephen Travis Pope Ojai, California, USA
>> <pastedGraphic.tiff>
>> http://HeavenEverywhere.com
>> http://FASTLabInc.com
>> https://vimeo.com/user19434036/videos
>> http://heaveneverywhere.com/Reflections
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20230117/88d617bd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 2442 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20230117/88d617bd/attachment.tiff>
More information about the Squeak-dev
mailing list
|