<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">HDF5 1.8.14 generates
those cmake files that are needed but the version included with ITK is
only 1.8.12 which did not have all of the newer cmake improvements in
1.8.14. The issue is that I had to set all of the HDF5 related variables
which even for someone who has lots of CMake experience can be an
issue. The biggest problem I had was that even though I would set
HDF5_DIR to one directory, ITK seemed to simply ignore those settings
(made through theCMake-GUI app) and use "something else". I just have no
idea where it came up with the paths that ITK decided to use. After
lots of changing things and lots of iterations I was finally able to
convince ITK to compile against the System HDF5. One of the issues was
that once I got paths set and sticking from configure to configure I
still had to manually fill out:<br>
<br>
HDF5_C_LIBRARY =
debug;C:/DREAM3D_SDK/hdf5-1.8.14/lib/hdf5_D.lib;optimized;C:/DREAM3D_SDK/hdf5-1.8.14/lib/hdf5.lib<br>
<br>
as it was only picking up the Debug libraries. And since I'm on Visual
Studio linking a release build of something against a Debug build of
something is bad news.<br>
<br>
How hard is it going to be to update the ITK build system with the newer
version of HDF5? Can it try the "new" way to find HDF5 with
Find_Package() and a fall back to previous behavior if not found? The
big issue for us is that our project already uses HDF5 and we are trying
to bring in ITK for image processing. But the configuration of ITK is
stopping us in our tracks. After fighting my way through this all
yesterday afternoon I finally got it to work. Now I just need to relay
these convoluted directions to the rest of my developers.<br>
<br>
Thanks for any suggestions<br>
Mike Jackson<br>
DREAM3D.io<br>
<blockquote style="border: 0px none;"
cite="mid:CALzTN-RB+SbdFGHPrjAufhF1cOFpjCsghXGXpqW8LNc9XcVLKQ@mail.gmail.com"
type="cite">
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:matt.mccormick@kitware.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Matt McCormick</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">Wednesday,
February 18, 2015 9:21 PM</span></font></div></div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>Hi Mike,<br><br>More
guidance may be required when configuring against a system HDF5.<br>HDF5
currently uses CMake as a secondary build system configuration,<br>and
some of its configurations could be improved.<br><br>Setting HDF5_DIR on
the first configure may help. Also, helping<br>upstream improve their
CMake configuration is a good idea :-). CMake<br>has every improving
guidance on cmake packages [1].<br><br>Thanks,<br>Matt<br><br>[1]
<a class="moz-txt-link-freetext" href="http://www.cmake.org/cmake/help/v3.2/manual/cmake-packages.7.html">http://www.cmake.org/cmake/help/v3.2/manual/cmake-packages.7.html</a><br><br>On
Wed, Feb 18, 2015 at 6:34 PM, Michael Jackson</div></div>
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:mike.jackson@bluequartz.net"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Michael Jackson</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">Wednesday,
February 18, 2015 6:34 PM</span></font></div></div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div dir="ltr">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<div><br>Then when I
attempt to actually compile ITK I get a compile error that says it can
not find include file "H5Cpp.h".</div><div><br></div><div>So I rerun
CMake and set the HDF5_DIR to C:/DREAM3D_SDK/hdf5-1.8.14/cmake/hdf5 and
configure.</div><div><br></div><div>I have also noticed that I have to
manually set the HDF5_LIBRARIES to include both the debug and release
versions of the libraries.</div><div><br></div><div>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?</div><div><br></div><div>Thanks</div><div><div><div>_________________________________________________________<br>Mike
Jackson <a moz-do-not-send="true" target="_blank"
href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>BlueQuartz
Software <a moz-do-not-send="true" target="_blank"
href="http://www.bluequartz.net">www.bluequartz.net</a><br>Principal
Software Engineer Dayton, Ohio</div></div><div><br></div>
</div></div>
</div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div>Sent with <a href="http://www.getpostbox.com"><span style="color:
rgb(51, 102, 153);">Postbox</span></a></div></div>
</body></html>