when I build slicer on ubuntu1804 with latest code, some error happens.
[ 74%] Building C object Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/hdf5-shared.dir/__/shared/H5Tinit.c.o
In file included from /home/chenrf/Projects/medical/slicer/build/ITK-build/Modules/ThirdParty/HDF5/src/itkhdf5/shared/H5Tinit.c:82:0:
/home/chenrf/Projects/medical/slicer/build/ITK/Modules/ThirdParty/HDF5/src/itkhdf5/src/H5Tpkg.h:23:2: error: #error "Do not include this file outside the H5T package!"
#error "Do not include this file outside the H5T package!"
^~~~~
Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/hdf5-shared.dir/build.make:3944: recipe for target 'Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/hdf5-shared.dir/__/shared/H5Tinit.c.o' failed
make[5]: *** [Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/hdf5-shared.dir/__/shared/H5Tinit.c.o] Error 1
CMakeFiles/Makefile2:6965: recipe for target 'Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/hdf5-shared.dir/all' failed
make[4]: *** [Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/hdf5-shared.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
ITK:
$ git branch
* (HEAD detached at 35e6f54643)
welcome
Slicer:
git reflog
aa245a9d5 (HEAD -> master, origin/master, origin/HEAD) HEAD@{0}: pull: Fast-forward
ced36e5fa (origin/nightly-master) HEAD@{1}: pull: Fast-forward
1b7888e90 HEAD@{2}: pull: Fast-forward
cmake
cmake --version
cmake version 3.15.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
How can I fix this bug?