[petsc-dev] Configure on Windows
Luis Manuel de Vries
luis.de.vries at amphos21.com
Tue Oct 16 11:44:05 CDT 2012
Hi,
After some tips from Satish, my PETSC-dev library is compiling again.
Thanks!
Perhaps explaining how I did it, might help others:
(assuming that Cygwin is already set up, and Intel Fortran compiler is
installed...)
- Install MPICH2
- Build zlib, szip and HDF5 (1.8.9) using CMake. Make sure you compile them
with
ProjectProperties->C/C++->Code Generation->Runtime
Library->Multi-Threaded (/MT), since MPICH2
is also built that way.
- run configure with the following options (for release version):
$PETSC_DIR/config/configure.py --with-cc='win32fe cl' --with-fc='win32fe
ifort' --with-cxx='win32fe cl' --with-clanguage=c \
LIBS=/cygdrive/c/yourdir/zlib-1.2.5/bin/Release/libzlib.lib \
--CPPFLAGS=-D_CRT_SECURE_NO_DEPRECATE \
--with-mpi-dir=/cygdrive/C/Progra~2/MPICH2
--with-blas-lapack-dir=/cygdrive/c/Progra~2/Intel/Compos~1/mkl/lib/ia32 \
--ignore-cygwin-link --with-valgrind=0 --with-c2html=0 --download-sowing=1 \
--with-hdf5=1 --with-hdf5-include=\[/cygdrive/c/yourdir/hdf5-1.8.9/src,\
/cygdrive/c/yourdir/hdf5-1.8.9/windows/src\] \
--with-hdf5-lib=\[/cygdrive/c/yourdir/hdf5-1.8.9_Build/bin/Release/hdf5.lib,\
/cygdrive/c/yourdir/hdf5-1.8.9_Build/bin/Release/hdf5_fortran.lib] \
--with-debugging=0 --with-petsc-arch=cygwin_hdf189_rel_24559
Probably there are some settings here specific for my needs, but it might
help to get you started...
Saludos,
Luis
On 15 October 2012 17:05, Satish Balay <balay at mcs.anl.gov> wrote:
> please send relavent logs [configure.log] to petsc-maint
>
> Satish
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20121016/e48274eb/attachment.html>
More information about the petsc-dev
mailing list