<style>p {margin:0 0 14px 0}.default-font-1747286136793 {font-size: 14px;font-family: 宋体, arial, Verdana, sans-serif}</style><div class="default-font-1747286136793"><style>p {margin:0 0 14px 0}.default-font-1699420820908 {font-size: 14px;font-family: 宋体, arial, Verdana, sans-serif}</style>
<div class="default-font-1699420820908">
<span style="font-size:14px;text-wrap:nowrap;">Hello,</span><br>
<span style="font-size:14px;text-wrap:nowrap;">Recently I try successfully to install PETSc with Cygwin and Visual Studio on Windows10 plateform(with external packages metis and parmetis).</span>
</div>
<div class="default-font-1699420820908">
<span style="font-size:14px;text-wrap:nowrap;"><br>
</span>
</div>
<div class="default-font-1699420820908">
<span style="text-wrap-mode:nowrap;">Now I want to use hdf5, so I re-configure the PETSc on the cygwin with </span><span style="font-size:14px;"><span style="font-family:SimSun, 宋体, STSong;font-size:14px;"><span style="background-color:#FFFFFF;color:#222832;font-family:SimSun, 宋体, STSong;font-size:14px;">Native Microsoft/Intel Windows Compilers.</span><span style="text-wrap-mode:nowrap;font-family:SimSun, 宋体, STSong;font-size:14px;"><br>
</span></span></span><span style="text-wrap-mode:nowrap;"></span>
</div>
<div class="default-font-1699420820908">
<span style="text-wrap-mode:nowrap;"></span>
</div>
<div class="default-font-1699420820908">
<span style="font-size:14px;text-wrap:nowrap;">The softwares/packages used below:</span><br>
<span style="font-size:14px;text-wrap:nowrap;">1. PETSc: version 3.23.2</span><br>
<span style="font-size:14px;text-wrap:nowrap;">2. VS: version 2022 </span><br>
<span style="font-size:14px;text-wrap:nowrap;">3. Intel MPI: download Intel oneAPI Base Toolkit and HPC Toolkit</span><br>
<span style="font-size:14px;text-wrap:nowrap;">4. Cygwin</span><br>
<br>
<span style="font-size:14px;text-wrap:nowrap;">And the compiler option in configuration is:</span><br>
<span style="font-size:14px;text-wrap:nowrap;"></span>./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<br>
<div>
<br>
</div>
<span style="font-size:14px;text-wrap:nowrap;"></span>
</div>
<div class="default-font-1699420820908">
<span style="font-size:14px;text-wrap:nowrap;"><br>
</span><br>
<span style="font-size:14px;text-wrap:nowrap;">However it return an error:</span>
</div>
<div class="default-font-1699420820908">
<span style="text-wrap-mode:nowrap;"><br>
</span> <span style="font-size:14px;text-wrap:nowrap;"></span> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>
---------------------------------------------------------------------------------------------<br>
External package zlib does not support --download-zlib with Microsoft compilers<br>
*********************************************************************************************
</div>
<div class="default-font-1699420820908">
<span style="text-wrap-mode:wrap;">---------------------------------------------------------------------------------------------</span><br style="text-wrap-mode:wrap;">
<span style="text-wrap-mode:wrap;"> External package hdf5 </span><span style="text-wrap-mode:wrap;">does not support --download-hdf5 with Microsoft compilers</span><br>
<div>
<br>
</div>
<span style="font-size:14px;text-wrap:nowrap;"></span><br>
<span style="font-size:14px;text-wrap:nowrap;">The configure.log is attached.<br>
</span>
<p style="font-size:14px;">
<br>
</p>
<p style="font-size:14px;">
It seem that I can't use <span style="color:#222832;font-family:SimSun, 宋体, STSong;text-wrap-mode:wrap;background-color:#FFFFFF;">Microsoft/Intel Windows Compilers to install hdf5, and </span>
</p>
<ul class="simple" style="box-sizing:border-box;padding-left:2rem;margin:0.4em 1.4rem 0px;padding-inline-start:2rem;color:#222832;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:16px;text-wrap-mode:wrap;">
<li style="box-sizing:border-box;">
<p style="box-sizing:border-box;margin-bottom:0px;font-size:1em;">
Libraries built with Cygwin/GNU compilers are <span style="box-sizing:border-box;font-weight:bolder;margin-bottom:0px;">not</span> compatible and cannot be linked with Microsoft or Intel compilers. <span style="font-size:14px;"><span style="font-family:SimSun, 宋体, STSong;font-size:14px;">But I do use Intel compiler on the Visual studio. </span></span>
</p>
</li>
</ul>
<p style="box-sizing:border-box;margin-bottom:0px;font-size:1em;">
<br>
</p>
<p style="font-size:14px;">
<span style="color:#222832;font-family:SimSun, 宋体, STSong;text-wrap-mode:wrap;background-color:#FFFFFF;"></span>
</p>
<p style="font-size:14px;">
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.
</p>
<br>
<span style="font-size:14px;text-wrap:nowrap;">Looking forward your reply!</span><br>
<span style="font-size:14px;text-wrap:nowrap;"><br>
</span><br>
<span style="font-size:14px;text-wrap:nowrap;">sinserely,</span><br>
<span style="font-size:14px;text-wrap:nowrap;">Cheng.</span><br>
<span style="font-size:16px;"></span>
</div></div>