[ITK] Compile ITK 4.7.0 with System HDF5

Matt McCormick matt.mccormick at kitware.com
Wed Feb 18 21:21:37 EST 2015


Hi Mike,

More guidance may be required when configuring against a system HDF5.
HDF5 currently uses CMake as a secondary build system configuration,
and some of its configurations could be improved.

Setting HDF5_DIR on the first configure may help.  Also, helping
upstream improve their CMake configuration is a good idea :-).  CMake
has every improving guidance on cmake packages [1].

Thanks,
Matt

[1] http://www.cmake.org/cmake/help/v3.2/manual/cmake-packages.7.html

On Wed, Feb 18, 2015 at 6:34 PM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
> I have recently built HDF5 version 1.8.14 on my Windows 8.1 machine using
> Visual Studio 2013 compilers. Now when I configure ITK 4.7.1 to build using
> the "System HDF5" it picks up the installation of HDF5-1.8.14 in the
> C:/Users/mjackson/Workspace/hdf5-1.8.14 instead of the actual installation
> location of C:/DREAM3D_SDK/hdf5-1.8.14
>
> Then when I attempt to actually compile ITK I get a compile error that says
> it can not find include file "H5Cpp.h".
>
> So I rerun CMake and set the HDF5_DIR to
> C:/DREAM3D_SDK/hdf5-1.8.14/cmake/hdf5 and configure.
>
> I have also noticed that I have to manually set the HDF5_LIBRARIES to
> include both the debug and release versions of the libraries.
>
> I have never had to manually enter all this kind of information before with
> CMake projects. I am wondering if I just missing something simple with HDF5?
>
> Thanks
> _________________________________________________________
> Mike Jackson                  mike.jackson at bluequartz.net
> BlueQuartz Software                    www.bluequartz.net
> Principal Software Engineer                  Dayton, Ohio
>
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>


More information about the Community mailing list