<div dir="ltr"><div dir="ltr">On Mon, Jul 15, 2019 at 8:03 PM Xinghua Hao via petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov">petsc-dev@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><h1 style="margin:0in 0in 0.0001pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-weight:normal"><font face="georgia, serif" size="2">We used to install it within WSL(<span style="color:black">Windows Subsystem for Linux</span>)  and I just transferred to a Docker container
environment. It works pretty well on both of this two. So I believe using any
other kind of intermediate level(like Cygwin) to simulate a Linux-like environment would do nothing better.</font></span></h1><div><span style="font-weight:normal"><font face="georgia, serif"><br></font></span></div><h1 style="margin:0in 0in 0.0001pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><font face="georgia, serif" size="2"><span style="font-weight:normal">The only question(may sound a little stupid) I am still
curious about is that why can’t we directly compile PETCs on Windows? Since we
write PETCs </span><span style="font-weight:normal">in</span><span style="font-weight:normal"> languages compilable
cross</span><span style="font-weight:normal">-</span><span style="font-weight:normal">platform, this should not be where the problems come
from. </span></font></h1><h1 style="margin:0in 0in 0.0001pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><font face="georgia, serif" size="2"><span style="font-weight:normal">So could you offer me some examples which show the
PETCs is heavily depended on Linux environment? Some high-level ideas or
instructions guid</span><span style="font-weight:normal">ing</span><span style="font-weight:normal"> me to look
for them myself are also appreciated.</span></font></h1><h1 style="margin:0in 0in 0.0001pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">







</h1><h1 style="margin:0in 0in 0.0001pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-weight:normal"><font face="georgia, serif" size="2">What’s more, is it possible for us to modify the
source code to compile it directly on Windows? Is it practical?</font></span></h1></div></blockquote><div><br></div><div>This is not a source code problem. There are two main stumbling blocks:</div><div><br></div><div>  1) Windows compilers</div><div><br></div><div>       They take options in a very different way. We have the 'win32fe' compiler wrapper to handle this.</div><div><br></div><div>  2) System tools</div><div><br></div><div>      This is the main problem. We need tools that interact with the system. Cygwin is mainly used to provide the bin-utils</div><div>      package, which allows our build system to function. We use Python, make (not nmake), and also system utilities.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span style="font-weight:normal"><font face="georgia, serif" size="2">Thanks,</font></span></div><div><font face="georgia, serif">Xinghua</font></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>