<div dir="ltr">I have compiled CGNS3.3 with hdf from PETSc but not using cmake from CGNS. Here is what I used:<div><div><br></div><div>git clone <a href="https://github.com/CGNS/CGNS.git">https://github.com/CGNS/CGNS.git</a></div><div><br></div><div>cd CGNS/src</div><div>export CC=mpicc</div><div>export FC=mpif90</div><div>export FCFLAGS='-fPIC -O3'</div><div>export CFLAGS='-fPIC -O3'</div><div>export LIBS='-lz -ldl'</div><div><br></div><div>./configure --with-hdf5=$PETSC_DIR/$PETSC_ARCH --enable-64bit --prefix=/u/wk/gkenway/.local --enable-parallel --enable-cgnstools=yes --enable-shared</div><div>make -j 10</div></div><div><br></div><div>Hope that helps</div><div>Gaetan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 29, 2018 at 9:37 AM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">--download-hdf5 uses 'autoconf' build of hdf5 - and not cmake<br>
build. [hdf5 provides both build tools].<br>
<br>
This must be the reason why hdf5Config.cmake and hdf5-config.cmake<br>
files might be missing.<br>
<br>
You might be able to install hdf5 manually with cmake - and then build<br>
cgns-3.3.1 with it.<br>
<span class="HOEnZb"><font color="#888888"><br>
Satish<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Thu, 29 Mar 2018, Klaij, Christiaan wrote:<br>
<br>
> Satish,<br>
><br>
> I've build petsc-3.8.3 with --download-hdf5 and this works<br>
> fine. Now, I'm trying to compile cgns-3.3.1 and have it use the<br>
> hdf5 library from petsc. Therefore, in the cmake configure I have<br>
> set this option<br>
><br>
> -D HDF5_DIR=/path/to/petsc/hdf5<br>
><br>
> but cmake gives this message:<br>
><br>
> CMake Warning at CMakeLists.txt:207 (find_package):<br>
> Could not find a package configuration file provided by "HDF5" with any of<br>
> the following names:<br>
><br>
> hdf5Config.cmake<br>
> hdf5-config.cmake<br>
><br>
> and then falls back to the system's hdf5. Indeed there are no<br>
> such files in /path/to/petsc/hdf5. Any idea on how to proceed<br>
> from here?<br>
><br>
> Chris<br>
><br>
><br>
> dr. ir. Christiaan Klaij | Senior Researcher | Research & Development<br>
> MARIN | T +31 317 49 33 44 | mailto:<a href="mailto:C.Klaij@marin.nl">C.Klaij@marin.nl</a> | <a href="http://www.marin.nl" rel="noreferrer" target="_blank">http://www.marin.nl</a><br>
><br>
> MARIN news: <a href="http://www.marin.nl/web/News/News-items/Comfort-draft-for-semisubmersible-yachts.htm" rel="noreferrer" target="_blank">http://www.marin.nl/web/News/<wbr>News-items/Comfort-draft-for-<wbr>semisubmersible-yachts.htm</a><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>