Hi Alain,<br><br><div class="gmail_quote">On Sun, Oct 31, 2010 at 10:16 AM, Alain_Rastoul <span dir="ltr"><<a href="mailto:alr.dev@free.fr">alr.dev@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks Levente,<br>
I have seen lot of discussions about alien FFI, is it what you are talking<br>
about ?<br>
or is there another Cog FFI package somewhere else ?<br></blockquote><div><br></div><div>As Levente explained Cog has a different but compatible implementation. You should use the source produced by the ReentrantIA32FFIPlugin (which will still produce code in src/plugins/SqueakFFIPrims/SqueakFFIPrims.c and depends on the support code only in <a href="http://www.squeakvm.org/svn/squeak/branches/Cog/platforms/Cross/plugins/SqueakFFIPrims">http://www.squeakvm.org/svn/squeak/branches/Cog/platforms/Cross/plugins/SqueakFFIPrims</a>, not the platform-specigic directories (e.g. platforms/unix/plugins/SqueakFFIPrims platforms/win32/plugins/SqueakFFIPrims which is not used).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Just to mention it, I had to modify some (few minors) incorrect<br>
declarations in sq.h, HostWindowPlugin.h and sqWin32Backtrace.c in order to<br>
compile<br>
with gcc 4.5.<br></blockquote><div><br></div><div>can you send me these changes?</div><div><br></div><div>TIA</div><div>Eliot</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
"Levente Uzonyi" <<a href="mailto:leves@elte.hu">leves@elte.hu</a>> a écrit dans le message de news:<br>
Pine.LNX.4.64.1010311708110.22213@login03.caesar.elte.hu...<br>
<div><div></div><div class="h5">> On Sat, 30 Oct 2010, Alain_Rastoul wrote:<br>
><br>
>> Hi<br>
>><br>
>> I downloaded the Cog trunk , the last FFI version from Monticello, used<br>
>> the<br>
>> workspace script to generate the source and build Cog on Windows with<br>
>> cygwin (gcc 4.5.1).<br>
><br>
> The Cog VMMaker image includes a different FFI implementation (with<br>
> compatible API), so if you don't load FFI from <a href="http://source.squeak.org" target="_blank">source.squeak.org</a> then<br>
> you'll get a working FFI.<br>
><br>
><br>
> Levente<br>
><br>
>> Every thing is ok, but the FFI plugin doesn't work.<br>
>> When I evaluate Win32Window class>>coloredEllipses<br>
>> I have SmallInteger(Object)>>doesNotUnderstand: #getHDCDuring:<br>
>> Win32Window getFocus evaluates to a integer handle, not a Win32Window.<br>
>> I did<br>
>> (Smalltalk at: #ExternalType) initialize.<br>
>> (Smalltalk at: #ExternalStructure) compileAllFields.<br>
>> and also tryed to build only the plugin with Mingw gcc 2.95.2<br>
>> but I have allways the same problem<br>
>><br>
>> Is the FFI plugin functional ? am I missing something ?<br>
>> What version of gcc is ok ?<br>
>> (the make CC=gcc-3 LD=gcc-3 DLLWRAP='dllwrap -mno-cygwin --driver-name<br>
>> gcc-3'<br>
>> doesn't work)<br>
>><br>
>><br>
>> Thanks,<br>
>><br>
>> Regards,<br>
>> Alain<br>
>><br>
>><br>
>><br>
>><br>
>><br>
><br>
><br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>