This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

cannot find hdf5 when building on ubuntu 15.04

0 votes

Hi all,

I am getting the error from CMake

Could NOT find HDF5 (missing: HDF5_INCLUDE_DIRS)

when building with dorsal. I have libhdf5-openmpi-dev installed. I tried adding

default HDF5_INCLUDE_DIRS=/usr/include/hdf5/openmpi

with no success. This used to work on the previous version of ubuntu.

asked May 21, 2015 by chaffra FEniCS User (1,830 points)

1 Answer

+1 vote

There have been a lot of changes in the HDF5 packages since Ubuntu 14.10. Try to pass -DHDF5_C_COMPILER_EXECUTABLE:FILEPATH=/usr/bin/h5pcc.openmpi when running cmake. Make sure you remove the CMake cache files first.

answered May 22, 2015 by johannr FEniCS Expert (17,350 points)
...