[petsc-dev] Is there any possibility to compile PETCs directly on Windows?

Balay, Satish balay at mcs.anl.gov
Mon Jul 15 21:56:43 CDT 2019

We use cygwin as build tools for our native windows build - i.e using
MS/Intel windows compilers.

Our build tools are unix centric [here we use cygwin tools] - but
PETSc code compiles and builds fine as native binaries.


On Mon, 15 Jul 2019, Xinghua Hao via petsc-dev wrote:

> We used to install it within WSL(Windows Subsystem for Linux)  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.
> 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 in
> languages compilable cross-platform, this should not be where the problems
> come from. So could you offer me some examples which show the PETCs is
> heavily depended on Linux environment? Some high-level ideas or
> instructions guiding me to look for them myself are also appreciated. What’s
> more, is it possible for us to modify the source code to compile it
> directly on Windows? Is it practical?
> Thanks,
> Xinghua

More information about the petsc-dev mailing list