<br><br><div class="gmail_quote">On Tue, Apr 5, 2011 at 9:31 AM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On 4 April 2011 23:28, Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Apr 4, 2011 at 10:48 AM, Igor Stasenko &lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 4 April 2011 09:42, Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Ok. I will commit later the fix.<br>
&gt;&gt;<br>
&gt;&gt; Yes, please do.<br>
&gt;&gt; I cannot manage to do everything, so a help from people is much appreciated :)<br>
&gt;<br>
&gt; I know. I didn&#39;t commit before because I wanted to know your opinion before comminting.<br>
&gt;<br>
&gt; I have modified a couple of things so that now you can do something like this and it works:<br>
&gt;<br>
&gt; CogMacOSConfig new<br>
&gt;     srcDir: &#39;/Users/mariano/src&#39;;<br>
&gt;     platformsDir: &#39;/Users/mariano/bin/platforms&#39;;<br>
&gt;     buildDir: &#39;/Users/mariano/Movies/build&#39;;<br>
&gt;     generateSources; generate.<br>
&gt;<br>
<br>
</div>Yes, it was designed to work like that. Sure not well tested, because<br>
most of the times it is used by taking defaults :)<br>
<div class="im"><br></div></blockquote><div><br>Yes, I can imagine. But to do that, I always need to move a PharoCore image to /build. <br>I have the git/src repository always in a specific directory. And my current Pharo image is somewhere (each time is different). So I just evaluate something like the above and that&#39;s all :)<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
<br>
&gt; I tested in MacOS and it works. I couldn&#39;t test in the rest of the OS. I am afraid I have broken something, so, just in case, I attach here the mcz. I would really appreaciate if you can take a look and if works, upload it to the VMMaker repo.<br>

&gt;<br>
<br>
</div>Thanks, Mariano.<br>
I will take a look. But you just upload it there, and if it works i<br>
will just put it in use.<br></blockquote><div><br>Done.<br>I couldn&#39;t test anywhere than MacOS.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><div></div><div class="h5"><br>
<br>
&gt; Name: CMakeVMMaker-MarianoMartinezPeck.66<br>
&gt; Author: MarianoMartinezPeck<br>
&gt; Time: 4 April 2011, 11:27:55 pm<br>
&gt; UUID: ab7eacee-e6e8-4149-8507-60235f871297<br>
&gt; Ancestors: CMakeVMMaker-MarianoMartinezPeck.65<br>
&gt;<br>
&gt; Fixed the CMMake so that #srcDir:  #platformsDir:  and #buildDir:   works.<br>
&gt; Example:<br>
&gt;<br>
&gt; CogMacOSConfig new<br>
&gt;     srcDir: &#39;/Users/mariano/src&#39;;<br>
&gt;     platformsDir: &#39;/Users/mariano/bin/platforms&#39;;<br>
&gt;     buildDir: &#39;/Users/mariano/Movies/build&#39;;<br>
&gt;     generateSources; generate.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Mariano<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt; Cheers<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Mariano<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Mon, Apr 4, 2011 at 3:00 AM, Igor Stasenko &lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On 3 April 2011 11:45, Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt;<br>
&gt;&gt; &gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Hi Igor. I was thinking a couple of things:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; 1) So...once I hace download anything from GIT, what I always need to do<br>
&gt;&gt; &gt;&gt; &gt; is:<br>
&gt;&gt; &gt;&gt; &gt; a) take a pharo core 1.3<br>
&gt;&gt; &gt;&gt; &gt; b) open the LoadVMMaker.st  so that I can see which versions of<br>
&gt;&gt; &gt;&gt; &gt; metacello and cmake I need.<br>
&gt;&gt; &gt;&gt; &gt; c) evaluate that over the pharo image<br>
&gt;&gt; &gt;&gt; &gt; d) move my image to /build  so that it finds the /src and /platform by<br>
&gt;&gt; &gt;&gt; &gt; default<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; So...I wonder what are the reason of not having such PharoCore image<br>
&gt;&gt; &gt;&gt; &gt; already commited in GIT under /image.  You can even save it with a workspace<br>
&gt;&gt; &gt;&gt; &gt; opened with the code of LoadVMMaker.st<br>
&gt;&gt; &gt;&gt; &gt; is it just the size of it?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; If I want to do it for myself, what is the best strategy?  clone to my<br>
&gt;&gt; &gt;&gt; &gt; own fork, add the image there and then just pull the changes?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; 2) #prepareVMMaker does this:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; prepareVMMaker<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;     | maker allPlugins |<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;     maker := VMMaker forPlatform: &#39;Cross&#39;.<br>
&gt;&gt; &gt;&gt; &gt;     maker sourceDirectoryName: (self srcDir assureExistence fullName).<br>
&gt;&gt; &gt;&gt; &gt;     maker platformRootDirectoryName: (self topDir / &#39;platforms&#39; )<br>
&gt;&gt; &gt;&gt; &gt; fullName.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; And<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; srcDir<br>
&gt;&gt; &gt;&gt; &gt;     &quot;Answer the value of srcDir&quot;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;     ^ srcDir ifNil: [ srcDir := self topDir / &#39;src&#39; ]<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; This is cool because I can script the cong to use another src. But you<br>
&gt;&gt; &gt;&gt; &gt; don&#39;t do the same for &#39;platform&#39;. So I cannot do:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; CogDebugMacOSConfig  new<br>
&gt;&gt; &gt;&gt; &gt;     srcDir: &#39;myFolder&#39;;<br>
&gt;&gt; &gt;&gt; &gt;  platformsDir: &#39;myPlatofrm&#39;;<br>
&gt;&gt; &gt;&gt; &gt;      generateSources;<br>
&gt;&gt; &gt;&gt; &gt;     generate.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Since the platform directory will be overwritten.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; probably a mistake. platforms dir should also be configurable. and it<br>
&gt;&gt; &gt;&gt; should use it if it set.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Cheers<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Mariano<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Best regards,<br>
&gt;&gt; &gt;&gt; Igor Stasenko AKA sig.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Best regards,<br>
&gt;&gt; Igor Stasenko AKA sig.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Mariano<br>
&gt; <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Best regards,<br>
Igor Stasenko AKA sig.<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>