[Paraview] system hdf5 and 3.98rc1

Francois Bissey fbissey at slingshot.co.nz
Fri Nov 16 04:29:46 EST 2012


cmake 2.8.9, the wiki says that for 3.98rc1 2.8.8+ is suitable. HDF5_DIR
is not set that's a system install in standard location (/usr).
This is what ccmake on paraview 3.98rc1 reports:
 HDF5_CXX_COMPILER_EXECUTABLE     HDF5_CXX_COMPILER_EXECUTABLE-NOTFOUND

 HDF5_C_COMPILER_EXECUTABLE       /usr/bin/h5pcc

 HDF5_C_INCLUDE_DIR               /usr/include

 HDF5_DIFF_EXECUTABLE             /usr/bin/h5diff

 HDF5_DIR                         HDF5_DIR-NOTFOUND

 HDF5_Fortran_COMPILER_EXECUTAB   /usr/bin/h5pfc

 HDF5_HL_INCLUDE_DIR              /usr/include

 HDF5_IS_PARALLEL                 ON

 HDF5_hdf5_LIBRARY                /usr/lib64/libhdf5.so

 HDF5_hdf5_LIBRARY_DEBUG          HDF5_hdf5_LIBRARY_DEBUG-NOTFOUND

 HDF5_hdf5_LIBRARY_RELEASE        /usr/lib64/libhdf5.so

 HDF5_hdf5_hl_LIBRARY             /usr/lib64/libhdf5_hl.so

 HDF5_hdf5_hl_LIBRARY_DEBUG       HDF5_hdf5_hl_LIBRARY_DEBUG-NOTFOUND

 HDF5_hdf5_hl_LIBRARY_RELEASE     /usr/lib64/libhdf5_hl.so

 HDF5_m_LIBRARY                   /usr/lib64/libm.so

 HDF5_m_LIBRARY_DEBUG             HDF5_m_LIBRARY_DEBUG-NOTFOUND

 HDF5_m_LIBRARY_RELEASE           /usr/lib64/libm.so

 HDF5_rt_LIBRARY                  /usr/lib64/librt.so

 HDF5_rt_LIBRARY_DEBUG            HDF5_rt_LIBRARY_DEBUG-NOTFOUND

 HDF5_rt_LIBRARY_RELEASE          /usr/lib64/librt.so

 HDF5_sz_LIBRARY                  /usr/lib64/libsz.so

 HDF5_sz_LIBRARY_DEBUG            HDF5_sz_LIBRARY_DEBUG-NOTFOUND

 HDF5_sz_LIBRARY_RELEASE          /usr/lib64/libsz.so

 HDF5_z_LIBRARY                   /usr/lib64/libz.so

 HDF5_z_LIBRARY_DEBUG             HDF5_z_LIBRARY_DEBUG-NOTFOUND

 HDF5_z_LIBRARY_RELEASE           /usr/lib64/libz.so



I understand that it is very curious since there are no such variables
as HDF5_hdf5_* in FindHDF5.cmake shipped with cmake. A grep on
paraview's sources suggest that they may originate in the superbuild:
grep -ri hdf5_hdf5 ../ParaView/*
../ParaView/SuperBuild/CMakeLists.txt:
-DHDF5_hdf5_LIBRARY:FILEPATH=${HDF5_LIBRARY}
../ParaView/SuperBuild/CMakeLists.txt:
-DHDF5_hdf5_LIBRARY_RELEASE:FILEPATH=${HDF5_LIBRARY}
../ParaView/SuperBuild/CMakeLists.txt:
-DHDF5_hdf5_hl_LIBRARY:FILEPATH=${HDF5_HL_LIBRARY}
../ParaView/SuperBuild/CMakeLists.txt:
-DHDF5_hdf5_hl_LIBRARY_RELEASE:FILEPATH=${HDF5_HL_LIBRARY})

And the relevant piece of code in SuperBuild/CMakeLists.txt is here:
# Build HDF5
list(APPEND HDF5_dependencies zlib szip)
list(APPEND ParaView_dependencies HDF5)
include(External_HDF5)
set(HDF5_ARGS
  -DVTK_USE_SYSTEM_HDF5:BOOL=ON
  -DHDF5_DIR:PATH=${HDF5_install}
  -DHDF5_FOUND:BOOL=ON
  -DHDF5_INCLUDE_DIRS:PATH=${HDF5_INCLUDE_DIR}
  -DHDF5_INCLUDE_DIR:PATH=${HDF5_INCLUDE_DIR}
  -DHDF5_LIBRARIES:FILEPATH=${HDF5_LIBRARY};${HDF5_HL_LIBRARY}
  -DHDF5_LIBRARY:FILEPATH=${HDF5_LIBRARY}
  -DHDF5_HL_LIBRARY:FILEPATH=${HDF5_HL_LIBRARY}
  -DHDF5_hdf5_LIBRARY:FILEPATH=${HDF5_LIBRARY}
  -DHDF5_hdf5_LIBRARY_RELEASE:FILEPATH=${HDF5_LIBRARY}
  -DHDF5_hdf5_hl_LIBRARY:FILEPATH=${HDF5_HL_LIBRARY}
  -DHDF5_hdf5_hl_LIBRARY_RELEASE:FILEPATH=${HDF5_HL_LIBRARY})

Any opinions?

Francois

On 16/11/12 09:40, Utkarsh Ayachit wrote:
> What cmake version are you using and what is your HDF5_DIR variable set
> to, if at all?
> 
> Utkarsh
> 
> 
> On Mon, Nov 12, 2012 at 9:45 PM, <fbissey at slingshot.co.nz
> <mailto:fbissey at slingshot.co.nz>> wrote:
> 
>     Another problem I have now is with system hdf5. I get the following:
>     Disabling NETCDF4 support since HDF5_HL is missing.
> 
>     Yet I have hdf5_hl installed and it is detected by cmake as well since
>     HDF%_hdf5_hl_LIBRARY is defined and pointing to the right thing.
>     I believe that the cmake testing logic in
>     VTK/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt
>     is wrong:
>     set (USE_NETCDF4 OFF)
>     if (NOT VTK_USE_SYSTEM_HDF5)
>       # using VTK's HDF5, we always build that with HL support.
>       set (USE_NETCDF4 ON)
>     elseif(HDF5_HL_LIBRARY)
>       set (USE_NETCDF4 ON)
>     else()
>       message(STATUS "Disabling NETCDF4 support since HDF5_HL is missing.")
>     endif ()
> 
>     HDF5_HL_LIBRARY is the wrong variable to test, it should be
>     HDF5_hdf5_hl_LIBRARY.
>     The change works for me. By the way any chance to be able to use the
>     system
>     netcdf  as debian does in its build (and that I shamelessly copied
>     in Gentoo).
> 
>     Francois
> 
>     _______________________________________________
>     Powered by www.kitware.com <http://www.kitware.com>
> 
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
> 
>     Please keep messages on-topic and check the ParaView Wiki at:
>     http://paraview.org/Wiki/ParaView
> 
>     Follow this link to subscribe/unsubscribe:
>     http://www.paraview.org/mailman/listinfo/paraview
> 
> 



More information about the ParaView mailing list