[squeak-dev] help loading latest Squeak FFI

John McKeon p3anoman at gmail.com
Sat Jun 9 00:14:44 UTC 2012


On Fri, Jun 8, 2012 at 7:11 PM, Bert Freudenberg <bert at freudenbergs.de>wrote:

> On 08.06.2012, at 23:47, Douglas McPherson <djm1329 at san.rr.com> wrote:
>
> Hi,
>
> I'm trying to load the latest version of FFI for Squeak. (I'm using a
> recent Cog VM if it makes a difference)
>
> 1. Start with Squeak4.4-11925.image from ftp.squeakfoundation.org.
> 2. Update the image (latest update 12083).
> 3. Add a Monticello repository '
> http://www.squeaksource.com/MetacelloRepository'.
> 4. Select and load latest configuration of FFI (ConfigurationOfFFI-tbn.23).
> 5. In a workspace, do:
> ConfigurationOfFFI load
>
> Results in an MNU:
> ExternalFunction class(Object)>>doesNotUnderstand:
> callingConventionModifierFor:
>
> I'm sure I've got the process wrong somewhere. Should I be using a
> different repository? Maybe I'm trying something more appropriate to Pharo?
> Clearly, I'm confused. Help appreciated :)
>
>
> In Squeak we normally use Installer:
>
> (Installer repository: 'http://source.squeak.org/FFI')
> install: 'FFI-Pools';
> install: 'FFI-Kernel';
> install: 'FFI-Tests'.
>

Off topic: I have been meaning to say something about this so I thought
this would be a good opportunity. If you run this code you will notice that
FFI-Pools gets "loaded" three times, and FFI-Kernel twice, because install:
adds the package name to the packages collection and then installs all the
packages in packages.

(Installer repository: 'http://source.squeak.org/FFI')
addPackage: 'FFI-Pools';
addPackage: 'FFI-Kernel';
addPackage: 'FFI-Tests';
install.

avoids this redundancy (and probably cuts down on the repository traffic a
bit).

John


> (IIRC this is also in the "how to extend the system" workspace in squeak's
> menu)
>
> - Bert -
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20120608/8b9dd23e/attachment.htm


More information about the Squeak-dev mailing list