[Vm-beginners] Re: [Vm-dev] How can I generate Cog ?

Mariano Martinez Peck marianopeck at gmail.com
Thu Dec 2 10:20:54 UTC 2010


Thanks JB.

On Thu, Dec 2, 2010 at 11:02 AM, Jean Baptiste Arnaud <
jbaptiste.arnaud at gmail.com> wrote:

> yesterday, i forward you the fix to do to compile Cog, the fix is send to
> Eliot and will be integrated soon,
>
> Process to do:
> - Load Cog With the configurationOfCog , proceed all the warnings (if you
> can remove the Warnings).
>

This is sooo cool!!!
Thanks for doing this conf, now I can use it in my pharo image :)


>
>
- checkout the repository at http://www.squeakvm.org/svn/squeak/branches/Cog
> - generate source but exclude the MiscPrimitivePlugin (or fix it if you
> have time).
>


How can I exclude a plugin from being generated?

Thanks!

Mariano



> go in macbuild folder
> - Fix the library file :
>
>   - sq.h
> - SoundPlugin.h or sqMacUnixInterfaceSound.c
> - sqMacWindowUniversal.c or HostWindowPlugin.h
>
> (How is put at the en of the mail)
> -Fix the mvm file (just replace makevm by ./makevm, if you don't have . in
> your Path).
> -run the command ./mvm -A
> And,Taddaa you have 3 VM cog:
> Debug,Fast,Assert
>
> If you want to have the simulator working you need to do compile
> the BochsIA32Plugin but it's well explain in the HowToBuild File.
> If you have any problem ask me.
>
>
> PS : the problem of the library is conflicting type you can resolve that by
> changing some method
>
>
> In : sq.h
> From :
> sqInt readImageFromFileHeapSizeStartingAt(sqImageFile f, usqInt
>  desiredHeapSize, squeakFileOffsetType imageOffset);
> To:
> sqInt readImageFromFileHeapSizeStartingAt(sqImageFile  f, sqInt
>  desiredHeapSize, squeakFileOffsetType  imageOffset);
>
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> SoundPlugin.h :
> sqInt snd_InsertSamplesFromLeadTime(sqInt frameCount, void *srcBufPtr,
> sqInt samplesOfLeadTime)
>
> sqMacUnixInterfaceSound.c :
> int snd_InsertSamplesFromLeadTime(int frameCount, int srcBufPtr, int
>  samplesOfLeadTime)
>
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> SoundPlugin.h :
> sqInt snd_PlaySamplesFromAtLength(sqInt frameCount, void *srcBufPtr, sqInt
>  startIndex)
>
> sqMacUnixInterfaceSound.c :
> int snd_PlaySamplesFromAtLength(int frameCount, int arrayIndex, int
>  startIndex)
>
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> SoundPlugin.h
> sqInt snd_RecordSamplesIntoAtLength(void *buf, sqInt startSliceIndex,
> sqInt bufferSizeInBytes)
>
> sqMacUnixInterfaceSound.c :
> int snd_RecordSamplesIntoAtLength(int buf, int startSliceIndex, int
>  bufferSizeInBytes)
>
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> SoundPlugin.h
> void snd_SetRecordLevel(sqInt level)
>
> sqMacUnixInterfaceSound.c :
> int  snd_SetRecordLevel(int level)
>
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> sqMacWindowUniversal.c
> int ioShowDisplayOnWindow(
> unsigned int*  dispBitsIndex, int width, int height, int depth,
> int affectedL, int affectedR, int affectedT, int affectedB, int
> windowIndex)
> HostWindowPlugin.h
> int ioShowDisplayOnWindow(
> unsigned char *dispBitsIndex, int width, int height, int depth,
> int affectedL, int affectedR, int affectedT, int affectedB,int
> windowIndex);
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-beginners/attachments/20101202/0e56bbd3/attachment.htm


More information about the VM-beginners mailing list