<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>It is this change, we need to cross compile before, a simple solution to integrate that.&nbsp;</div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><div style="word-wrap: break-word; "><div><div>CMakeGenerator&gt;&gt;#printHeader</div><div><span style="white-space: pre-wrap; ">        </span></div><div><span style="white-space: pre-wrap; ">        </span>self puts: '# This is automatically generated file using ', self configurationName, ' on ',</div><div><span style="white-space: pre-wrap; ">                </span>Date current asString, ' ' , Time current asString;</div><div><span style="white-space: pre-wrap; ">                </span>puts: 'cmake_minimum_required(VERSION 2.6.2)'.</div><div><span style="white-space: pre-wrap; ">                </span></div><div><span style="white-space: pre-wrap; ">        </span>self config requiresDetermineSystem ifTrue: [</div><div><span style="white-space: pre-wrap; ">                </span>self<span style="white-space: pre-wrap; ">        </span>puts: 'include(CMakeDetermineSystem)'.</div><div><span style="white-space: pre-wrap; ">                </span></div><div><span style="white-space: pre-wrap; ">        </span>]</div></div><div><br></div><div>and add in&nbsp;CPlatformConfig</div><div><br></div><div>A method :</div><div>CPlatformConfig&gt;&gt;#requiresDetermineSystem</div><div><span style="white-space: pre-wrap; ">        </span>^true</div><div><br></div><div>Create a WindowConfiguration as you wish and create a method&nbsp;</div><div><br></div><div>MyWindowConfiguration&gt;&gt;#requiresDetermineSystem</div><div><span style="white-space: pre-wrap; ">        </span>^false</div><div><br></div><div><div><br></div><div><br><div><div>On Dec 12, 2011, at 4:42 PM, Igor Stasenko wrote:</div><br><blockquote type="cite"><div><br>On 12 December 2011 16:33, Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt; wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi JB. Could you please tell me how should I run cmake to build for windows? Is there a specific generator?&nbsp; because if I run:<br></blockquote><blockquote type="cite"><br></blockquote>since you cross-compiling under unix, you use unix makefiles, which is default.<br>but to generate windows executable, you need different settings in cmake config.<br>like different compilation target (win32 executable, not ELF) etc.<br><br>JB could tell you more :)<br><br><blockquote type="cite">cmake --help<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">at the end the only generators I see are:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Generators<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The following generators are available on this platform:<br></blockquote><blockquote type="cite">&nbsp; Unix Makefiles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = Generates standard UNIX makefiles.<br></blockquote><blockquote type="cite">&nbsp; Xcode&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = Generate XCode project files.<br></blockquote><blockquote type="cite">&nbsp; CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.<br></blockquote><blockquote type="cite">&nbsp; Eclipse CDT4 - Unix Makefiles<br></blockquote><blockquote type="cite">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = Generates Eclipse CDT 4.0 project files.<br></blockquote><blockquote type="cite">&nbsp; KDevelop3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = Generates KDevelop 3 project files.<br></blockquote><blockquote type="cite">&nbsp; KDevelop3 - Unix Makefiles&nbsp; = Generates KDevelop 3 project files.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Thu, Jul 7, 2011 at 7:07 PM, Jean Baptiste Arnaud &lt;<a href="mailto:jbaptiste.arnaud@gmail.com" target="_blank">jbaptiste.arnaud@gmail.com</a>&gt; wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Since the last Igor ( thank ) update it 's possible to cross compile windows VM(last version) from MacOs and Unix.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Using Mingw and cmake.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Now, i do for Cog, and for ARM9 processor.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">My process imply to fix some window file cause some include are wrong, then it the cross compiler don't find some include beginning by Uppercase(cause the file isn't beginning by uppercase).<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">In /Platform/win32/vm/sqWin32Intel.c<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">#include &lt;float.h&gt;&nbsp;instead &nbsp;#include &lt;Float.h&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">in /Platform/win32/plugin/SocketPlugin/sqWin32NewNet.c<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">#include &lt;ws2tcpip.h&gt;&nbsp;instead&nbsp;#include&nbsp;&lt;Ws2tcpip.h&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Regard<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Jean Baptiste Arnaud<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:jbaptiste.arnaud@gmail.com" target="_blank">jbaptiste.arnaud@gmail.com</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Mariano<br></blockquote><blockquote type="cite"><a href="http://marianopeck.wordpress.com/" target="_blank">http://marianopeck.wordpress.com</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br><br>--&nbsp;<br>Best regards,<br>Igor Stasenko.<br></div></blockquote></div><br><div><div style="word-wrap: break-word; "><div>Regard</div><div>Jean Baptiste Arnaud</div><div><a href="mailto:jbaptiste.arnaud@gmail.com" target="_blank">jbaptiste.arnaud@gmail.com</a></div><div><br></div></div><br><br></div><br></div></div></div><br></blockquote></div><br><br clear="all"><br>--&nbsp;<br>Mariano<br><a href="http://marianopeck.wordpress.com/" target="_blank">http://marianopeck.wordpress.com</a><br><div><br></div><div>On Dec 22, 2011, at 2:12 PM, Esteban Lorenzano wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">ok, I'll see how to integrate it :)<div><br></div><div>cheers,&nbsp;</div><div>Esteban</div><div><br><div><div>El 22/12/2011, a las 9:32a.m., Luc Fabresse escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><div class="gmail_quote">2011/12/22 Luc Fabresse <span dir="ltr">&lt;<a href="mailto:luc.fabresse@gmail.com">luc.fabresse@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Guys,<div>&nbsp;</div><div>&nbsp;Find attached CMakeVMMaker-LucFabresse.143.</div><div>&nbsp;</div><div>What I did:</div><div>&nbsp;- Add hook CPlatformConfig&gt;&gt;printExtraHeader: to be able to change compiler in Config</div><div>&nbsp;- add config CogMTCocoaIOSGCC42Config which forces gcc-4.2 (useful on OSX with XCode 4.2 that now uses llvm backend)</div>

<div>&nbsp;- fix StackCocoaIOSCLANGConfig to use compiler clang&nbsp;<br clear="all"><br></div><div>&nbsp;It seems to work for me ;-)</div><div>&nbsp;Perhaps it could be added in VMMaker repo?&nbsp;</div><div><br></div><div>Cheers,</div><div><br>

</div><div>#Luc<br><br>
</div>
</blockquote></div><br><div>I forgot to say that the other alternative is to use a regular config and the following cmake line:</div><div><br></div><div>cmake -D CMAKE_C_COMPILER=gcc-4.2 -D CMAKE_CXX_COMPILER=g++-4.2 .&nbsp;<br clear="all">
<br></div><div>it may help someone.</div><div><br>#Luc<br></div><div><br></div>
</blockquote></div><br></div></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Regard</div><div>Jean Baptiste Arnaud</div><div><a href="mailto:jbaptiste.arnaud@gmail.com">jbaptiste.arnaud@gmail.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>