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

Levente Uzonyi leves at elte.hu
Tue Nov 2 16:45:03 UTC 2010


On Tue, 2 Nov 2010, Alain_Rastoul wrote:

> I wanted to load ODBC package and ExternalStructure was undefined so
> I loaded FFI that contains it.
> How can I load this package ?

Open your image and evaluate this script:

Installer squeak
 	project: 'FFI';
 	install: 'FFI-Pools';
 	install: 'FFI-Kernel';
 	install: 'FFI-Tests';
 	install: 'FFI-Win32';
 	install: 'FFI-MacOS';
 	install: 'FFI-Unix'.
Installer squeaksource
 	project: 'ODBC';
 	install: 'ODBC'.


Levente

>
> Thank you for your answer
>
> alain
>
>
> "Levente Uzonyi" <leves at elte.hu> a écrit dans le message de news:
> Pine.LNX.4.64.1011010334140.26379 at login03.caesar.elte.hu...
> On Mon, 1 Nov 2010, Alain_Rastoul wrote:
>
>> I didn"t understood your last message there was not toolchain here .. this
>> turn to be an obsession ;-).
>
> I didn't mention any toolchain, but you only need cygwin.
>
>> but  it is interesting, the last build of cog/ff has the same problem than
>> my build:
>>
>> When I evaluate Win32Window class>>coloredEllipses
>> I have SmallInteger(Object)>>doesNotUnderstand: #getHDCDuring:
>>
>> Win32Window getFocus evaluates to a integer handle, not a Win32Window.
>> :o(
>
> Erm. If you loaded the FFI from monticello as you described in your last
> mail, then it won't work. You should not load any FFI into the Cog VMMaker
> image. The image contains a working FFI. If you load another, then it will
> break.
>
>
> Levente
>
>>
>>
>> Regards,
>>
>> Alain
>>
>>
>> "Alain_Rastoul" <alr.dev at free.fr> a écrit dans le message de news:
>> iakprr$ln1$1 at dough.gmane.org...
>>> Thank you Levente
>>>
>>> I've loaded FFI with monticello repository from the place you mentioned.
>>> I didn't know that the cygwin toolchain was here, I download it and I'll
>>> try again.
>>>
>>> Thanks again
>>>
>>> Alain
>>>
>>> "Levente Uzonyi" <leves at elte.hu> a écrit dans le message de news:
>>> Pine.LNX.4.64.1010311926070.22213 at login03.caesar.elte.hu...
>>>> On Sun, 31 Oct 2010, Alain_Rastoul 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 ?
>>>>
>>>> For building CogVM you should use the existing plugin code in the Cog
>>>> VMMaker image (so don't load anything there).
>>>> To use FFI you should load the code available at
>>>> http://source.squeak.org/FFI .
>>>> Cog FFI is not Alien FFI, AFAIK it's a modified/extended version of the
>>>> original FFI.
>>>>
>>>>>
>>>>> 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.
>>>>
>>>> I doubt anyone tested it using gcc 4.5, so there may be problems. The
>>>> "official" windows build uses gcc 3.4.4. You can get the current latest
>>>> build here: http://www.mirandabanda.org/files/Cog/VM/VM.r2316/cogwin.zip
>>>> .
>>>>
>>>>
>>>> Levente
>>>>
>>>> snip
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
>
> --------------------------------------------------------------------------------
>
>
>>
>>
>
>
>
>
>


More information about the Squeak-dev mailing list