I think FindHDF5.cmake needs to be cleaned up. There are occassions when <span style="font-family:arial,sans-serif;font-size:13px">HDF5_HL_LIBRARY gets defined and other occasions when </span><span style="font-family:arial,sans-serif;font-size:13px">HDF5_hdf5_hl_LIBRARY gets defined. That's confusing to say the least. I am going to check with the Cmake folks here and try to figure out what's the right approach.</span><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">In the meantime, if simply using </span><span style="font-family:arial,sans-serif;font-size:13px">HDF5_hdf5_hl_LIBRARY works for you, I can update the if() block to test for both </span><span style="font-family:arial,sans-serif;font-size:13px">HDF5_hdf5_hl_LIBRARY or </span><span style="font-family:arial,sans-serif;font-size:13px">HDF5_HL_LIBRARY. Does that sound reasonable?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">Utkarsh</font></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 4:29 AM, Francois Bissey <span dir="ltr"><<a href="mailto:fbissey@slingshot.co.nz" target="_blank">fbissey@slingshot.co.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">cmake 2.8.9, the wiki says that for 3.98rc1 2.8.8+ is suitable. HDF5_DIR<br>
is not set that's a system install in standard location (/usr).<br>
This is what ccmake on paraview 3.98rc1 reports:<br>
HDF5_CXX_COMPILER_EXECUTABLE HDF5_CXX_COMPILER_EXECUTABLE-NOTFOUND<br>
<br>
HDF5_C_COMPILER_EXECUTABLE /usr/bin/h5pcc<br>
<br>
HDF5_C_INCLUDE_DIR /usr/include<br>
<br>
HDF5_DIFF_EXECUTABLE /usr/bin/h5diff<br>
<br>
HDF5_DIR HDF5_DIR-NOTFOUND<br>
<br>
HDF5_Fortran_COMPILER_EXECUTAB /usr/bin/h5pfc<br>
<br>
HDF5_HL_INCLUDE_DIR /usr/include<br>
<br>
HDF5_IS_PARALLEL ON<br>
<br>
HDF5_hdf5_LIBRARY /usr/lib64/libhdf5.so<br>
<br>
HDF5_hdf5_LIBRARY_DEBUG HDF5_hdf5_LIBRARY_DEBUG-NOTFOUND<br>
<br>
HDF5_hdf5_LIBRARY_RELEASE /usr/lib64/libhdf5.so<br>
<br>
HDF5_hdf5_hl_LIBRARY /usr/lib64/libhdf5_hl.so<br>
<br>
HDF5_hdf5_hl_LIBRARY_DEBUG HDF5_hdf5_hl_LIBRARY_DEBUG-NOTFOUND<br>
<br>
HDF5_hdf5_hl_LIBRARY_RELEASE /usr/lib64/libhdf5_hl.so<br>
<br>
HDF5_m_LIBRARY /usr/lib64/libm.so<br>
<br>
HDF5_m_LIBRARY_DEBUG HDF5_m_LIBRARY_DEBUG-NOTFOUND<br>
<br>
HDF5_m_LIBRARY_RELEASE /usr/lib64/libm.so<br>
<br>
HDF5_rt_LIBRARY /usr/lib64/librt.so<br>
<br>
HDF5_rt_LIBRARY_DEBUG HDF5_rt_LIBRARY_DEBUG-NOTFOUND<br>
<br>
HDF5_rt_LIBRARY_RELEASE /usr/lib64/librt.so<br>
<br>
HDF5_sz_LIBRARY /usr/lib64/libsz.so<br>
<br>
HDF5_sz_LIBRARY_DEBUG HDF5_sz_LIBRARY_DEBUG-NOTFOUND<br>
<br>
HDF5_sz_LIBRARY_RELEASE /usr/lib64/libsz.so<br>
<br>
HDF5_z_LIBRARY /usr/lib64/libz.so<br>
<br>
HDF5_z_LIBRARY_DEBUG HDF5_z_LIBRARY_DEBUG-NOTFOUND<br>
<br>
HDF5_z_LIBRARY_RELEASE /usr/lib64/libz.so<br>
<br>
<br>
<br>
I understand that it is very curious since there are no such variables<br>
as HDF5_hdf5_* in FindHDF5.cmake shipped with cmake. A grep on<br>
paraview's sources suggest that they may originate in the superbuild:<br>
grep -ri hdf5_hdf5 ../ParaView/*<br>
../ParaView/SuperBuild/CMakeLists.txt:<br>
-DHDF5_hdf5_LIBRARY:FILEPATH=${HDF5_LIBRARY}<br>
../ParaView/SuperBuild/CMakeLists.txt:<br>
-DHDF5_hdf5_LIBRARY_RELEASE:FILEPATH=${HDF5_LIBRARY}<br>
../ParaView/SuperBuild/CMakeLists.txt:<br>
-DHDF5_hdf5_hl_LIBRARY:FILEPATH=${HDF5_HL_LIBRARY}<br>
../ParaView/SuperBuild/CMakeLists.txt:<br>
-DHDF5_hdf5_hl_LIBRARY_RELEASE:FILEPATH=${HDF5_HL_LIBRARY})<br>
<br>
And the relevant piece of code in SuperBuild/CMakeLists.txt is here:<br>
# Build HDF5<br>
list(APPEND HDF5_dependencies zlib szip)<br>
list(APPEND ParaView_dependencies HDF5)<br>
include(External_HDF5)<br>
set(HDF5_ARGS<br>
-DVTK_USE_SYSTEM_HDF5:BOOL=ON<br>
-DHDF5_DIR:PATH=${HDF5_install}<br>
-DHDF5_FOUND:BOOL=ON<br>
-DHDF5_INCLUDE_DIRS:PATH=${HDF5_INCLUDE_DIR}<br>
-DHDF5_INCLUDE_DIR:PATH=${HDF5_INCLUDE_DIR}<br>
-DHDF5_LIBRARIES:FILEPATH=${HDF5_LIBRARY};${HDF5_HL_LIBRARY}<br>
-DHDF5_LIBRARY:FILEPATH=${HDF5_LIBRARY}<br>
-DHDF5_HL_LIBRARY:FILEPATH=${HDF5_HL_LIBRARY}<br>
-DHDF5_hdf5_LIBRARY:FILEPATH=${HDF5_LIBRARY}<br>
-DHDF5_hdf5_LIBRARY_RELEASE:FILEPATH=${HDF5_LIBRARY}<br>
-DHDF5_hdf5_hl_LIBRARY:FILEPATH=${HDF5_HL_LIBRARY}<br>
-DHDF5_hdf5_hl_LIBRARY_RELEASE:FILEPATH=${HDF5_HL_LIBRARY})<br>
<br>
Any opinions?<br>
<br>
Francois<br>
<div class="im"><br>
On 16/11/12 09:40, Utkarsh Ayachit wrote:<br>
> What cmake version are you using and what is your HDF5_DIR variable set<br>
> to, if at all?<br>
><br>
> Utkarsh<br>
><br>
><br>
> On Mon, Nov 12, 2012 at 9:45 PM, <<a href="mailto:fbissey@slingshot.co.nz">fbissey@slingshot.co.nz</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:fbissey@slingshot.co.nz">fbissey@slingshot.co.nz</a>>> wrote:<br>
><br>
> Another problem I have now is with system hdf5. I get the following:<br>
> Disabling NETCDF4 support since HDF5_HL is missing.<br>
><br>
> Yet I have hdf5_hl installed and it is detected by cmake as well since<br>
> HDF%_hdf5_hl_LIBRARY is defined and pointing to the right thing.<br>
> I believe that the cmake testing logic in<br>
> VTK/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt<br>
> is wrong:<br>
> set (USE_NETCDF4 OFF)<br>
> if (NOT VTK_USE_SYSTEM_HDF5)<br>
> # using VTK's HDF5, we always build that with HL support.<br>
> set (USE_NETCDF4 ON)<br>
> elseif(HDF5_HL_LIBRARY)<br>
> set (USE_NETCDF4 ON)<br>
> else()<br>
> message(STATUS "Disabling NETCDF4 support since HDF5_HL is missing.")<br>
> endif ()<br>
><br>
> HDF5_HL_LIBRARY is the wrong variable to test, it should be<br>
> HDF5_hdf5_hl_LIBRARY.<br>
> The change works for me. By the way any chance to be able to use the<br>
> system<br>
> netcdf as debian does in its build (and that I shamelessly copied<br>
> in Gentoo).<br>
><br>
> Francois<br>
><br>
> _______________________________________________<br>
</div></div>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
<div class="HOEnZb"><div class="h5">><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>