[petsc-users] Build PETSc as shared library on Windows ("traditional" build or CMake)

Barry Smith bsmith at mcs.anl.gov
Wed Mar 16 15:27:26 CDT 2016


> On Mar 16, 2016, at 3:22 PM, E. Tadeu <e.tadeu at gmail.com> wrote:
> 
> Thanks Satish,
> 
>   Just to let you know, with a few minor modifications and extra parameters, I've managed to build it using configure under Cygwin, and then, outside cygwin, running non-cygwin cmake inside the "arch-..." folder, targeting MSVC.

  Awesome, can you send any changes you needed to make to PETSc so other users can benefit?

  Barry

> 
> 
> On Mon, Mar 14, 2016 at 6:31 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> you could try precompiled petsc from
> http://www.msic.ch/Downloads/Software
> [its old 3.5 version though]
> 
> We don't have any changes wrt .dlls or cmake on windows..
> 
> Satish
> 
> On Mon, 14 Mar 2016, E. Tadeu wrote:
> 
> > Hi,
> >
> >   What is the current status of building PETSc as a shared library on
> > Windows? It seems non-trivial: `--with-shared-libraries=1` won't work,
> > since Cygwin's `ld` fails, and `win32fe` also fails.
> >
> >   Also, what is the status of building PETSc with CMake on Windows? Perhaps
> > through using CMake it would be easier to generate the .DLL's, but I
> > couldn't find documentation on how to do this.
> >
> >
> >  Thanks!
> > Edson
> >
> 
> 



More information about the petsc-users mailing list