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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Mariano Martinez Peck
Thanks JB.

On Thu, Dec 2, 2010 at 11:02 AM, Jean Baptiste Arnaud <[hidden email]> 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 :)
 
 
- 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 widthint heightint depth,
int affectedLint affectedRint affectedTint affectedBint 
windowIndex)
HostWindowPlugin.h
int ioShowDisplayOnWindow( 
unsigned char *dispBitsIndex, int widthint heightint depth,
int affectedLint affectedRint affectedTint affectedB,int
windowIndex);





_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners