Excellent!!!!

That's really a missing block coming to life!

I'll try it this weekend on my Linux system.

Phil



On Fri, Feb 21, 2014 at 10:24 AM, Göran Krampe <[email protected]> wrote:

> Hi all!
>
> On 01/22/2014 09:25 PM, Ronie Salgado wrote:
>
>> I started working on extending SWIG to generate bindings for NativeBoost
>> FFI, using as a reference the C# binding generator. I am committing my
>> work on this into https://github.com/ronsaldo/swig/ .
>>
>
> Just wanted to report that this stuff WORKS :)
>
> * I cloned down Ronie's SWIG. Did the autogen.sh, ./configure, make, make
> install dance.
> * I went into Examples/ruby/value and:
>         * Changed module name to "Example" (instead of "example")
>         * Ran: swig -pharo example.i (produces C code and Example.st)
>         * Compile: gcc -m32 -c -fpic -fPIC example_wrap.c example.c
>         * Link: gcc -m32 -shared example.o example_wrap.o -o Example.so
> * Then I filed in Example.st into Pharo 2.0, and put Example.so in the
> directory where I started the pharo VM.
>
> And well, after fixing some buglets (if you want to recreate this, email
> me or ask here) it works! I added a little test class for fun.
>
> Fantastic stuff! Sure, not complete by any means, but hey, it worked and
> not a single VM crash while playing with it. Ronie - good work!
>
> If you are on a Linux, I attached these two files. File into Pharo 2.0,
> open TestRunner and run ExampleTest.
>
> regards, Göran
>

Reply via email to