[Paraview] Problems with hdf5_zlib.h: vtk_zlib.h is pointed instead of zlib.h

Daniel Tourde daniel.tourde at caelae.se
Wed Jul 19 18:04:05 EDT 2006


Hello,

I am trying to compile "by hand" Paraview 2.4.4 and I encounter a strange 
problem. Hopefully someone can help me with that.

To compile paraview, I follow the installation procedure and under CMAKE 
(2.4.2) I choose:

BUILD_SHARED_LIBS : ON
VTK_USE_SYSTEM_FREETYPE : ON
VTK_USE_SYSTEM_JPEG : ON
VTK_USE_SYSTEM_PNG : ON
VTK_USE_SYSTEM_TIFF : ON
VTK_USE_SYSTEM_ZLIB : ON

When I build Paraview I then get the following error:
In file included from /root/paraview-2.4.4/Utilities/hdf5/H5Zdeflate.c:30:
/root/paraview-2.4.4-linux/Utilities/hdf5/hdf5_zlib.h:1:22: vtk_zlib.h: No 
such file or directory

morghaan paraview-2.4.4-linux # cd /root/paraview-2.4.4-linux/Utilities/hdf5/
morghaan hdf5 # more hdf5_zlib.h
#include <vtk_zlib.h>

I have two Gentoo machines at my disposal:
- One with VTK installed: I get this error message (the file is 
under /usr/include/vtk-5.0 and is apparently never found)
- One without VTK, the file does not even exist...

If I check the source code, I can see that this hdf5_zlib.h is, as a matter of 
fact, generated automatically:
morghaan hdf5 # more hdf5_zlib.h.in
#include <@HDF5_ZLIB_HEADER@>

where 
morghaan hdf5 # more CMakeLists.txt
gives:

IF(NOT HDF5_ZLIB_HEADER)
  SET(HDF5_ZLIB_HEADER "zlib.h")
ENDIF(NOT HDF5_ZLIB_HEADER)
CONFIGURE_FILE(${VTKHDF5_SOURCE_DIR}/hdf5_zlib.h.in
  ${VTKHDF5_BINARY_DIR}/hdf5_zlib.h)


So, I don't really understand why vtk_zlib.h is chosen instead of zlib.h when 
I clearly specify the flag...

Any comment, any help?

		Daniel


More information about the ParaView mailing list