<div dir="ltr">Hi,<div><br></div><div>I'm currently writing a reader plugin for paraview that requires hdf5 to be built with parallel support. I have successfully built hdf5 with parallel support outside the superbuild but I can't get superbuild to use those libraries nor can I figure out a way to tell the super build to compile HDF5 with parallel support.</div><div><br></div><div>I'm hoping for advice on how to either point the super build to my own version of hdf5 or enabling parallel support for the version super build uses.</div><div><br></div><div>Here's what I've tried so far:</div><div><br></div><div>Compiling hdf5 (1.8.16) outside paraview, using cmake and enabling parallel support wasn't very complicated. You just have to set the following variables:</div><div><br></div><div>-DHDF5_ENABLE_PARALLEL:BOOL=ON<br></div><div><div>-DMPIEXEC_MAX_NUMPROCS:STRING=4</div><div>-DHDF5_BUILD_CPP_LIB:BOOL=OFF<br></div><div>-DBUILD_SHARED_LIBS:BOOL=ON</div></div><div><br></div><div>I have tried defining those variables with ccmake when configuring Superbuild. Then turn on paraview and hdf5 and leave everything else at the default. HDF gets built but it seems like the variables aren't passed along. Parrallel support is not enabled, a "grep PARALLEL" on H5pubconf.h should return: </div><div>#define H5_HAVE_PARALLEL 1<br></div><div>but returns </div><div>#undef H5_HAVE_PARALLEL <br></div><div><br></div><div>I'm think I'm missing something really simple here but I'm not used to cmake. Any advice is greatly appreciated.</div><div><br></div><div><br></div><div>My second set of tries was to point the superbuild to my own compiled version of HDF5 but I can't get cmake to find the library. I'm using ccmake and I only enable paraview and hdf5 then set USE_SYSTEM_hdf5=ON, hit c and ccmake will ask for HDF5_ROOT_DIR and HDF5_INCLUDE_DIRS. I've tried pointing the ROOT_DIR where I installed hdf5 but I get an error message:</div><div><br></div><div><div>CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):</div><div>  Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS)</div><div>Call Stack (most recent call first):</div><div>  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)</div><div>  /usr/share/cmake/Modules/FindHDF5.cmake:398 (find_package_handle_standard_args)</div><div>  VTK/CMake/FindHDF5.cmake:6 (include)</div><div>  VTK/CMake/vtkModuleMacros.cmake:843 (find_package)</div><div>  VTK/ThirdParty/hdf5/CMakeLists.txt:1 (vtk_module_third_party)</div></div><div><br></div><div><br></div><div>So I tried to set HDF5_LIBRARIES to the lib directory and HDF_INCLUDE_DIRS to where HDF5 put hdf5-config.cmake but then ccmake fails while configuring with:</div><div><br></div><div><div> CMake Error at  .../installs/hdf5-cmake/share/cmake/FindHDF5.cmake:85 (include):</div><div>   include could not find load file:</div><div><br></div><div>     ..../installs/hdf5-cmake/hdf5-config.cmake</div></div><div><br></div><div><br></div><div>Which I consider a bit weird since I've set HDF5_INCLUDE_DIRS=.../installs/hdf5-cmake/share/cmake</div><div>which is where hdf5-config.cmake is.</div><div><br></div><div>Any advice is greatly appreciated. </div><div><br></div><div>Best Regards</div><div>Nicolas Edh</div></div>