On Thu, May 15, 2025 at 9:16 AM 程奔 <ctcheng...@mail.scut.edu.cn> wrote:
> Hello, > Recently I try successfully to install PETSc with Cygwin and Visual Studio > on Windows10 plateform(with external packages metis and parmetis). > > Now I want to use hdf5, so I re-configure the PETSc on the cygwin with Native > Microsoft/Intel Windows Compilers. > The softwares/packages used below: > 1. PETSc: version 3.23.2 > 2. VS: version 2022 > 3. Intel MPI: download Intel oneAPI Base Toolkit and HPC Toolkit > 4. Cygwin > > And the compiler option in configuration is: > ./configure --with-debugging=0 --with-cc=cl --with-fc=ifort > --with-cxx=cl > --with-blaslapack-lib=-L/cygdrive/g/Intel/oneAPI/mkl/2023.2.0/lib/intel64 > mkl-intel-lp64-dll.lib mkl-sequential-dll.lib mkl-core-dll.lib > > --download-fblaslapack=/cygdrive/g/mypetsc/petsc-pkg-fblaslapack-e8a03f57d64c.tar.gz > --with-mpi-include=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/include > --with-mpi-lib=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/lib/release/impi.lib > --with-mpiexec=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/bin/mpiexec > -localonly > --download-metis=/cygdrive/g/mypetsc/petsc-pkg-metis-8b194fdf0966.tar.gz > --download-parmetis=/cygdrive/g/mypetsc/petsc-pkg-parmetis-f5e3aab04fd5.tar.gz > --with-strict-petscerrorcode=0 --with-64-bit-indices > --download-hdf5=/cygdrive/g/mypetsc/hdf5-1.14.3-p1.tar.bz2 > --download-zlib=/cygdrive/g/mypetsc/zlib-1.3.1.tar.gz > > > > However it return an error: > > UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for > details): > > --------------------------------------------------------------------------------------------- > External package zlib does not support --download-zlib with > Microsoft compilers > ********************************************************************************************* > > > --------------------------------------------------------------------------------------------- > External package hdf5 does not support --download-hdf5 with > Microsoft compilers > > > The configure.log is attached. > > > It seem that I can't use Microsoft/Intel Windows Compilers to install > hdf5, and > > - > > Libraries built with Cygwin/GNU compilers are not compatible and > cannot be linked with Microsoft or Intel compilers. But I do use > Intel compiler on the Visual studio. > > > > > So I wrrit this email to report my problem and ask for your help that how > can I use PETSc with hdf5 on the Windows. > 1. You can build under WSL2, which is what I would recommend. 2. If you really want to use Windows compilers, you will have to build HDF5 yourself. Thanks, Matt > Looking forward your reply! > > > sinserely, > Cheng. > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!YEvzHiQxBu4jH7P_5mh66tM7zYwZp9qXzbyMwybgRUfsrNT9wBHxgW8-2A69zpap_nYgRiP51tb3JrWE7kke$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!YEvzHiQxBu4jH7P_5mh66tM7zYwZp9qXzbyMwybgRUfsrNT9wBHxgW8-2A69zpap_nYgRiP51tb3JhXaZZIN$ >