[squeak-dev] Re: building Cog / FFiPrims plgin on windows

Eliot Miranda eliot.miranda at gmail.com
Sun Oct 31 19:31:33 UTC 2010


Hi Alain,

On Sun, Oct 31, 2010 at 10:16 AM, Alain_Rastoul <alr.dev at free.fr> wrote:

> Thanks Levente,
> I have seen lot of discussions about alien FFI, is it what you are talking
> about ?
> or is there another Cog FFI package somewhere else ?
>

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
http://www.squeakvm.org/svn/squeak/branches/Cog/platforms/Cross/plugins/SqueakFFIPrims,
not the platform-specigic directories (e.g.
platforms/unix/plugins/SqueakFFIPrims platforms/win32/plugins/SqueakFFIPrims
which is not used).


>
> Just to mention it, I had to modify some (few minors) incorrect
> declarations in sq.h, HostWindowPlugin.h and sqWin32Backtrace.c in order to
> compile
> with gcc 4.5.
>

can you send me these changes?

TIA
Eliot


>
>
> "Levente Uzonyi" <leves at elte.hu> a écrit dans le message de news:
> Pine.LNX.4.64.1010311708110.22213 at login03.caesar.elte.hu...
> > On Sat, 30 Oct 2010, Alain_Rastoul wrote:
> >
> >> Hi
> >>
> >> I downloaded the Cog trunk , the last FFI version from Monticello, used
> >> the
> >> workspace script to generate the source and build Cog on Windows with
> >> cygwin (gcc 4.5.1).
> >
> > The Cog VMMaker image includes a different FFI implementation (with
> > compatible API), so if you don't load FFI from source.squeak.org then
> > you'll get a working FFI.
> >
> >
> > Levente
> >
> >> Every thing is ok, but the FFI plugin doesn't work.
> >> When I evaluate Win32Window class>>coloredEllipses
> >> I have SmallInteger(Object)>>doesNotUnderstand: #getHDCDuring:
> >> Win32Window getFocus evaluates to a integer handle, not a Win32Window.
> >> I did
> >> (Smalltalk at: #ExternalType) initialize.
> >> (Smalltalk at: #ExternalStructure) compileAllFields.
> >> and also tryed to build only the plugin with Mingw gcc 2.95.2
> >> but I have allways the same problem
> >>
> >> Is  the FFI plugin functional ? am I missing something ?
> >> What version of gcc is ok ?
> >> (the make  CC=gcc-3 LD=gcc-3 DLLWRAP='dllwrap -mno-cygwin --driver-name
> >> gcc-3'
> >> doesn't work)
> >>
> >>
> >> Thanks,
> >>
> >> Regards,
> >> Alain
> >>
> >>
> >>
> >>
> >>
> >
> >
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20101031/36059228/attachment.htm


More information about the Squeak-dev mailing list