[vtkusers] System HDF with bundled NetCDF
Florian Blachère
florian.blachere at univ-nantes.fr
Tue Dec 8 11:46:11 EST 2015
On 08/12/15 16:56, Ben Boeckel wrote:
> On Tue, Dec 08, 2015 at 13:03:03 +0100, Florian Blachère wrote:
>> When compiling VTK with system HDF5 and NetCDF from the thirdparty
>> (because newer NetCDF seems to be incompatible),
> What version? We have a dashboard which compiles against a system
> 4.3.3.1 (with netcdf-cxx 4.2) just fine. You do need the C++ bindings as
> well; the VTK netcdf is patched such that both are included (something I
> plan on fixing when I get around to updating our netcdf).
The version are the following; VTK 6.3.0, netcdf 4.3.3.1, netcdf-cxx
4.2 and hdf5 1.18.15 on ArchLinux.
When compiling with system NetCDF the following error appears:
Found HDF5:
/usr/lib64/libhdf5.so;/usr/lib64/libhdf5_hl.so;/usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so;/usr/lib64/libhdf5_hl.so;/usr/lib64/libhdf5.so;/usr/lib64/libhdf5_hl.so;/usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so
(found version "1.8.15")
-- Failed to find NetCDF interface for CXX
CMake Error at CMake/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find NetCDF (missing: NETCDF_HAS_INTERFACES)
Call Stack (most recent call first):
CMake/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
CMake/FindNetCDF.cmake:117 (find_package_handle_standard_args)
CMake/vtkModuleMacros.cmake:839 (find_package)
ThirdParty/netcdf/CMakeLists.txt:10 (vtk_module_third_party)
-- Configuring incomplete, errors occurred!
And when using system HDF and NetCDF from the thirdparty, NetCDF is
disabled whereas HDF5 is properly found before :
-- Disabling NETCDF4 support since HDF5_HL or HDF5_hdf5_hl is missing.
>> NetCDF seems to be disabled as CMake does not find HDF5 in the file
>> 'ThirdParty/netcdf/vtknetcdf/CMakeLists.txt' at line 239.
> It seems that you are missing HDF5's high-level library; it may ship
> separately from the base HDF5 libraries (but I don't see separate
> packages in either Debian or Fedora).
>
> --Ben
More information about the vtkusers
mailing list