Franck,

 You are correct that the standard zlib does not provide cmake compiled 
binaries. We created the tarballs so that we could build the szip/zlib 
libararies with the same options as the library.

We do test with the "point to the system installed libs" option - AFAIK, there 
are no reported problems.

Well, the options look correct. The ZSIP/ZLIB_EXPORT_LIBRARIES in the link 
line is very strange. Where could that be coming from instead of the actual 
name you supplied.
It is possible that something got confused in the cmake files - because those 
are names of variables used within our cmake-ified szip/zlib tarballs.

Allen

On Monday, October 12, 2015 06:22:26 PM houssen wrote:
> Hello,
> 
> My understanding is that HDF5_ALLOW_EXTERNAL_SUPPORT should not be used
> (and defaults to NO) according to the doc : I tried to set it anyway.
> Also, on Ubuntu when I "sudo apt-get install" zlib, it seems I get an
> autotools install, so CMake does not find the zlib install (missing
> Find*.cmake): this is why I tried to build from source and install ZLib
> / SZip (I use ZLIB / SZIP tarballs provided by
> www.hdfgroup.org/ftp/HDF5/releases/... as they have been patched to
> create Find*.cmake files at install time).
> 
> My last try (called within a bash script where $1 is a path to the
> final install where libz and libszip are already installed) :
> export CMAKE_PREFIX_PATH="$1:$1/share/cmake:$CMAKE_PREFIX_PATH"
> export CMAKE_MODULE_PATH="$1/share/cmake:$CMAKE_MODULE_PATH"
> export CMAKE_INCLUDE_PATH="$1/include:$CMAKE_INCLUDE_PATH"
> export CMAKE_LIBRARY_PATH="$1/lib:$CMAKE_LIBRARY_PATH"
> export CMAKE_PROGRAM_PATH="$1/bin:$CMAKE_PROGRAM_PATH"
> cmake -DCMAKE_INSTALL_PREFIX:PATH=$1
> -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DBUILD_SHARED_LIBS:BOOL=ON
>               \
>        -DHDF5_BUILD_HL_LIB:BOOL=ON -DHDF5_BUILD_TOOLS:BOOL=ON
> -DHDF_ENABLE_LARGE_FILE:BOOL=ON                                \
>        -DHDF5_ALLOW_EXTERNAL_SUPPORT:STRING="NO"
>                                                     \
>        -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON
> -DZLIB_INCLUDE_DIR:PATH="$1/include"
> -DZLIB_LIBRARY:FILEPATH="$1/lib/libz.so"     \
>        -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON
> -DSZIP_INCLUDE_DIR:PATH="$1/include"
> -DSZIP_LIBRARY:FILEPATH="$1/lib/libszip.so" ..
> 
> Note : I use now -DZLIB_LIBRARY:FILEPATH / -DSZIP_LIBRARY:FILEPATH
> according to the doc.
> 
> Gives me this :
> [ 36%] Linking C shared library ../bin/libhdf5.so
> /usr/bin/ld.bfd.real: can't find -lZLIB_EXPORT_LIBRARIES
> /usr/bin/ld.bfd.real: can't find -lSZIP_EXPORT_LIBRARIES
> /usr/bin/ld.bfd.real: can't find -lZLIB_EXPORT_LIBRARIES
> /usr/bin/ld.bfd.real: can't find -lSZIP_EXPORT_LIBRARIES
> 
> I miss something but can't figure our what ?... I guess options are
> upsetting each other...
> 
> Franck
> 
> Le 2015-10-12 15:56, Allen Byrne a écrit :
> > Franck,
> > 
> >     HDF5_ALLOW_EXTERNAL_SUPPORT is not a BOOL, it is a STRING "NO,
> > 
> > SVN, TGZ".
> > 
> > Allen
> > 
> > On Sunday, October 11, 2015 06:23:49 PM houssen wrote:
> >> Hello,
> >> 
> >> How to build HDF5 (1.8.15) with ZLib and SZIP (on Ubuntu-14.04) ?
> >> 
> >> With this (called within a bash script where $1 is a path to the
> >> final
> >> install where libz and libszip are already installed) :
> >> export CMAKE_PREFIX_PATH="$1/share/cmake:$CMAKE_PREFIX_PATH"
> >> export CMAKE_MODULE_PATH="$1/share/cmake:$CMAKE_MODULE_PATH"
> >> export CMAKE_INCLUDE_PATH="$1/include:$CMAKE_INCLUDE_PATH"
> >> export CMAKE_LIBRARY_PATH="$1/lib:$CMAKE_LIBRARY_PATH"
> >> export CMAKE_PROGRAM_PATH="$1/bin:$CMAKE_PROGRAM_PATH"
> >> cmake -DCMAKE_INSTALL_PREFIX:PATH=$1
> >> -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DBUILD_SHARED_LIBS:BOOL=ON
> >> 
> >>                                                      \
> >>        
> >>        -DHDF5_BUILD_HL_LIB:BOOL=ON -DHDF5_BUILD_TOOLS:BOOL=ON
> >> 
> >> -DHDF_ENABLE_LARGE_FILE:BOOL=ON
> >> 
> >>                              \
> >>        
> >>        -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON
> >> 
> >> -DZLIB_INCLUDE_DIR:PATH="$1/include"
> >> -DZLIB_LIBRARY:PATH="$1/lib/libz.so"
> >> 
> >>            \
> >>        
> >>        -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON
> >> 
> >> -DSZIP_INCLUDE_DIR:PATH="$1/include"
> >> -DSZIP_LIBRARY_RELEASE:PATH="$1/lib/libszip.so"
> >> -DHDF5_ENABLE_SZIP_ENCODING:BOOL=ON ..
> >> I got this :
> >> [  0%] Linking C shared library ../bin/libhdf5.so
> >> /usr/bin/ld.bfd.real: can't find -lZLIB_EXPORT_LIBRARIES
> >> /usr/bin/ld.bfd.real: can't find -lSZIP_EXPORT_LIBRARIES
> >> /usr/bin/ld.bfd.real: can't find -lZLIB_EXPORT_LIBRARIES
> >> /usr/bin/ld.bfd.real: can't find -lSZIP_EXPORT_LIBRARIES
> >> collect2: error: ld returned 1 exit status
> >> 
> >> With this :
> >> cmake -DCMAKE_INSTALL_PREFIX:PATH=$1
> >> -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DBUILD_SHARED_LIBS:BOOL=ON
> >> 
> >>                                                         \
> >>        
> >>        -DHDF5_BUILD_HL_LIB:BOOL=ON -DHDF5_BUILD_TOOLS:BOOL=ON
> >> 
> >> -DHDF_ENABLE_LARGE_FILE:BOOL=ON
> >> 
> >>                                 \
> >>        
> >>        -DHDF5_ALLOW_EXTERNAL_SUPPORT:BOOL=ON
> >> 
> >> -DZLIB_USE_EXTERNAL:BOOL=ON
> >> -DSZIP_USE_EXTERNAL:BOOL=ON
> >> 
> >>                      \
> >>        
> >>        -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON
> >> 
> >> -DZLIB_URL:PATH="https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.15/s
> >> rc/ ZLib.tar.gz" \
> >> 
> >>        -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON
> >> 
> >> -DHDF5_ENABLE_SZIP_ENCODING:BOOL=ON
> >> 
> >> -DSZIP_URL:PATH="https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.15/s
> >> rc/ SZip.tar.gz" ..
> >> I got this :
> >> 
> >> CMake Error at CMakeFilters.cmake:66 (message):
> >>     ZLib is Required for ZLib support in HDF5
> >> 
> >> Franck
> >> 
> >> 
> >> _______________________________________________
> >> Hdf-forum is for HDF software users discussion.
> >> [email protected]
> >> 
> >> http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
> >> Twitter: https://twitter.com/hdf5
> 
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
> Twitter: https://twitter.com/hdf5


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to