diff --git a/BLOSC/config/cmake/ConfigureChecks.cmake b/BLOSC/config/cmake/ConfigureChecks.cmake index ada5643a..a7fbd78f 100644 --- a/BLOSC/config/cmake/ConfigureChecks.cmake +++ b/BLOSC/config/cmake/ConfigureChecks.cmake @@ -180,13 +180,9 @@ macro (HDF_FUNCTION_TEST OTHER_TEST) ) if (${OTHER_TEST}) set (${OTHER_TEST} 1 CACHE INTERNAL "Other test ${FUNCTION}") - if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") - message (VERBOSE "Performing Other Test ${OTHER_TEST} - Success") - endif () + message (VERBOSE "Performing Other Test ${OTHER_TEST} - Success") else () - if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") - message (VERBOSE "Performing Other Test ${OTHER_TEST} - Failed") - endif () + message (VERBOSE "Performing Other Test ${OTHER_TEST} - Failed") set (${OTHER_TEST} "" CACHE INTERNAL "Other test ${FUNCTION}") file (APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "Performing Other Test ${OTHER_TEST} failed with the following output:\n" @@ -243,23 +239,17 @@ if (MINGW OR NOT WINDOWS) set (TEST_LFS_WORKS 1 CACHE INTERNAL ${msg}) set (LARGEFILE 1) set (HDF_EXTRA_FLAGS ${HDF_EXTRA_FLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE) - if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") - message (VERBOSE "${msg}... yes") - endif () + message (VERBOSE "${msg}... yes") else () set (TEST_LFS_WORKS "" CACHE INTERNAL ${msg}) - if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") - message (VERBOSE "${msg}... no") - endif () + message (VERBOSE "${msg}... no") file (APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "Test TEST_LFS_WORKS Run failed with the following exit code:\n ${TEST_LFS_WORKS_RUN}\n" ) endif () else () set (TEST_LFS_WORKS "" CACHE INTERNAL ${msg}) - if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") - message (VERBOSE "${msg}... no") - endif () + message (VERBOSE "${msg}... no") file (APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "Test TEST_LFS_WORKS Compile failed\n" ) diff --git a/BLOSC/config/cmake/H5PL_Examples.cmake.in b/BLOSC/config/cmake/H5PL_Examples.cmake.in index cc5d32e9..c0e473d4 100644 --- a/BLOSC/config/cmake/H5PL_Examples.cmake.in +++ b/BLOSC/config/cmake/H5PL_Examples.cmake.in @@ -15,8 +15,8 @@ cmake_minimum_required(VERSION 3.12) # Execute from a command line: # ctest -S H5PL_Examples.cmake,OPTION=VALUE -C Release -VV -O test.log ############################################################################################################### -# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.10/lib/plugin, -# then is /usr/local/HDF_Group/HDF5/1.10 +# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin, +# then is /usr/local/HDF_Group/HDF5/1.15 # ctest -S H5PL_Examples.cmake,HDF5INSTALLDIR= -C Release -VV -O test.log ############################################################################################################### @@ -57,7 +57,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCTEST_CONFIGURATION_TYPE:STRING=$ ################################################################## if(NOT DEFINED HDF5INSTALLDIR) - set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.10") + set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@") endif() if(NOT DEFINED INSTALLDIR) set (INSTALLDIR "${HDF5INSTALLDIR}") @@ -88,20 +88,20 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILD #TAR_SOURCE - name of tarfile #if(NOT DEFINED TAR_SOURCE) -# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.10-Source") +# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.@H5PL_PACKAGE_VERSION_MINOR@-Source") #endif() ############################################################################################################### if(WIN32) set (SITE_OS_NAME "Windows") - set (ENV{HDF5_ROOT} "${HDF5INSTALLDIR}") + set (ENV{HDF5_ROOT} "${HDF5INSTALLDIR}/") set (CTEST_BINARY_NAME ${CTEST_SOURCE_NAME}\\build) set (CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}\\${CTEST_SOURCE_NAME}") set (CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}\\${CTEST_BINARY_NAME}") set (ENV{PATH} "$ENV{PATH};${HDF5INSTALLDIR}") set (HDF5_PLUGIN_ROOT "${INSTALLDIR}/lib/plugin") else() - set (ENV{HDF5_ROOT} "${HDF5INSTALLDIR}") + set (ENV{HDF5_ROOT} "${HDF5INSTALLDIR}/") set (ENV{LD_LIBRARY_PATH} "${HDF5INSTALLDIR}/lib") set (CTEST_BINARY_NAME ${CTEST_SOURCE_NAME}/build) set (CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${CTEST_SOURCE_NAME}") diff --git a/BLOSC/config/cmake/HDFMacros.cmake b/BLOSC/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/BLOSC/config/cmake/HDFMacros.cmake +++ b/BLOSC/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/BLOSC/config/cmake/HDFPluginMacros.cmake b/BLOSC/config/cmake/HDFPluginMacros.cmake index a820908e..b5adf3f8 100644 --- a/BLOSC/config/cmake/HDFPluginMacros.cmake +++ b/BLOSC/config/cmake/HDFPluginMacros.cmake @@ -405,8 +405,8 @@ macro (INSTALL_SUPPORT varname) set (CPACK_PACKAGE_VERSION_MINOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_PATCH "") #set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") - set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") - set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_BINARY_DIR}/README.txt") set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PLUGIN_NAME} Installation") set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}") @@ -458,7 +458,7 @@ macro (INSTALL_SUPPORT varname) # With CPACK_WIX_LICENSE_RTF you can override the license file used by the # WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported # format or the .txt -> .rtf conversion does not work as expected. - set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") # .. variable:: CPACK_WIX_PRODUCT_ICON # The Icon shown next to the program name in Add/Remove programs. # set (CPACK_WIX_PRODUCT_ICON "${${PLUGIN_PACKAGE_NAME}_RESOURCES_DIR}\\\\${PLUGIN_PACKAGE_NAME}.ico") diff --git a/BLOSC/config/cmake/README.txt.cmake.in b/BLOSC/config/cmake/README.txt.cmake.in index 3c532167..b4548a7b 100644 --- a/BLOSC/config/cmake/README.txt.cmake.in +++ b/BLOSC/config/cmake/README.txt.cmake.in @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ This directory contains the binary (release) distribution of -@H5BLOSC_PACKAGE_NAME@-@H5BLOSC_PACKAGE_VERSION_MAJOR@ that was compiled on; +@H5BLOSC_PACKAGE_NAME@-@H5BLOSC_PACKAGE_VERSION_MAJOR@.@H5BLOSC_PACKAGE_VERSION_MINOR@ that was compiled on; @BINARY_PLATFORM@. It was built with the following options: @@ -24,9 +24,9 @@ The customary location for the plugins is under the hdf5 libraries location. be installed into any location. On linux, the installer should be executed in the location to install the plugin. The plugins will install into the location: - /HDF_Group/HDF5/1.10/lib/plugin + /HDF_Group/HDF5/1.@H5BLOSC_PACKAGE_VERSION_MINOR@/lib/plugin On Windows, the installer will default to the same location as the hdf5 installer: - C:/Program Files/HDF_Group/HDF5/1.10 and into the /lib/plugin dir. + C:/Program Files/HDF_Group/HDF5/1.@H5BLOSC_PACKAGE_VERSION_MINOR@ and into the /lib/plugin dir. 1. Execute @H5BLOSC_PACKAGE_NAME@-@H5BLOSC_PACKAGE_VERSION@-@BINARY_SYSTEM_NAME@.@BINARY_INSTALL_ENDING@ 2. Follow prompts =========================================================================== diff --git a/BLOSC/config/cmake/binex/Using_CMake.txt b/BLOSC/config/cmake/binex/Using_CMake.txt index c289cba0..dafc5f16 100644 --- a/BLOSC/config/cmake/binex/Using_CMake.txt +++ b/BLOSC/config/cmake/binex/Using_CMake.txt @@ -27,8 +27,9 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5PL 1.10.x product requires a minimum CMake version - of 3.12. + web site. The HDF5PL 1.y.x product requires a minimum CMake version + of 3.12. If you are using VS2019, the minimum version is 3.15. If you are + using VS2022, the minimum version is 3.21. 2. You have installed the HDF5 library built with CMake, by executing the HDF Install Utility (the *.msi file in the binary package for @@ -38,9 +39,9 @@ I. Preconditions 3. Set the environment variable HDF5_ROOT to the installed location of the config files for HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -48,16 +49,16 @@ I. Preconditions 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/BLOSC/config/cmake/binex/config/cmake/HDFMacros.cmake b/BLOSC/config/cmake/binex/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/BLOSC/config/cmake/binex/config/cmake/HDFMacros.cmake +++ b/BLOSC/config/cmake/binex/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/BSHUF/config/cmake/ConfigureChecks.cmake b/BSHUF/config/cmake/ConfigureChecks.cmake index 4ab1ce9f..cab38e15 100644 --- a/BSHUF/config/cmake/ConfigureChecks.cmake +++ b/BSHUF/config/cmake/ConfigureChecks.cmake @@ -180,13 +180,9 @@ macro (HDF_FUNCTION_TEST OTHER_TEST) ) if (${OTHER_TEST}) set (${OTHER_TEST} 1 CACHE INTERNAL "Other test ${FUNCTION}") - if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") - message (VERBOSE "Performing Other Test ${OTHER_TEST} - Success") - endif () + message (VERBOSE "Performing Other Test ${OTHER_TEST} - Success") else () - if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") - message (VERBOSE "Performing Other Test ${OTHER_TEST} - Failed") - endif () + message (VERBOSE "Performing Other Test ${OTHER_TEST} - Failed") set (${OTHER_TEST} "" CACHE INTERNAL "Other test ${FUNCTION}") file (APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "Performing Other Test ${OTHER_TEST} failed with the following output:\n" @@ -243,23 +239,17 @@ if (MINGW OR NOT WINDOWS) set (TEST_LFS_WORKS 1 CACHE INTERNAL ${msg}) set (LARGEFILE 1) set (HDF_EXTRA_FLAGS ${HDF_EXTRA_FLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE) - if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") - message (VERBOSE "${msg}... yes") - endif () + message (VERBOSE "${msg}... yes") else () set (TEST_LFS_WORKS "" CACHE INTERNAL ${msg}) - if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") - message (VERBOSE "${msg}... no") - endif () + message (VERBOSE "${msg}... no") file (APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "Test TEST_LFS_WORKS Run failed with the following exit code:\n ${TEST_LFS_WORKS_RUN}\n" ) endif () else () set (TEST_LFS_WORKS "" CACHE INTERNAL ${msg}) - if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") - message (VERBOSE "${msg}... no") - endif () + message (VERBOSE "${msg}... no") file (APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "Test TEST_LFS_WORKS Compile failed\n" ) diff --git a/BSHUF/config/cmake/H5PL_Examples.cmake.in b/BSHUF/config/cmake/H5PL_Examples.cmake.in index 5e63afec..4bad1aec 100644 --- a/BSHUF/config/cmake/H5PL_Examples.cmake.in +++ b/BSHUF/config/cmake/H5PL_Examples.cmake.in @@ -15,8 +15,8 @@ cmake_minimum_required(VERSION 3.12) # Execute from a command line: # ctest -S H5PL_Examples.cmake,OPTION=VALUE -C Release -VV -O test.log ############################################################################################################### -# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.10/lib/plugin, -# then is /usr/local/HDF_Group/HDF5/1.10 +# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin, +# then is /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@ # ctest -S H5PL_Examples.cmake,HDF5INSTALLDIR= -C Release -VV -O test.log ############################################################################################################### @@ -57,7 +57,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCTEST_CONFIGURATION_TYPE:STRING=$ ################################################################## if(NOT DEFINED HDF5INSTALLDIR) - set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.10") + set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@") endif() if(NOT DEFINED INSTALLDIR) set (INSTALLDIR "${HDF5INSTALLDIR}") @@ -88,7 +88,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILD #TAR_SOURCE - name of tarfile #if(NOT DEFINED TAR_SOURCE) -# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.10-Source") +# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.@H5PL_PACKAGE_VERSION_MINOR@-Source") #endif() ############################################################################################################### @@ -101,7 +101,7 @@ if(WIN32) set (ENV{PATH} "$ENV{PATH};${HDF5INSTALLDIR}") set (HDF5_PLUGIN_ROOT "${INSTALLDIR}/lib/plugin") else() - set (ENV{HDF5_ROOT} "${HDF5INSTALLDIR}/share/") + set (ENV{HDF5_ROOT} "${HDF5INSTALLDIR}/") set (ENV{LD_LIBRARY_PATH} "${HDF5INSTALLDIR}/lib") set (CTEST_BINARY_NAME ${CTEST_SOURCE_NAME}/build) set (CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${CTEST_SOURCE_NAME}") diff --git a/BSHUF/config/cmake/HDFMacros.cmake b/BSHUF/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/BSHUF/config/cmake/HDFMacros.cmake +++ b/BSHUF/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/BSHUF/config/cmake/HDFPluginMacros.cmake b/BSHUF/config/cmake/HDFPluginMacros.cmake index e4ac156e..0e4b9323 100644 --- a/BSHUF/config/cmake/HDFPluginMacros.cmake +++ b/BSHUF/config/cmake/HDFPluginMacros.cmake @@ -405,8 +405,8 @@ macro (INSTALL_SUPPORT varname) set (CPACK_PACKAGE_VERSION_MINOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_PATCH "") #set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") - set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") - set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_BINARY_DIR}/README.txt") set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PLUGIN_NAME} Installation") set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}") @@ -458,7 +458,7 @@ macro (INSTALL_SUPPORT varname) # With CPACK_WIX_LICENSE_RTF you can override the license file used by the # WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported # format or the .txt -> .rtf conversion does not work as expected. - set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") # .. variable:: CPACK_WIX_PRODUCT_ICON # The Icon shown next to the program name in Add/Remove programs. # set (CPACK_WIX_PRODUCT_ICON "${${PLUGIN_PACKAGE_NAME}_RESOURCES_DIR}\\\\${PLUGIN_PACKAGE_NAME}.ico") diff --git a/BSHUF/config/cmake/README.txt.cmake.in b/BSHUF/config/cmake/README.txt.cmake.in index 916397da..deec0f66 100644 --- a/BSHUF/config/cmake/README.txt.cmake.in +++ b/BSHUF/config/cmake/README.txt.cmake.in @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ This directory contains the binary (release) distribution of -@H5BSHUF_PACKAGE_NAME@-@H5BSHUF_PACKAGE_VERSION_MAJOR@ that was compiled on; +@H5BSHUF_PACKAGE_NAME@-@H5BSHUF_PACKAGE_VERSION_MAJOR@.@H5BSHUF_PACKAGE_VERSION_MINOR@ that was compiled on; @BINARY_PLATFORM@. It was built with the following options: @@ -24,9 +24,9 @@ The customary location for the plugins is under the hdf5 libraries location. be installed into any location. On linux, the installer should be executed in the location to install the plugin. The plugins will install into the location: - /HDF_Group/HDF5/1.10/lib/plugin + /HDF_Group/HDF5/1.@H5BSHUF_PACKAGE_VERSION_MINOR@/lib/plugin On Windows, the installer will default to the same location as the hdf5 installer: - C:/Program Files/HDF_Group/HDF5/1.10 and into the /lib/plugin dir. + C:/Program Files/HDF_Group/HDF5/1.@H5BSHUF_PACKAGE_VERSION_MINOR@ and into the /lib/plugin dir. 1. Execute @H5BSHUF_PACKAGE_NAME@-@H5BSHUF_PACKAGE_VERSION@-@BINARY_SYSTEM_NAME@.@BINARY_INSTALL_ENDING@ 2. Follow prompts =========================================================================== diff --git a/BSHUF/config/cmake/binex/Using_CMake.txt b/BSHUF/config/cmake/binex/Using_CMake.txt index c289cba0..dafc5f16 100644 --- a/BSHUF/config/cmake/binex/Using_CMake.txt +++ b/BSHUF/config/cmake/binex/Using_CMake.txt @@ -27,8 +27,9 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5PL 1.10.x product requires a minimum CMake version - of 3.12. + web site. The HDF5PL 1.y.x product requires a minimum CMake version + of 3.12. If you are using VS2019, the minimum version is 3.15. If you are + using VS2022, the minimum version is 3.21. 2. You have installed the HDF5 library built with CMake, by executing the HDF Install Utility (the *.msi file in the binary package for @@ -38,9 +39,9 @@ I. Preconditions 3. Set the environment variable HDF5_ROOT to the installed location of the config files for HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -48,16 +49,16 @@ I. Preconditions 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/BSHUF/config/cmake/binex/config/cmake/HDFMacros.cmake b/BSHUF/config/cmake/binex/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/BSHUF/config/cmake/binex/config/cmake/HDFMacros.cmake +++ b/BSHUF/config/cmake/binex/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/BZIP2/config/cmake/H5PL_Examples.cmake.in b/BZIP2/config/cmake/H5PL_Examples.cmake.in index 49c44590..08a99786 100644 --- a/BZIP2/config/cmake/H5PL_Examples.cmake.in +++ b/BZIP2/config/cmake/H5PL_Examples.cmake.in @@ -15,8 +15,8 @@ cmake_minimum_required(VERSION 3.12) # Execute from a command line: # ctest -S H5PL_Examples.cmake,OPTION=VALUE -C Release -VV -O test.log ############################################################################################################### -# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.10/lib/plugin, -# then is /usr/local/HDF_Group/HDF5/1.10 +# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin, +# then is /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@ # ctest -S H5PL_Examples.cmake,HDF5INSTALLDIR= -C Release -VV -O test.log ############################################################################################################### @@ -57,7 +57,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCTEST_CONFIGURATION_TYPE:STRING=$ ################################################################## if(NOT DEFINED HDF5INSTALLDIR) - set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.10") + set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@") endif() if(NOT DEFINED INSTALLDIR) set (INSTALLDIR "${HDF5INSTALLDIR}") @@ -88,7 +88,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILD #TAR_SOURCE - name of tarfile #if(NOT DEFINED TAR_SOURCE) -# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.10-Source") +# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.@H5PL_PACKAGE_VERSION_MINOR@-Source") #endif() ############################################################################################################### diff --git a/BZIP2/config/cmake/HDFMacros.cmake b/BZIP2/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/BZIP2/config/cmake/HDFMacros.cmake +++ b/BZIP2/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/BZIP2/config/cmake/HDFPluginMacros.cmake b/BZIP2/config/cmake/HDFPluginMacros.cmake index 25bebccb..873efbdb 100644 --- a/BZIP2/config/cmake/HDFPluginMacros.cmake +++ b/BZIP2/config/cmake/HDFPluginMacros.cmake @@ -405,8 +405,8 @@ macro (INSTALL_SUPPORT varname) set (CPACK_PACKAGE_VERSION_MINOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_PATCH "") #set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") - set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") - set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_BINARY_DIR}/README.txt") set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PLUGIN_NAME} Installation") set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}") @@ -458,7 +458,7 @@ macro (INSTALL_SUPPORT varname) # With CPACK_WIX_LICENSE_RTF you can override the license file used by the # WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported # format or the .txt -> .rtf conversion does not work as expected. - set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") # .. variable:: CPACK_WIX_PRODUCT_ICON # The Icon shown next to the program name in Add/Remove programs. # set (CPACK_WIX_PRODUCT_ICON "${${PLUGIN_PACKAGE_NAME}_RESOURCES_DIR}\\\\${PLUGIN_PACKAGE_NAME}.ico") diff --git a/BZIP2/config/cmake/README.txt.cmake.in b/BZIP2/config/cmake/README.txt.cmake.in index 3470fdfc..bc4c2341 100644 --- a/BZIP2/config/cmake/README.txt.cmake.in +++ b/BZIP2/config/cmake/README.txt.cmake.in @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ This directory contains the binary (release) distribution of -@H5BZ2_PACKAGE_NAME@-@H5BZ2_PACKAGE_VERSION_MAJOR@ that was compiled on; +@H5BZ2_PACKAGE_NAME@-@H5BZ2_PACKAGE_VERSION_MAJOR@.@H5BZ2_PACKAGE_VERSION_MINOR@ that was compiled on; @BINARY_PLATFORM@. It was built with the following options: @@ -24,9 +24,9 @@ The customary location for the plugins is under the hdf5 libraries location. be installed into any location. On linux, the installer should be executed in the location to install the plugin. The plugins will install into the location: - /HDF_Group/HDF5/1.10/lib/plugin + /HDF_Group/HDF5/1.@H5BZ2_PACKAGE_VERSION_MINOR@/lib/plugin On Windows, the installer will default to the same location as the hdf5 installer: - C:/Program Files/HDF_Group/HDF5/1.10 and into the /lib/plugin dir. + C:/Program Files/HDF_Group/HDF5/1.@H5BZ2_PACKAGE_VERSION_MINOR@ and into the /lib/plugin dir. 1. Execute @H5BZ2_PACKAGE_NAME@-@H5BZ2_PACKAGE_VERSION@-@BINARY_SYSTEM_NAME@.@BINARY_INSTALL_ENDING@ 2. Follow prompts =========================================================================== diff --git a/BZIP2/config/cmake/binex/Using_CMake.txt b/BZIP2/config/cmake/binex/Using_CMake.txt index c289cba0..dafc5f16 100644 --- a/BZIP2/config/cmake/binex/Using_CMake.txt +++ b/BZIP2/config/cmake/binex/Using_CMake.txt @@ -27,8 +27,9 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5PL 1.10.x product requires a minimum CMake version - of 3.12. + web site. The HDF5PL 1.y.x product requires a minimum CMake version + of 3.12. If you are using VS2019, the minimum version is 3.15. If you are + using VS2022, the minimum version is 3.21. 2. You have installed the HDF5 library built with CMake, by executing the HDF Install Utility (the *.msi file in the binary package for @@ -38,9 +39,9 @@ I. Preconditions 3. Set the environment variable HDF5_ROOT to the installed location of the config files for HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -48,16 +49,16 @@ I. Preconditions 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/BZIP2/config/cmake/binex/config/cmake/HDFMacros.cmake b/BZIP2/config/cmake/binex/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/BZIP2/config/cmake/binex/config/cmake/HDFMacros.cmake +++ b/BZIP2/config/cmake/binex/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/BZIP2/example/test/testCM.sh b/BZIP2/example/test/testCM.sh index 8cab4211..67ded1fa 100644 --- a/BZIP2/example/test/testCM.sh +++ b/BZIP2/example/test/testCM.sh @@ -10,7 +10,7 @@ # If you do not have access to either file, you may request a copy from # help@hdfgroup.org. -# This file is for use of h5cc created with the CMake process +# This file is for use of h5cc created with the autotools process # HDF5_HOME is expected to be set srcdir=.. @@ -31,12 +31,12 @@ if ! test -f $H5CC; then fi case $H5CC in -*/*) H5DUMP=`echo $H5CC | sed -e 's/\/[^/]*$/\/h5dump-shared/'`; - test -x $H5DUMP || H5DUMP=h5dump-shared; - H5REPACK=`echo $H5CC | sed -e 's/\/[^/]*$/\/h5repack-shared/'`; - test -x $H5REPACK || H5REPACK=h5repack-shared;; -*) H5DUMP=h5dump-shared; - H5REPACK=h5repack-shared;; +*/*) H5DUMP=`echo $H5CC | sed -e 's/\/[^/]*$/\/h5dump/'`; + test -x $H5DUMP || H5DUMP=h5dump; + H5REPACK=`echo $H5CC | sed -e 's/\/[^/]*$/\/h5repack/'`; + test -x $H5REPACK || H5REPACK=h5repack;; +*) H5DUMP=h5dump; + H5REPACK=h5repack;; esac # Shell commands used in Makefiles @@ -55,7 +55,7 @@ ENVCMD="env HDF5_PLUGIN_PATH=$LD_LIBRARY_PATH/plugin" TESTDIR=$builddir -$H5CC $srcdir/h5ex_d_bzip2.c -o h5ex_d_bzip2 +$H5CC -shlib $srcdir/h5ex_d_bzip2.c -o h5ex_d_bzip2 SRC_TESTFILES="$srcdir/testfiles" LIST_TEST_FILES=" diff --git a/README.txt b/Building.txt similarity index 98% rename from README.txt rename to Building.txt index 92967094..ee834bbd 100644 --- a/README.txt +++ b/Building.txt @@ -1,4 +1,4 @@ -HDF5 1.10 plugins +HDF5 1.15 plugins Building these filter/example requires knowledge of the hdf5 and the compression library installation. Out-of-source build process is expected. diff --git a/CMakeLists.txt b/CMakeLists.txt index 9bbe70af..9bdbb2e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ BASIC_SETTINGS (${PL_PACKAGE_NAME}) set (H5PL_VERS_MAJOR "1") set (H5PL_VERS_MINOR "10") set (H5PL_VERS_RELEASE "10") -set (H5PL_OVERRIDE_VERSION "1.10.10") +set (H5PL_OVERRIDE_VERSION "1.${H5PL_VERS_MINOR}.${H5PL_VERS_RELEASE}") set (H5PL_SOVERS_MAJOR 1) set (H5PL_SOVERS_MINOR 0) diff --git a/JPEG/config/cmake/H5PL_Examples.cmake.in b/JPEG/config/cmake/H5PL_Examples.cmake.in index c5a3bcea..5f297d89 100644 --- a/JPEG/config/cmake/H5PL_Examples.cmake.in +++ b/JPEG/config/cmake/H5PL_Examples.cmake.in @@ -15,8 +15,8 @@ cmake_minimum_required(VERSION 3.12) # Execute from a command line: # ctest -S H5PL_Examples.cmake,OPTION=VALUE -C Release -VV -O test.log ############################################################################################################### -# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.10/lib/plugin, -# then is /usr/local/HDF_Group/HDF5/1.10 +# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin, +# then is /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@ # ctest -S H5PL_Examples.cmake,HDF5INSTALLDIR= -C Release -VV -O test.log ############################################################################################################### @@ -57,7 +57,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCTEST_CONFIGURATION_TYPE:STRING=$ ################################################################## if(NOT DEFINED HDF5INSTALLDIR) - set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.10") + set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@") endif() if(NOT DEFINED INSTALLDIR) set (INSTALLDIR "${HDF5INSTALLDIR}") @@ -88,7 +88,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILD #TAR_SOURCE - name of tarfile #if(NOT DEFINED TAR_SOURCE) -# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.10-Source") +# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.@H5PL_PACKAGE_VERSION_MINOR@-Source") #endif() ############################################################################################################### diff --git a/JPEG/config/cmake/HDFMacros.cmake b/JPEG/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/JPEG/config/cmake/HDFMacros.cmake +++ b/JPEG/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/JPEG/config/cmake/HDFPluginMacros.cmake b/JPEG/config/cmake/HDFPluginMacros.cmake index ed767d9f..33ac0847 100644 --- a/JPEG/config/cmake/HDFPluginMacros.cmake +++ b/JPEG/config/cmake/HDFPluginMacros.cmake @@ -405,8 +405,8 @@ macro (INSTALL_SUPPORT varname) set (CPACK_PACKAGE_VERSION_MINOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_PATCH "") #set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") - set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") - set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_BINARY_DIR}/README.txt") set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PLUGIN_NAME} Installation") set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}") @@ -458,7 +458,7 @@ macro (INSTALL_SUPPORT varname) # With CPACK_WIX_LICENSE_RTF you can override the license file used by the # WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported # format or the .txt -> .rtf conversion does not work as expected. - set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") # .. variable:: CPACK_WIX_PRODUCT_ICON # The Icon shown next to the program name in Add/Remove programs. # set (CPACK_WIX_PRODUCT_ICON "${${PLUGIN_PACKAGE_NAME}_RESOURCES_DIR}\\\\${PLUGIN_PACKAGE_NAME}.ico") diff --git a/JPEG/config/cmake/README.txt.cmake.in b/JPEG/config/cmake/README.txt.cmake.in index 28557039..5112597f 100644 --- a/JPEG/config/cmake/README.txt.cmake.in +++ b/JPEG/config/cmake/README.txt.cmake.in @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ This directory contains the binary (release) distribution of -@H5JPEG_PACKAGE_NAME@-@H5JPEG_PACKAGE_VERSION_MAJOR@ that was compiled on; +@H5JPEG_PACKAGE_NAME@-@H5JPEG_PACKAGE_VERSION_MAJOR@.@H5JPEG_PACKAGE_VERSION_MINOR@ that was compiled on; @BINARY_PLATFORM@. It was built with the following options: @@ -24,9 +24,9 @@ The customary location for the plugins is under the hdf5 libraries location. be installed into any location. On linux, the installer should be executed in the location to install the plugin. The plugins will install into the location: - /HDF_Group/HDF5/1.10/lib/plugin + /HDF_Group/HDF5/1.@H5JPEG_PACKAGE_VERSION_MINOR@/lib/plugin On Windows, the installer will default to the same location as the hdf5 installer: - C:/Program Files/HDF_Group/HDF5/1.10 and into the /lib/plugin dir. + C:/Program Files/HDF_Group/HDF5/1.@H5JPEG_PACKAGE_VERSION_MINOR@ and into the /lib/plugin dir. 1. Execute @H5JPEG_PACKAGE_NAME@-@H5JPEG_PACKAGE_VERSION@-@BINARY_SYSTEM_NAME@.@BINARY_INSTALL_ENDING@ 2. Follow prompts =========================================================================== @@ -100,6 +100,6 @@ Execute the test.sh script. =========================================================================== Documentation for this release can be found at the following URL: - http://www.hdfgroup.org/doc.html + https://portal.hdfgroup.org/display/support Bugs should be reported to help@hdfgroup.org. diff --git a/JPEG/config/cmake/binex/Using_CMake.txt b/JPEG/config/cmake/binex/Using_CMake.txt index c289cba0..dafc5f16 100644 --- a/JPEG/config/cmake/binex/Using_CMake.txt +++ b/JPEG/config/cmake/binex/Using_CMake.txt @@ -27,8 +27,9 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5PL 1.10.x product requires a minimum CMake version - of 3.12. + web site. The HDF5PL 1.y.x product requires a minimum CMake version + of 3.12. If you are using VS2019, the minimum version is 3.15. If you are + using VS2022, the minimum version is 3.21. 2. You have installed the HDF5 library built with CMake, by executing the HDF Install Utility (the *.msi file in the binary package for @@ -38,9 +39,9 @@ I. Preconditions 3. Set the environment variable HDF5_ROOT to the installed location of the config files for HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -48,16 +49,16 @@ I. Preconditions 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/JPEG/config/cmake/binex/config/cmake/HDFMacros.cmake b/JPEG/config/cmake/binex/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/JPEG/config/cmake/binex/config/cmake/HDFMacros.cmake +++ b/JPEG/config/cmake/binex/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/LZ4/config/cmake/ConfigureChecks.cmake b/LZ4/config/cmake/ConfigureChecks.cmake index 4af0ee13..bd184188 100644 --- a/LZ4/config/cmake/ConfigureChecks.cmake +++ b/LZ4/config/cmake/ConfigureChecks.cmake @@ -127,6 +127,9 @@ CHECK_INCLUDE_FILE_CONCAT ("inttypes.h" HAVE_INTTYPES_H) # _Bool type support CHECK_INCLUDE_FILE_CONCAT (stdbool.h HAVE_STDBOOL_H) +CHECK_INCLUDE_FILE_CONCAT ("netinet/in.h" HAVE_NETINET_IN_H) +CHECK_INCLUDE_FILE_CONCAT ("arpa/inet.h" HAVE_ARPA_INET_H) + #----------------------------------------------------------------------------- # Check for the math library "m" #----------------------------------------------------------------------------- @@ -140,6 +143,19 @@ endif () # UCB (BSD) compatibility library CHECK_LIBRARY_EXISTS_CONCAT ("ucb" gethostname HAVE_LIBUCB) +if (NOT WINDOWS) + CHECK_FUNCTION_EXISTS (ntohl HAVE_NTOHL) + CHECK_FUNCTION_EXISTS (htonl HAVE_HTONL) + CHECK_FUNCTION_EXISTS (ntohs HAVE_NTOHS) + CHECK_FUNCTION_EXISTS (htons HAVE_HTONS) +else () + set (CMAKE_REQUIRED_LIBRARIES "ws2_32") + check_symbol_exists (ntohl "winsock2.h" HAVE_NTOHL) + check_symbol_exists (htonl "winsock2.h" HAVE_HTONL) + check_symbol_exists (ntohs "winsock2.h" HAVE_NTOHS) + check_symbol_exists (htons "winsock2.h" HAVE_HTONS) +endif () + # For other tests to use the same libraries set (HDF_REQUIRED_LIBRARIES ${HDF_REQUIRED_LIBRARIES} ${LINK_LIBS}) diff --git a/LZ4/config/cmake/H5PL_Examples.cmake.in b/LZ4/config/cmake/H5PL_Examples.cmake.in index 1715c395..541dd5ca 100644 --- a/LZ4/config/cmake/H5PL_Examples.cmake.in +++ b/LZ4/config/cmake/H5PL_Examples.cmake.in @@ -15,8 +15,8 @@ cmake_minimum_required(VERSION 3.12) # Execute from a command line: # ctest -S H5PL_Examples.cmake,OPTION=VALUE -C Release -VV -O test.log ############################################################################################################### -# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.10/lib/plugin, -# then is /usr/local/HDF_Group/HDF5/1.10 +# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin, +# then is /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@ # ctest -S H5PL_Examples.cmake,HDF5INSTALLDIR= -C Release -VV -O test.log ############################################################################################################### @@ -57,7 +57,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCTEST_CONFIGURATION_TYPE:STRING=$ ################################################################## if(NOT DEFINED HDF5INSTALLDIR) - set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.10") + set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@") endif() if(NOT DEFINED INSTALLDIR) set (INSTALLDIR "${HDF5INSTALLDIR}") @@ -88,7 +88,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILD #TAR_SOURCE - name of tarfile #if(NOT DEFINED TAR_SOURCE) -# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.10-Source") +# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.@H5PL_PACKAGE_VERSION_MINOR@-Source") #endif() ############################################################################################################### diff --git a/LZ4/config/cmake/HDFMacros.cmake b/LZ4/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/LZ4/config/cmake/HDFMacros.cmake +++ b/LZ4/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/LZ4/config/cmake/HDFPluginMacros.cmake b/LZ4/config/cmake/HDFPluginMacros.cmake index 36e12fac..f0090409 100644 --- a/LZ4/config/cmake/HDFPluginMacros.cmake +++ b/LZ4/config/cmake/HDFPluginMacros.cmake @@ -405,8 +405,8 @@ macro (INSTALL_SUPPORT varname) set (CPACK_PACKAGE_VERSION_MINOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_PATCH "") #set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") - set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") - set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_BINARY_DIR}/README.txt") set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PLUGIN_NAME} Installation") set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}") @@ -458,7 +458,7 @@ macro (INSTALL_SUPPORT varname) # With CPACK_WIX_LICENSE_RTF you can override the license file used by the # WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported # format or the .txt -> .rtf conversion does not work as expected. - set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") # .. variable:: CPACK_WIX_PRODUCT_ICON # The Icon shown next to the program name in Add/Remove programs. # set (CPACK_WIX_PRODUCT_ICON "${${PLUGIN_PACKAGE_NAME}_RESOURCES_DIR}\\\\${PLUGIN_PACKAGE_NAME}.ico") diff --git a/LZ4/config/cmake/README.txt.cmake.in b/LZ4/config/cmake/README.txt.cmake.in index 24952d7c..a1cda81c 100644 --- a/LZ4/config/cmake/README.txt.cmake.in +++ b/LZ4/config/cmake/README.txt.cmake.in @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ This directory contains the binary (release) distribution of -@H5LZ4_PACKAGE_NAME@-@H5LZ4_PACKAGE_VERSION_MAJOR@ that was compiled on; +@H5LZ4_PACKAGE_NAME@-@H5LZ4_PACKAGE_VERSION_MAJOR@.@H5LZ4_PACKAGE_VERSION_MINOR@ that was compiled on; @BINARY_PLATFORM@. It was built with the following options: @@ -24,9 +24,9 @@ The customary location for the plugins is under the hdf5 libraries location. be installed into any location. On linux, the installer should be executed in the location to install the plugin. The plugins will install into the location: - /HDF_Group/HDF5/1.10/lib/plugin + /HDF_Group/HDF5/1.@H5LZ4_PACKAGE_VERSION_MINOR@/lib/plugin On Windows, the installer will default to the same location as the hdf5 installer: - C:/Program Files/HDF_Group/HDF5/1.10 and into the /lib/plugin dir. + C:/Program Files/HDF_Group/HDF5/1.@H5LZ4_PACKAGE_VERSION_MINOR@ and into the /lib/plugin dir. 1. Execute @H5LZ4_PACKAGE_NAME@-@H5LZ4_PACKAGE_VERSION@-@BINARY_SYSTEM_NAME@.@BINARY_INSTALL_ENDING@ 2. Follow prompts =========================================================================== diff --git a/LZ4/config/cmake/binex/Using_CMake.txt b/LZ4/config/cmake/binex/Using_CMake.txt index c289cba0..dafc5f16 100644 --- a/LZ4/config/cmake/binex/Using_CMake.txt +++ b/LZ4/config/cmake/binex/Using_CMake.txt @@ -27,8 +27,9 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5PL 1.10.x product requires a minimum CMake version - of 3.12. + web site. The HDF5PL 1.y.x product requires a minimum CMake version + of 3.12. If you are using VS2019, the minimum version is 3.15. If you are + using VS2022, the minimum version is 3.21. 2. You have installed the HDF5 library built with CMake, by executing the HDF Install Utility (the *.msi file in the binary package for @@ -38,9 +39,9 @@ I. Preconditions 3. Set the environment variable HDF5_ROOT to the installed location of the config files for HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -48,16 +49,16 @@ I. Preconditions 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/LZ4/config/cmake/binex/config/cmake/HDFMacros.cmake b/LZ4/config/cmake/binex/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/LZ4/config/cmake/binex/config/cmake/HDFMacros.cmake +++ b/LZ4/config/cmake/binex/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/LZ4/example/test/test.sh b/LZ4/example/test/test.sh index 77dbb76f..eeb88a72 100644 --- a/LZ4/example/test/test.sh +++ b/LZ4/example/test/test.sh @@ -1,17 +1,14 @@ #! /bin/sh # # Copyright by The HDF Group. -# Copyright by the Board of Trustees of the University of Illinois. # All rights reserved. # # This file is part of HDF5. The full HDF5 copyright notice, including # terms governing use, modification, and redistribution, is contained in -# the files COPYING and Copyright.html. COPYING can be found at the root -# of the source code distribution tree; Copyright.html can be found at the -# root level of an installed copy of the electronic HDF5 document set and -# is linked from the top-level documents page. It can also be found at -# http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have -# access to either file, you may request a copy from help@hdfgroup.org. +# the COPYING file, which can be found at the root of the source code +# distribution tree, or in https://www.hdfgroup.org/licenses. +# If you do not have access to either file, you may request a copy from +# help@hdfgroup.org. # This file is for use of h5cc created with the autotools process # HDF5_HOME is expected to be set diff --git a/LZ4/example/test/testCM.sh b/LZ4/example/test/testCM.sh index a8a20430..b6f88019 100644 --- a/LZ4/example/test/testCM.sh +++ b/LZ4/example/test/testCM.sh @@ -1,17 +1,14 @@ #! /bin/sh # # Copyright by The HDF Group. -# Copyright by the Board of Trustees of the University of Illinois. # All rights reserved. # # This file is part of HDF5. The full HDF5 copyright notice, including # terms governing use, modification, and redistribution, is contained in -# the files COPYING and Copyright.html. COPYING can be found at the root -# of the source code distribution tree; Copyright.html can be found at the -# root level of an installed copy of the electronic HDF5 document set and -# is linked from the top-level documents page. It can also be found at -# http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have -# access to either file, you may request a copy from help@hdfgroup.org. +# the COPYING file, which can be found at the root of the source code +# distribution tree, or in https://www.hdfgroup.org/licenses. +# If you do not have access to either file, you may request a copy from +# help@hdfgroup.org. # This file is for use of h5cc created with the CMake process # HDF5_HOME is expected to be set diff --git a/LZF/config/cmake/H5PL_Examples.cmake.in b/LZF/config/cmake/H5PL_Examples.cmake.in index 87bc4291..b5a7eb18 100644 --- a/LZF/config/cmake/H5PL_Examples.cmake.in +++ b/LZF/config/cmake/H5PL_Examples.cmake.in @@ -15,8 +15,8 @@ cmake_minimum_required(VERSION 3.12) # Execute from a command line: # ctest -S H5PL_Examples.cmake,OPTION=VALUE -C Release -VV -O test.log ############################################################################################################### -# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.10/lib/plugin, -# then is /usr/local/HDF_Group/HDF5/1.10 +# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin, +# then is /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@ # ctest -S H5PL_Examples.cmake,HDF5INSTALLDIR= -C Release -VV -O test.log ############################################################################################################### @@ -57,7 +57,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCTEST_CONFIGURATION_TYPE:STRING=$ ################################################################## if(NOT DEFINED HDF5INSTALLDIR) - set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.10") + set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@") endif() if(NOT DEFINED INSTALLDIR) set (INSTALLDIR "${HDF5INSTALLDIR}") @@ -88,7 +88,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILD #TAR_SOURCE - name of tarfile #if(NOT DEFINED TAR_SOURCE) -# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.10-Source") +# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.@H5PL_PACKAGE_VERSION_MINOR@-Source") #endif() ############################################################################################################### diff --git a/LZF/config/cmake/HDFMacros.cmake b/LZF/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/LZF/config/cmake/HDFMacros.cmake +++ b/LZF/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/LZF/config/cmake/HDFPluginMacros.cmake b/LZF/config/cmake/HDFPluginMacros.cmake index 7a44be6a..cda4ba39 100644 --- a/LZF/config/cmake/HDFPluginMacros.cmake +++ b/LZF/config/cmake/HDFPluginMacros.cmake @@ -405,8 +405,8 @@ macro (INSTALL_SUPPORT varname) set (CPACK_PACKAGE_VERSION_MINOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_PATCH "") #set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") - set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") - set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_BINARY_DIR}/README.txt") set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PLUGIN_NAME} Installation") set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}") @@ -458,7 +458,7 @@ macro (INSTALL_SUPPORT varname) # With CPACK_WIX_LICENSE_RTF you can override the license file used by the # WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported # format or the .txt -> .rtf conversion does not work as expected. - set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") # .. variable:: CPACK_WIX_PRODUCT_ICON # The Icon shown next to the program name in Add/Remove programs. # set (CPACK_WIX_PRODUCT_ICON "${${PLUGIN_PACKAGE_NAME}_RESOURCES_DIR}\\\\${PLUGIN_PACKAGE_NAME}.ico") diff --git a/LZF/config/cmake/README.txt.cmake.in b/LZF/config/cmake/README.txt.cmake.in index 57ff3a42..bdd48379 100644 --- a/LZF/config/cmake/README.txt.cmake.in +++ b/LZF/config/cmake/README.txt.cmake.in @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ This directory contains the binary (release) distribution of -@H5LZF_PACKAGE_NAME@-@H5LZF_PACKAGE_VERSION_MAJOR@ that was compiled on; +@H5LZF_PACKAGE_NAME@-@H5LZF_PACKAGE_VERSION_MAJOR@.@H5LZF_PACKAGE_VERSION_MINOR@ that was compiled on; @BINARY_PLATFORM@. It was built with the following options: @@ -24,9 +24,9 @@ The customary location for the plugins is under the hdf5 libraries location. be installed into any location. On linux, the installer should be executed in the location to install the plugin. The plugins will install into the location: - /HDF_Group/HDF5/1.10/lib/plugin + /HDF_Group/HDF5/1.@H5LZF_PACKAGE_VERSION_MINOR@/lib/plugin On Windows, the installer will default to the same location as the hdf5 installer: - C:/Program Files/HDF_Group/HDF5/1.10 and into the /lib/plugin dir. + C:/Program Files/HDF_Group/HDF5/1.@H5LZF_PACKAGE_VERSION_MINOR@ and into the /lib/plugin dir. 1. Execute @H5LZF_PACKAGE_NAME@-@H5LZF_PACKAGE_VERSION@-@BINARY_SYSTEM_NAME@.@BINARY_INSTALL_ENDING@ 2. Follow prompts =========================================================================== diff --git a/LZF/config/cmake/binex/Using_CMake.txt b/LZF/config/cmake/binex/Using_CMake.txt index c289cba0..dafc5f16 100644 --- a/LZF/config/cmake/binex/Using_CMake.txt +++ b/LZF/config/cmake/binex/Using_CMake.txt @@ -27,8 +27,9 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5PL 1.10.x product requires a minimum CMake version - of 3.12. + web site. The HDF5PL 1.y.x product requires a minimum CMake version + of 3.12. If you are using VS2019, the minimum version is 3.15. If you are + using VS2022, the minimum version is 3.21. 2. You have installed the HDF5 library built with CMake, by executing the HDF Install Utility (the *.msi file in the binary package for @@ -38,9 +39,9 @@ I. Preconditions 3. Set the environment variable HDF5_ROOT to the installed location of the config files for HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -48,16 +49,16 @@ I. Preconditions 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/LZF/config/cmake/binex/config/cmake/HDFMacros.cmake b/LZF/config/cmake/binex/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/LZF/config/cmake/binex/config/cmake/HDFMacros.cmake +++ b/LZF/config/cmake/binex/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/MAFISC/config/cmake/H5PL_Examples.cmake.in b/MAFISC/config/cmake/H5PL_Examples.cmake.in index fae1dbec..890b8952 100644 --- a/MAFISC/config/cmake/H5PL_Examples.cmake.in +++ b/MAFISC/config/cmake/H5PL_Examples.cmake.in @@ -15,8 +15,8 @@ cmake_minimum_required(VERSION 3.12) # Execute from a command line: # ctest -S H5PL_Examples.cmake,OPTION=VALUE -C Release -VV -O test.log ############################################################################################################### -# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.10/lib/plugin, -# then is /usr/local/HDF_Group/HDF5/1.10 +# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin, +# then is /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@ # ctest -S H5PL_Examples.cmake,HDF5INSTALLDIR= -C Release -VV -O test.log ############################################################################################################### @@ -57,7 +57,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCTEST_CONFIGURATION_TYPE:STRING=$ ################################################################## if(NOT DEFINED HDF5INSTALLDIR) - set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.10") + set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@") endif() if(NOT DEFINED INSTALLDIR) set (INSTALLDIR "${HDF5INSTALLDIR}") @@ -88,7 +88,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILD #TAR_SOURCE - name of tarfile #if(NOT DEFINED TAR_SOURCE) -# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.10-Source") +# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.@H5PL_PACKAGE_VERSION_MINOR@-Source") #endif() ############################################################################################################### diff --git a/MAFISC/config/cmake/HDFMacros.cmake b/MAFISC/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/MAFISC/config/cmake/HDFMacros.cmake +++ b/MAFISC/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/MAFISC/config/cmake/HDFPluginMacros.cmake b/MAFISC/config/cmake/HDFPluginMacros.cmake index 12f25418..999bd185 100644 --- a/MAFISC/config/cmake/HDFPluginMacros.cmake +++ b/MAFISC/config/cmake/HDFPluginMacros.cmake @@ -405,8 +405,8 @@ macro (INSTALL_SUPPORT varname) set (CPACK_PACKAGE_VERSION_MINOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_PATCH "") #set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") - set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") - set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_BINARY_DIR}/README.txt") set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PLUGIN_NAME} Installation") set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}") @@ -458,7 +458,7 @@ macro (INSTALL_SUPPORT varname) # With CPACK_WIX_LICENSE_RTF you can override the license file used by the # WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported # format or the .txt -> .rtf conversion does not work as expected. - set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") # .. variable:: CPACK_WIX_PRODUCT_ICON # The Icon shown next to the program name in Add/Remove programs. # set (CPACK_WIX_PRODUCT_ICON "${${PLUGIN_PACKAGE_NAME}_RESOURCES_DIR}\\\\${PLUGIN_PACKAGE_NAME}.ico") diff --git a/MAFISC/config/cmake/README.txt.cmake.in b/MAFISC/config/cmake/README.txt.cmake.in index acfdc6fe..ffc34bc0 100644 --- a/MAFISC/config/cmake/README.txt.cmake.in +++ b/MAFISC/config/cmake/README.txt.cmake.in @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ This directory contains the binary (release) distribution of -@H5MAFISC_PACKAGE_NAME@-@H5MAFISC_PACKAGE_VERSION_MAJOR@ that was compiled on; +@H5MAFISC_PACKAGE_NAME@-@H5MAFISC_PACKAGE_VERSION_MAJOR@.@H5MAFISC_PACKAGE_VERSION_MINOR@ that was compiled on; @BINARY_PLATFORM@. It was built with the following options: @@ -24,9 +24,9 @@ The customary location for the plugins is under the hdf5 libraries location. be installed into any location. On linux, the installer should be executed in the location to install the plugin. The plugins will install into the location: - /HDF_Group/HDF5/1.10/lib/plugin + /HDF_Group/HDF5/1.@H5MAFISC_PACKAGE_VERSION_MINOR@/lib/plugin On Windows, the installer will default to the same location as the hdf5 installer: - C:/Program Files/HDF_Group/HDF5/1.10 and into the /lib/plugin dir. + C:/Program Files/HDF_Group/HDF5/1.@H5MAFISC_PACKAGE_VERSION_MINOR@ and into the /lib/plugin dir. 1. Execute @H5MAFISC_PACKAGE_NAME@-@H5MAFISC_PACKAGE_VERSION@-@BINARY_SYSTEM_NAME@.@BINARY_INSTALL_ENDING@ 2. Follow prompts =========================================================================== diff --git a/MAFISC/config/cmake/binex/Using_CMake.txt b/MAFISC/config/cmake/binex/Using_CMake.txt index c289cba0..dafc5f16 100644 --- a/MAFISC/config/cmake/binex/Using_CMake.txt +++ b/MAFISC/config/cmake/binex/Using_CMake.txt @@ -27,8 +27,9 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5PL 1.10.x product requires a minimum CMake version - of 3.12. + web site. The HDF5PL 1.y.x product requires a minimum CMake version + of 3.12. If you are using VS2019, the minimum version is 3.15. If you are + using VS2022, the minimum version is 3.21. 2. You have installed the HDF5 library built with CMake, by executing the HDF Install Utility (the *.msi file in the binary package for @@ -38,9 +39,9 @@ I. Preconditions 3. Set the environment variable HDF5_ROOT to the installed location of the config files for HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -48,16 +49,16 @@ I. Preconditions 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/MAFISC/config/cmake/binex/config/cmake/HDFMacros.cmake b/MAFISC/config/cmake/binex/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/MAFISC/config/cmake/binex/config/cmake/HDFMacros.cmake +++ b/MAFISC/config/cmake/binex/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/MAFISC/src/liblzma/Makefile.am b/MAFISC/src/liblzma/Makefile.am index 819d5a5e..740081dd 100644 --- a/MAFISC/src/liblzma/Makefile.am +++ b/MAFISC/src/liblzma/Makefile.am @@ -50,7 +50,7 @@ endif ## Windows-specific stuff # Windows resource compiler support. libtool knows what to do with .rc -# files, but Automake (<= 1.13 at least) doesn't know. +# files, but Automake (<= 1.15 at least) doesn't know. # # We want the resource file only in shared liblzma. To avoid linking it into # static liblzma, we overwrite the static object file with an object file diff --git a/MAFISC/src/liblzma/Makefile.in b/MAFISC/src/liblzma/Makefile.in index 71a2bce4..8a25fa4e 100644 --- a/MAFISC/src/liblzma/Makefile.in +++ b/MAFISC/src/liblzma/Makefile.in @@ -1738,7 +1738,7 @@ uninstall-am: uninstall-docDATA uninstall-libLTLIBRARIES \ # Windows resource compiler support. libtool knows what to do with .rc -# files, but Automake (<= 1.13 at least) doesn't know. +# files, but Automake (<= 1.15 at least) doesn't know. # # We want the resource file only in shared liblzma. To avoid linking it into # static liblzma, we overwrite the static object file with an object file diff --git a/README.md b/README.md new file mode 100644 index 00000000..0688ee56 --- /dev/null +++ b/README.md @@ -0,0 +1,64 @@ +HDF5 Compression Plugins + +*Please refer to the Building.txt file for installation instructions.* + +This repository contains compression plugin code for the library that implement the +HDF5® data model API. The HDF5® data model has been adopted across +many industries and this implementation has become a de facto data management standard +in science, engineering, and research communities worldwide. + +The HDF Group is the developer, maintainer, and steward of HDF5 software. Find more +information about The HDF Group, the HDF5 Community, and other HDF5 software projects, +tools, and services at The HDF Group's website. + + https://www.hdfgroup.org/ + + + +HELP AND SUPPORT +---------------- +Information regarding Help Desk and Support services is available at + + https://portal.hdfgroup.org/display/support/The+HDF+Help+Desk + + + +FORUM and NEWS +-------------- +The following public forums are provided for public announcements and discussions +of interest to the general HDF5 Community. + + - Homepage of the Forum + https://forum.hdfgroup.org + + - News and Announcement + https://forum.hdfgroup.org/c/news-and-announcements-from-the-hdf-group + + - HDF5 and HDF4 Topics + https://forum.hdfgroup.org/c/hdf5 + +These forums are provided as an open and public service for searching and reading. +Posting requires completing a simple registration and allows one to join in the +conversation. Please read the following instructions pertaining to the Forum's +use and configuration + https://forum.hdfgroup.org/t/quickstart-guide-welcome-to-the-new-hdf-forum + + +HDF5 SNAPSHOTS, PREVIOUS RELEASES AND SOURCE CODE +-------------------------------------------- +Full Documentation and Programming Resources for this HDF5 can be found at + + https://portal.hdfgroup.org/display/HDF5 + +Periodically development code snapshots are provided at the following URL: + + https://gamma.hdfgroup.org/ftp/pub/outgoing/hdf5/snapshots/ + +Source packages for current and previous releases are located at: + + https://portal.hdfgroup.org/display/support/Downloads + +Development code is available at our Github location: + + https://github.com/HDFGroup/hdf5.git + diff --git a/SZ/config/cmake/H5PL_Examples.cmake.in b/SZ/config/cmake/H5PL_Examples.cmake.in index 02ba7a39..37bc16a5 100644 --- a/SZ/config/cmake/H5PL_Examples.cmake.in +++ b/SZ/config/cmake/H5PL_Examples.cmake.in @@ -15,8 +15,8 @@ cmake_minimum_required(VERSION 3.12) # Execute from a command line: # ctest -S H5PL_Examples.cmake,OPTION=VALUE -C Release -VV -O test.log ############################################################################################################### -# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.10/lib/plugin, -# then is /usr/local/HDF_Group/HDF5/1.10 +# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin, +# then is /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@ # ctest -S H5PL_Examples.cmake,HDF5INSTALLDIR= -C Release -VV -O test.log ############################################################################################################### @@ -57,7 +57,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCTEST_CONFIGURATION_TYPE:STRING=$ ################################################################## if(NOT DEFINED HDF5INSTALLDIR) - set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.10") + set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@") endif() if(NOT DEFINED INSTALLDIR) set (INSTALLDIR "${HDF5INSTALLDIR}") @@ -88,7 +88,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILD #TAR_SOURCE - name of tarfile #if(NOT DEFINED TAR_SOURCE) -# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.10-Source") +# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.@H5PL_PACKAGE_VERSION_MINOR@-Source") #endif() ############################################################################################################### diff --git a/SZ/config/cmake/HDFMacros.cmake b/SZ/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/SZ/config/cmake/HDFMacros.cmake +++ b/SZ/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/SZ/config/cmake/HDFPluginMacros.cmake b/SZ/config/cmake/HDFPluginMacros.cmake index 932b3df7..4cb9e457 100644 --- a/SZ/config/cmake/HDFPluginMacros.cmake +++ b/SZ/config/cmake/HDFPluginMacros.cmake @@ -405,8 +405,8 @@ macro (INSTALL_SUPPORT varname) set (CPACK_PACKAGE_VERSION_MINOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_PATCH "") #set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") - set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") - set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_BINARY_DIR}/README.txt") set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PLUGIN_NAME} Installation") set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}") @@ -458,7 +458,7 @@ macro (INSTALL_SUPPORT varname) # With CPACK_WIX_LICENSE_RTF you can override the license file used by the # WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported # format or the .txt -> .rtf conversion does not work as expected. - set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") # .. variable:: CPACK_WIX_PRODUCT_ICON # The Icon shown next to the program name in Add/Remove programs. # set (CPACK_WIX_PRODUCT_ICON "${${PLUGIN_PACKAGE_NAME}_RESOURCES_DIR}\\\\${PLUGIN_PACKAGE_NAME}.ico") diff --git a/SZ/config/cmake/README.txt.cmake.in b/SZ/config/cmake/README.txt.cmake.in index 5549585a..3aba8254 100644 --- a/SZ/config/cmake/README.txt.cmake.in +++ b/SZ/config/cmake/README.txt.cmake.in @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ This directory contains the binary (release) distribution of -@H5SZ_PACKAGE_NAME@-@H5SZ_PACKAGE_VERSION_MAJOR@ that was compiled on; +@H5SZ_PACKAGE_NAME@-@H5SZ_PACKAGE_VERSION_MAJOR@.@H5SZ_PACKAGE_VERSION_MINOR@ that was compiled on; @BINARY_PLATFORM@. It was built with the following options: @@ -24,9 +24,9 @@ The customary location for the plugins is under the hdf5 libraries location. be installed into any location. On linux, the installer should be executed in the location to install the plugin. The plugins will install into the location: - /HDF_Group/HDF5/1.10/lib/plugin + /HDF_Group/HDF5/1.@H5SZ_PACKAGE_VERSION_MINOR@/lib/plugin On Windows, the installer will default to the same location as the hdf5 installer: - C:/Program Files/HDF_Group/HDF5/1.10 and into the /lib/plugin dir. + C:/Program Files/HDF_Group/HDF5/1.@H5SZ_PACKAGE_VERSION_MINOR@ and into the /lib/plugin dir. 1. Execute @H5SZ_PACKAGE_NAME@-@H5SZ_PACKAGE_VERSION@-@BINARY_SYSTEM_NAME@.@BINARY_INSTALL_ENDING@ 2. Follow prompts =========================================================================== diff --git a/SZ/config/cmake/binex/Using_CMake.txt b/SZ/config/cmake/binex/Using_CMake.txt index c289cba0..dafc5f16 100644 --- a/SZ/config/cmake/binex/Using_CMake.txt +++ b/SZ/config/cmake/binex/Using_CMake.txt @@ -27,8 +27,9 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5PL 1.10.x product requires a minimum CMake version - of 3.12. + web site. The HDF5PL 1.y.x product requires a minimum CMake version + of 3.12. If you are using VS2019, the minimum version is 3.15. If you are + using VS2022, the minimum version is 3.21. 2. You have installed the HDF5 library built with CMake, by executing the HDF Install Utility (the *.msi file in the binary package for @@ -38,9 +39,9 @@ I. Preconditions 3. Set the environment variable HDF5_ROOT to the installed location of the config files for HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -48,16 +49,16 @@ I. Preconditions 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/SZ/config/cmake/binex/config/cmake/HDFMacros.cmake b/SZ/config/cmake/binex/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/SZ/config/cmake/binex/config/cmake/HDFMacros.cmake +++ b/SZ/config/cmake/binex/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/ZFP/config/cmake/H5PL_Examples.cmake.in b/ZFP/config/cmake/H5PL_Examples.cmake.in index 04657b83..d99c2cc5 100644 --- a/ZFP/config/cmake/H5PL_Examples.cmake.in +++ b/ZFP/config/cmake/H5PL_Examples.cmake.in @@ -15,8 +15,8 @@ cmake_minimum_required(VERSION 3.12) # Execute from a command line: # ctest -S H5PL_Examples.cmake,OPTION=VALUE -C Release -VV -O test.log ############################################################################################################### -# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.10/lib/plugin, -# then is /usr/local/HDF_Group/HDF5/1.10 +# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin, +# then is /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@ # ctest -S H5PL_Examples.cmake,HDF5INSTALLDIR= -C Release -VV -O test.log ############################################################################################################### @@ -57,7 +57,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCTEST_CONFIGURATION_TYPE:STRING=$ ################################################################## if(NOT DEFINED HDF5INSTALLDIR) - set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.10") + set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@") endif() if(NOT DEFINED INSTALLDIR) set (INSTALLDIR "${HDF5INSTALLDIR}") @@ -88,7 +88,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILD #TAR_SOURCE - name of tarfile #if(NOT DEFINED TAR_SOURCE) -# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.10-Source") +# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.@H5PL_PACKAGE_VERSION_MINOR@-Source") #endif() ############################################################################################################### diff --git a/ZFP/config/cmake/HDFMacros.cmake b/ZFP/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/ZFP/config/cmake/HDFMacros.cmake +++ b/ZFP/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/ZFP/config/cmake/HDFPluginMacros.cmake b/ZFP/config/cmake/HDFPluginMacros.cmake index 8e27a941..d7b8805a 100644 --- a/ZFP/config/cmake/HDFPluginMacros.cmake +++ b/ZFP/config/cmake/HDFPluginMacros.cmake @@ -405,8 +405,8 @@ macro (INSTALL_SUPPORT varname) set (CPACK_PACKAGE_VERSION_MINOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_PATCH "") #set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") - set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") - set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_BINARY_DIR}/README.txt") set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PLUGIN_NAME} Installation") set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}") @@ -458,7 +458,7 @@ macro (INSTALL_SUPPORT varname) # With CPACK_WIX_LICENSE_RTF you can override the license file used by the # WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported # format or the .txt -> .rtf conversion does not work as expected. - set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") # .. variable:: CPACK_WIX_PRODUCT_ICON # The Icon shown next to the program name in Add/Remove programs. # set (CPACK_WIX_PRODUCT_ICON "${${PLUGIN_PACKAGE_NAME}_RESOURCES_DIR}\\\\${PLUGIN_PACKAGE_NAME}.ico") diff --git a/ZFP/config/cmake/README.txt.cmake.in b/ZFP/config/cmake/README.txt.cmake.in index ffb8a8b2..7951c7d6 100644 --- a/ZFP/config/cmake/README.txt.cmake.in +++ b/ZFP/config/cmake/README.txt.cmake.in @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ This directory contains the binary (release) distribution of -@H5ZFP_PACKAGE_NAME@-@H5ZFP_PACKAGE_VERSION_MAJOR@ that was compiled on; +@H5ZFP_PACKAGE_NAME@-@H5ZFP_PACKAGE_VERSION_MAJOR@.@H5ZFP_PACKAGE_VERSION_MINOR@ that was compiled on; @BINARY_PLATFORM@. It was built with the following options: @@ -24,9 +24,9 @@ The customary location for the plugins is under the hdf5 libraries location. be installed into any location. On linux, the installer should be executed in the location to install the plugin. The plugins will install into the location: - /HDF_Group/HDF5/1.10/lib/plugin + /HDF_Group/HDF5/1.@H5ZFP_PACKAGE_VERSION_MINOR@/lib/plugin On Windows, the installer will default to the same location as the hdf5 installer: - C:/Program Files/HDF_Group/HDF5/1.10 and into the /lib/plugin dir. + C:/Program Files/HDF_Group/HDF5/1.@H5ZFP_PACKAGE_VERSION_MINOR@ and into the /lib/plugin dir. 1. Execute @H5ZFP_PACKAGE_NAME@-@H5ZFP_PACKAGE_VERSION@-@BINARY_SYSTEM_NAME@.@BINARY_INSTALL_ENDING@ 2. Follow prompts =========================================================================== diff --git a/ZFP/config/cmake/binex/Using_CMake.txt b/ZFP/config/cmake/binex/Using_CMake.txt index c289cba0..dafc5f16 100644 --- a/ZFP/config/cmake/binex/Using_CMake.txt +++ b/ZFP/config/cmake/binex/Using_CMake.txt @@ -27,8 +27,9 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5PL 1.10.x product requires a minimum CMake version - of 3.12. + web site. The HDF5PL 1.y.x product requires a minimum CMake version + of 3.12. If you are using VS2019, the minimum version is 3.15. If you are + using VS2022, the minimum version is 3.21. 2. You have installed the HDF5 library built with CMake, by executing the HDF Install Utility (the *.msi file in the binary package for @@ -38,9 +39,9 @@ I. Preconditions 3. Set the environment variable HDF5_ROOT to the installed location of the config files for HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -48,16 +49,16 @@ I. Preconditions 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/ZFP/config/cmake/binex/config/cmake/HDFMacros.cmake b/ZFP/config/cmake/binex/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/ZFP/config/cmake/binex/config/cmake/HDFMacros.cmake +++ b/ZFP/config/cmake/binex/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/ZFP/config/cmake/binex/example/testfiles/h5ex_d_zfp.tst b/ZFP/config/cmake/binex/example/testfiles/h5ex_d_zfp.tst index 0a1ba90a..5cf68903 100644 --- a/ZFP/config/cmake/binex/example/testfiles/h5ex_d_zfp.tst +++ b/ZFP/config/cmake/binex/example/testfiles/h5ex_d_zfp.tst @@ -4,8 +4,8 @@ zfp filter is available for encoding and decoding. ....Close the file and reopen for reading ........ Filter info is available from the dataset creation property Filter identifier is 32013 - Number of parameters is 6 with the value 5570817 - To find more about the filter check H5Z-ZFP-1.0.1 (ZFP-0.5.5) github.com/LLNL/H5Z-ZFP + Number of parameters is 6 with the value 268456208 + To find more about the filter check H5Z-ZFP-1.1.0 (ZFP-1.0.0) github.com/LLNL/H5Z-ZFP ....Reading zfp compressed data ................ Maximum value in DS1 is 1890.0000 zfp filter is available now since H5Dread triggered loading of the filter. diff --git a/ZFP/docs/installation.rst b/ZFP/docs/installation.rst index 1967091f..bb8a4dd6 100644 --- a/ZFP/docs/installation.rst +++ b/ZFP/docs/installation.rst @@ -79,7 +79,7 @@ Compiling HDF5_ `ISO_C_BINDING `_ to define the Fortran interface. -* If you are using HDF5-1.10 and wish to use the filter as a *library* (see :ref:`plugin-vs-library`), +* If you are using HDF5-1.12 and wish to use the filter as a *library* (see :ref:`plugin-vs-library`), you may need configure HDF5 with ``--disable-memory-alloc-sanity-check`` to work around a memory management issue in HDF5. diff --git a/ZFP/example/testfiles/ud_mesh_convert.mesh.h5.err b/ZFP/example/testfiles/ud_mesh_convert.mesh.h5.err index 4da4c879..83b012bc 100644 --- a/ZFP/example/testfiles/ud_mesh_convert.mesh.h5.err +++ b/ZFP/example/testfiles/ud_mesh_convert.mesh.h5.err @@ -2,86 +2,104 @@ HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs): #000: (file name) line (number) in H5Dcreate2(): unable to create dataset major: Dataset minor: Unable to initialize object - #001: (file name) line (number) in H5D__create_named(): unable to create and link to dataset + #001: (file name) line (number) in H5VL_dataset_create(): dataset create failed + major: Virtual Object Layer + minor: Unable to create file + #002: (file name) line (number) in H5VL__dataset_create(): dataset create failed + major: Virtual Object Layer + minor: Unable to create file + #003: (file name) line (number) in H5VL__native_dataset_create(): unable to create dataset major: Dataset minor: Unable to initialize object - #002: (file name) line (number) in H5L_link_object(): unable to create new link to object + #004: (file name) line (number) in H5D__create_named(): unable to create and link to dataset + major: Dataset + minor: Unable to initialize object + #005: (file name) line (number) in H5L_link_object(): unable to create new link to object major: Links minor: Unable to initialize object - #003: (file name) line (number) in H5L__create_real(): can't insert link + #006: (file name) line (number) in H5L__create_real(): can't insert link major: Links minor: Unable to insert object - #004: (file name) line (number) in H5G_traverse(): internal path traversal failed + #007: (file name) line (number) in H5G_traverse(): internal path traversal failed major: Symbol table minor: Object not found - #005: (file name) line (number) in H5G__traverse_real(): traversal operator failed + #008: (file name) line (number) in H5G__traverse_real(): traversal operator failed major: Symbol table minor: Callback failed - #006: (file name) line (number) in H5L__link_cb(): unable to create object + #009: (file name) line (number) in H5L__link_cb(): unable to create object major: Links minor: Unable to initialize object - #007: (file name) line (number) in H5O_obj_create(): unable to open object + #010: (file name) line (number) in H5O_obj_create(): unable to open object major: Object header minor: Can't open object - #008: (file name) line (number) in H5O__dset_create(): unable to create dataset + #011: (file name) line (number) in H5O__dset_create(): unable to create dataset major: Dataset minor: Unable to initialize object - #009: (file name) line (number) in H5D__create(): I/O filters can't operate on this dataset + #012: (file name) line (number) in H5D__create(): I/O filters can't operate on this dataset major: Invalid arguments to routine minor: Unable to initialize object - #010: (file name) line (number) in H5Z_can_apply(): unable to apply filter + #013: (file name) line (number) in H5Z_can_apply(): unable to apply filter major: Data filters minor: Error from filter 'can apply' callback - #011: (file name) line (number) in H5Z__prepare_prelude_callback_dcpl(): unable to apply filter + #014: (file name) line (number) in H5Z__prepare_prelude_callback_dcpl(): unable to apply filter major: Data filters minor: Error from filter 'can apply' callback - #012: (file name) line (number) in H5Z__prelude_callback(): filter parameters not appropriate + #015: (file name) line (number) in H5Z__prelude_callback(): filter parameters not appropriate major: Data filters minor: Error from filter 'can apply' callback - #013: (file name) line (number) in H5Z_zfp_can_apply(): requires datatype size of 4 or 8 + #016: (file name) line (number) in H5Z_zfp_can_apply(): requires datatype size of 4 or 8 major: Data filters minor: Inappropriate type HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs): #000: (file name) line (number) in H5Dcreate2(): unable to create dataset major: Dataset minor: Unable to initialize object - #001: (file name) line (number) in H5D__create_named(): unable to create and link to dataset + #001: (file name) line (number) in H5VL_dataset_create(): dataset create failed + major: Virtual Object Layer + minor: Unable to create file + #002: (file name) line (number) in H5VL__dataset_create(): dataset create failed + major: Virtual Object Layer + minor: Unable to create file + #003: (file name) line (number) in H5VL__native_dataset_create(): unable to create dataset + major: Dataset + minor: Unable to initialize object + #004: (file name) line (number) in H5D__create_named(): unable to create and link to dataset major: Dataset minor: Unable to initialize object - #002: (file name) line (number) in H5L_link_object(): unable to create new link to object + #005: (file name) line (number) in H5L_link_object(): unable to create new link to object major: Links minor: Unable to initialize object - #003: (file name) line (number) in H5L__create_real(): can't insert link + #006: (file name) line (number) in H5L__create_real(): can't insert link major: Links minor: Unable to insert object - #004: (file name) line (number) in H5G_traverse(): internal path traversal failed + #007: (file name) line (number) in H5G_traverse(): internal path traversal failed major: Symbol table minor: Object not found - #005: (file name) line (number) in H5G__traverse_real(): traversal operator failed + #008: (file name) line (number) in H5G__traverse_real(): traversal operator failed major: Symbol table minor: Callback failed - #006: (file name) line (number) in H5L__link_cb(): unable to create object + #009: (file name) line (number) in H5L__link_cb(): unable to create object major: Links minor: Unable to initialize object - #007: (file name) line (number) in H5O_obj_create(): unable to open object + #010: (file name) line (number) in H5O_obj_create(): unable to open object major: Object header minor: Can't open object - #008: (file name) line (number) in H5O__dset_create(): unable to create dataset + #011: (file name) line (number) in H5O__dset_create(): unable to create dataset major: Dataset minor: Unable to initialize object - #009: (file name) line (number) in H5D__create(): I/O filters can't operate on this dataset + #012: (file name) line (number) in H5D__create(): I/O filters can't operate on this dataset major: Invalid arguments to routine minor: Unable to initialize object - #010: (file name) line (number) in H5Z_can_apply(): unable to apply filter + #013: (file name) line (number) in H5Z_can_apply(): unable to apply filter major: Data filters minor: Error from filter 'can apply' callback - #011: (file name) line (number) in H5Z__prepare_prelude_callback_dcpl(): unable to apply filter + #014: (file name) line (number) in H5Z__prepare_prelude_callback_dcpl(): unable to apply filter major: Data filters minor: Error from filter 'can apply' callback - #012: (file name) line (number) in H5Z__prelude_callback(): filter parameters not appropriate + #015: (file name) line (number) in H5Z__prelude_callback(): filter parameters not appropriate major: Data filters minor: Error from filter 'can apply' callback - #013: (file name) line (number) in H5Z_zfp_can_apply(): requires datatype size of 4 or 8 + #016: (file name) line (number) in H5Z_zfp_can_apply(): requires datatype size of 4 or 8 major: Data filters minor: Inappropriate type H5tools-DIAG: Error detected in HDF5:tools (version (number)) thread (IDs): diff --git a/ZFP/src/H5Zzfp.c b/ZFP/src/H5Zzfp.c index 11e588f7..0f951ea5 100644 --- a/ZFP/src/H5Zzfp.c +++ b/ZFP/src/H5Zzfp.c @@ -1,4 +1,5 @@ - +#include +#include /* This code was based heavily on one of the HDF5 library's internal filter, H5Zszip.c. The intention in so doing wasn't so much to @@ -72,7 +73,6 @@ and calls to bitstream methods with 'B ' as in #include "H5PLextern.h" #include "H5Spublic.h" #include "zfp.h" -#include "bitstream.h" #define Z #define B #endif /* ] AS_SILO_BUILTIN */ @@ -80,14 +80,30 @@ and calls to bitstream methods with 'B ' as in #include "H5Zzfp_plugin.h" #include "H5Zzfp_props_private.h" -/* Convenient CPP logic to capture ZFP lib version numbers as compile time string and hex number */ +/* Convenient CPP logic to capture ZFP lib version numbers as compile time hex number */ +#define ZFP_VERSION_NO__(Maj,Min,Pat,Twk) (0x ## Maj ## Min ## Pat ## Twk) +#define ZFP_VERSION_NO_(Maj,Min,Pat,Twk) ZFP_VERSION_NO__(Maj,Min,Pat,Twk) +#if defined(ZFP_VERSION_TWEAK) +#define ZFP_VERSION_NO ZFP_VERSION_NO_(ZFP_VERSION_MAJOR,ZFP_VERSION_MINOR,ZFP_VERSION_PATCH,ZFP_VERSION_TWEAK) +#elif defined(ZFP_VERSION_RELEASE) +#define ZFP_VERSION_NO ZFP_VERSION_NO_(ZFP_VERSION_MAJOR,ZFP_VERSION_MINOR,ZFP_VERSION_RELEASE,0) +#elif defined(ZFP_VERSION_PATCH) +#define ZFP_VERSION_NO ZFP_VERSION_NO_(ZFP_VERSION_MAJOR,ZFP_VERSION_MINOR,ZFP_VERSION_PATCH,0) +#else +#error ZFP LIBRARY VERSION NOT DETECTED +#endif + +/* Older versions of ZFP don't define this */ +#ifndef ZFP_VERSION_STRING #define ZFP_VERSION_STR__(Maj,Min,Rel) #Maj "." #Min "." #Rel #define ZFP_VERSION_STR_(Maj,Min,Rel) ZFP_VERSION_STR__(Maj,Min,Rel) -#define ZFP_VERSION_STR ZFP_VERSION_STR_(ZFP_VERSION_MAJOR,ZFP_VERSION_MINOR,ZFP_VERSION_RELEASE) +#define ZFP_VERSION_STRING ZFP_VERSION_STR_(ZFP_VERSION_MAJOR,ZFP_VERSION_MINOR,ZFP_VERSION_RELEASE) +#endif -#define ZFP_VERSION_NO__(Maj,Min,Rel) (0x0 ## Maj ## Min ## Rel) -#define ZFP_VERSION_NO_(Maj,Min,Rel) ZFP_VERSION_NO__(Maj,Min,Rel) -#define ZFP_VERSION_NO ZFP_VERSION_NO_(ZFP_VERSION_MAJOR,ZFP_VERSION_MINOR,ZFP_VERSION_RELEASE) +/* Older versions of ZFP don't define this publicly */ +#ifndef ZFP_CODEC +#define ZFP_CODEC ZFP_VERSION_MINOR +#endif /* Convenient CPP logic to capture H5Z_ZFP Filter version numbers as string and hex number */ #define H5Z_FILTER_ZFP_VERSION_STR__(Maj,Min,Pat) #Maj "." #Min "." #Pat @@ -109,8 +125,8 @@ do \ static int h5z_zfp_was_registered = 0; -static size_t H5Z_filter_zfp (unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[], - size_t nbytes, size_t *buf_size, void **buf); +static size_t H5Z_filter_zfp(unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[], + size_t nbytes, size_t *buf_size, void **buf); static htri_t H5Z_zfp_can_apply(hid_t dcpl_id, hid_t type_id, hid_t space_id); static herr_t H5Z_zfp_set_local(hid_t dcpl_id, hid_t type_id, hid_t space_id); @@ -126,7 +142,7 @@ const H5Z_class2_t H5Z_ZFP[1] = {{ 1, /* decoder_present flag */ "H5Z-ZFP" /* Filter name for debugging */ "-" H5Z_FILTER_ZFP_VERSION_STR - " (ZFP-" ZFP_VERSION_STR ") " + " (ZFP-" ZFP_VERSION_STRING ") " "github.com/LLNL/H5Z-ZFP", (H5Z_can_apply_func_t)(H5Z_zfp_can_apply), /* The "can apply" callback */ (H5Z_set_local_func_t)(H5Z_zfp_set_local), /* The "set local" callback */ @@ -162,11 +178,6 @@ int H5Z_zfp_finalize(void) return 1; } -static void H5Z_zfp_final(void) -{ - H5Z_zfp_finalize(); -} - static htri_t H5Z_zfp_can_apply(hid_t dcpl_id, hid_t type_id, hid_t chunk_space_id) { @@ -196,7 +207,7 @@ H5Z_zfp_can_apply(hid_t dcpl_id, hid_t type_id, hid_t chunk_space_id) H5Z_ZFP_PUSH_AND_GOTO(H5E_PLINE, H5E_BADTYPE, -1, "bad chunk data space"); /* confirm ZFP library can handle this data */ -#if ZFP_VERSION_NO < 0x0051 +#if ZFP_VERSION_NO < 0x0510 if (!(dclass == H5T_FLOAT)) H5Z_ZFP_PUSH_AND_GOTO(H5E_PLINE, H5E_BADTYPE, 0, "requires datatype class of H5T_FLOAT"); @@ -217,11 +228,12 @@ H5Z_zfp_can_apply(hid_t dcpl_id, hid_t type_id, hid_t chunk_space_id) ndims_used++; } +#if ZFP_VERSION_NO < 0x0530 if (ndims_used == 0 || ndims_used > max_ndims) -#if ZFP_VERSION_NO < 0x0053 H5Z_ZFP_PUSH_AND_GOTO(H5E_PLINE, H5E_BADVALUE, 0, "chunk must have only 1...3 non-unity dimensions"); #else + if (ndims_used == 0 || ndims_used > max_ndims) H5Z_ZFP_PUSH_AND_GOTO(H5E_PLINE, H5E_BADVALUE, 0, "chunk must have only 1...4 non-unity dimensions"); #endif @@ -308,16 +320,14 @@ H5Z_zfp_set_local(hid_t dcpl_id, hid_t type_id, hid_t chunk_space_id) case 1: dummy_field = Z zfp_field_1d(0, zt, dims_used[0]); break; case 2: dummy_field = Z zfp_field_2d(0, zt, dims_used[1], dims_used[0]); break; case 3: dummy_field = Z zfp_field_3d(0, zt, dims_used[2], dims_used[1], dims_used[0]); break; -#if ZFP_VERSION_NO >= 0x0054 +#if ZFP_VERSION_NO >= 0x0540 case 4: dummy_field = Z zfp_field_4d(0, zt, dims_used[3], dims_used[2], dims_used[1], dims_used[0]); break; #endif default: -#if ZFP_VERSION_NO < 0x0053 - H5Z_ZFP_PUSH_AND_GOTO(H5E_PLINE, H5E_BADVALUE, 0, - "chunks may have only 1...3 non-unity dims"); +#if ZFP_VERSION_NO < 0x0530 + H5Z_ZFP_PUSH_AND_GOTO(H5E_PLINE, H5E_BADVALUE, 0, "chunks may have only 1...3 non-unity dims"); #else - H5Z_ZFP_PUSH_AND_GOTO(H5E_PLINE, H5E_BADVALUE, 0, - "chunks may have only 1...4 non-unity dims"); + H5Z_ZFP_PUSH_AND_GOTO(H5E_PLINE, H5E_BADVALUE, 0, "chunks may have only 1...4 non-unity dims"); #endif } if (!dummy_field) @@ -346,7 +356,7 @@ H5Z_zfp_set_local(hid_t dcpl_id, hid_t type_id, hid_t chunk_space_id) /* Into hdr_cd_values, we encode ZFP library and H5Z-ZFP plugin version info at entry 0 and use remaining entries as a tiny buffer to write ZFP native header. */ - hdr_cd_values[0] = (unsigned int) ((ZFP_VERSION_NO<<16) | H5Z_FILTER_ZFP_VERSION_NO); + hdr_cd_values[0] = (unsigned int) ((ZFP_VERSION_NO<<16) | (ZFP_CODEC<<12) | H5Z_FILTER_ZFP_VERSION_NO); if (0 == (dummy_bstr = B stream_open(&hdr_cd_values[1], sizeof(hdr_cd_values)))) H5Z_ZFP_PUSH_AND_GOTO(H5E_RESOURCE, H5E_NOSPACE, 0, "stream_open() failed"); @@ -362,14 +372,14 @@ H5Z_zfp_set_local(hid_t dcpl_id, hid_t type_id, hid_t chunk_space_id) Z zfp_stream_set_rate(dummy_zstr, ctrls.details.rate, zt, ndims_used, 0); break; case H5Z_ZFP_MODE_PRECISION: -#if ZFP_VERSION_NO < 0x0051 +#if ZFP_VERSION_NO < 0x0510 Z zfp_stream_set_precision(dummy_zstr, ctrls.details.prec, zt); #else Z zfp_stream_set_precision(dummy_zstr, ctrls.details.prec); #endif break; case H5Z_ZFP_MODE_ACCURACY: -#if ZFP_VERSION_NO < 0x0051 +#if ZFP_VERSION_NO < 0x0510 Z zfp_stream_set_accuracy(dummy_zstr, ctrls.details.acc, zt); #else Z zfp_stream_set_accuracy(dummy_zstr, ctrls.details.acc); @@ -380,7 +390,7 @@ H5Z_zfp_set_local(hid_t dcpl_id, hid_t type_id, hid_t chunk_space_id) ctrls.details.expert.maxbits, ctrls.details.expert.maxprec, ctrls.details.expert.minexp); break; -#if ZFP_VERSION_NO >= 0x0055 +#if ZFP_VERSION_NO >= 0x0550 case H5Z_ZFP_MODE_REVERSIBLE: Z zfp_stream_set_reversible(dummy_zstr); break; @@ -397,14 +407,14 @@ H5Z_zfp_set_local(hid_t dcpl_id, hid_t type_id, hid_t chunk_space_id) Z zfp_stream_set_rate(dummy_zstr, *((double*) &mem_cd_values[2]), zt, ndims_used, 0); break; case H5Z_ZFP_MODE_PRECISION: -#if ZFP_VERSION_NO < 0x0051 +#if ZFP_VERSION_NO < 0x0510 Z zfp_stream_set_precision(dummy_zstr, mem_cd_values[2], zt); #else Z zfp_stream_set_precision(dummy_zstr, mem_cd_values[2]); #endif break; case H5Z_ZFP_MODE_ACCURACY: -#if ZFP_VERSION_NO < 0x0051 +#if ZFP_VERSION_NO < 0x0510 Z zfp_stream_set_accuracy(dummy_zstr, *((double*) &mem_cd_values[2]), zt); #else Z zfp_stream_set_accuracy(dummy_zstr, *((double*) &mem_cd_values[2])); @@ -414,7 +424,7 @@ H5Z_zfp_set_local(hid_t dcpl_id, hid_t type_id, hid_t chunk_space_id) Z zfp_stream_set_params(dummy_zstr, mem_cd_values[2], mem_cd_values[3], mem_cd_values[4], (int) mem_cd_values[5]); break; -#if ZFP_VERSION_NO >= 0x0055 +#if ZFP_VERSION_NO >= 0x0550 case H5Z_ZFP_MODE_REVERSIBLE: Z zfp_stream_set_reversible(dummy_zstr); break; @@ -529,6 +539,58 @@ get_zfp_info_from_cd_values(size_t cd_nelmts, unsigned int const *cd_values, return retval; } +/* +Compare ZFP codec version used when data was written to what is +currently being used to read the data. There is a challenge here +in that earlier versions of this filter recorded only the ZFP +library version, not the codec version. Although ZFP codec version +was encoded as minor digit of ZFP library version, that convention +ended with ZFP version 1.0.0. So, if an old version of this filter +is used with newer ZFP libraries, we won't know the codec version +used to write the data with certainty. The best we can do is guess +it. If there becomes a version of the ZFP library for which that guess +(currently 5) is wrong, the logic here will need to be updated to +capture knowledge of the ZFP library version for which the codec +version was incrimented. +*/ + +static int +zfp_codec_version_mismatch( + unsigned int h5zfpver_from_cd_val_data_in_file, + unsigned int zfpver_from_cd_val_data_in_file, + unsigned int zfpcodec_from_cd_val_data_in_file) +{ + int writer_codec; + int reader_codec; + + if (h5zfpver_from_cd_val_data_in_file < 0x0110) + { + /* for data written with older versions of the filter, + we infer codec from ZFP library version stored in the file. */ + zfpver_from_cd_val_data_in_file <<= 4; + if (zfpver_from_cd_val_data_in_file < 0x0500) + writer_codec = 4; + else if (zfpver_from_cd_val_data_in_file < 0x1000) + writer_codec = (zfpver_from_cd_val_data_in_file & 0x0F00)>>8; + else if (zfpver_from_cd_val_data_in_file == 0x1000) + writer_codec = 5; + else + writer_codec = 5; /* can only guess */ + } + else + writer_codec = zfpcodec_from_cd_val_data_in_file; + +#if ZFP_VERSION_NO < 0x0500 + reader_codec = 4; +#elif ZFP_VERSION_NO < 0x1000 + reader_codec = 5; +#else + reader_codec = ZFP_CODEC; +#endif + + return writer_codec > reader_codec; +} + static size_t H5Z_filter_zfp(unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[], size_t nbytes, @@ -537,7 +599,9 @@ H5Z_filter_zfp(unsigned int flags, size_t cd_nelmts, static char const *_funcname_ = "H5Z_filter_zfp"; void *newbuf = 0; size_t retval = 0; - int cd_vals_zfpver = (cd_values[0]>>16)&0x0000FFFF; + unsigned int cd_vals_h5zzfpver = cd_values[0]&0x00000FFF; + unsigned int cd_vals_zfpcodec = (cd_values[0]>>12)&0x0000000F; + unsigned int cd_vals_zfpver = (cd_values[0]>>16)&0x0000FFFF; H5T_order_t swap = H5T_ORDER_NONE; uint64 zfp_mode, zfp_meta; bitstream *bstr = 0; @@ -553,10 +617,9 @@ H5Z_filter_zfp(unsigned int flags, size_t cd_nelmts, int status; size_t bsize, dsize; - /* Worry about zfp version and endian mismatch only for decompression */ - if (cd_vals_zfpver > ZFP_VERSION) - H5Z_ZFP_PUSH_AND_GOTO(H5E_PLINE, H5E_NOSPACE, 0, "ZFP lib version, " - ZFP_VERSION_STR ", too old to decompress this data"); + /* Worry about zfp version mismatch only for decompression */ + if (zfp_codec_version_mismatch(cd_vals_h5zzfpver, cd_vals_zfpver, cd_vals_zfpcodec)) + H5Z_ZFP_PUSH_AND_GOTO(H5E_PLINE, H5E_READERROR, 0, "ZFP codec version mismatch"); /* Set up the ZFP field object */ if (0 == (zfld = Z zfp_field_alloc())) diff --git a/ZFP/src/H5Zzfp_plugin.h b/ZFP/src/H5Zzfp_plugin.h index f875dc0a..0e4c9932 100644 --- a/ZFP/src/H5Zzfp_plugin.h +++ b/ZFP/src/H5Zzfp_plugin.h @@ -1,23 +1,14 @@ #ifndef H5Z_ZFP_PLUGIN_H #define H5Z_ZFP_PLUGIN_H -/* Filter ID number registered with The HDF Group */ -#define H5Z_FILTER_ZFP 32013 +#include "H5Zzfp_version.h" -#define H5Z_FILTER_ZFP_VERSION_MAJOR 1 -#define H5Z_FILTER_ZFP_VERSION_MINOR 0 -#define H5Z_FILTER_ZFP_VERSION_PATCH 1 +/* HDF5 generic cd_vals[] memory layout (6 unsigned ints) for + controlling H5Z-ZFP behavior as a plugin. NOTE: These cd_vals + used to pass properties in-memory from caller to filter via HDF5 + generic interface are NOT THE SAME AS the cd_vals[] that + ultimately get stored to the file for the filter "header" data. -#define H5Z_ZFP_MODE_RATE 1 -#define H5Z_ZFP_MODE_PRECISION 2 -#define H5Z_ZFP_MODE_ACCURACY 3 -#define H5Z_ZFP_MODE_EXPERT 4 -#define H5Z_ZFP_MODE_REVERSIBLE 5 - -#define H5Z_ZFP_CD_NELMTS_MEM ((size_t) 6) /* used in public API to filter */ -#define H5Z_ZFP_CD_NELMTS_MAX ((size_t) 6) /* max, over all versions, used in dataset header */ - -/* HDF5 filter cd_vals[] layout (6 unsigned ints) cd_vals 0 1 2 3 4 5 ---------------------------------------------------------------- rate: 1 unused rateA rateB unused unused @@ -67,10 +58,10 @@ do { \ if ((N>=6)&&(CD[0] == H5Z_ZFP_MODE_EXPERT)) \ { \ unsigned int *p; int *q; \ - p = MiB; *p = CD[2]; \ - p = MaB; *p = CD[3]; \ - p = MaP; *p = CD[4]; \ - q = MiE; *q = (int) CD[5]; \ + p = &MiB; *p = CD[2]; \ + p = &MaB; *p = CD[3]; \ + p = &MaP; *p = CD[4]; \ + q = &MiE; *q = (int) CD[5]; \ } \ } while(0) diff --git a/ZFP/src/H5Zzfp_props.c b/ZFP/src/H5Zzfp_props.c index a07a39ab..372c9d6c 100644 --- a/ZFP/src/H5Zzfp_props.c +++ b/ZFP/src/H5Zzfp_props.c @@ -54,14 +54,14 @@ static herr_t H5Pset_zfp(hid_t plist, int mode, ...) } case H5Z_ZFP_MODE_PRECISION: { - ctrls_p->details.prec = va_arg(ap, uint); + ctrls_p->details.prec = va_arg(ap, unsigned int); break; } case H5Z_ZFP_MODE_EXPERT: { - ctrls_p->details.expert.minbits = va_arg(ap, uint); - ctrls_p->details.expert.maxbits = va_arg(ap, uint); - ctrls_p->details.expert.maxprec = va_arg(ap, uint); + ctrls_p->details.expert.minbits = va_arg(ap, unsigned int); + ctrls_p->details.expert.maxbits = va_arg(ap, unsigned int); + ctrls_p->details.expert.maxprec = va_arg(ap, unsigned int); ctrls_p->details.expert.minexp = va_arg(ap, int); break; } diff --git a/ZFP/src/H5Zzfp_props.h b/ZFP/src/H5Zzfp_props.h index 2027571a..c8a3625c 100644 --- a/ZFP/src/H5Zzfp_props.h +++ b/ZFP/src/H5Zzfp_props.h @@ -14,6 +14,13 @@ extern herr_t H5Pset_zfp_expert(hid_t plist, unsigned int minbits, unsigned int unsigned int maxprec, int minexp); extern herr_t H5Pset_zfp_reversible(hid_t plist); +extern void H5Pset_zfp_rate_cdata_f(double rate, size_t *cd_nelmts, unsigned int *cd_values); +extern void H5Pset_zfp_precision_cdata_f(unsigned int prec, size_t *cd_nelmts, unsigned int *cd_values); +extern void H5Pset_zfp_accuracy_cdata_f(double acc, size_t *cd_nelmts, unsigned int *cd_values); +extern void H5Pset_zfp_expert_cdata_f(unsigned int minbits, unsigned int maxbits, unsigned int maxprec, + int minexp, size_t *cd_nelmts, unsigned int *cd_values); +extern void H5Pset_zfp_reversible_cdata_f(size_t *cd_nelmts, unsigned int *cd_values); + #ifdef __cplusplus } #endif diff --git a/ZFP/src/H5Zzfp_props_f.F90 b/ZFP/src/H5Zzfp_props_f.F90 index 96ac55b4..962e859e 100644 --- a/ZFP/src/H5Zzfp_props_f.F90 +++ b/ZFP/src/H5Zzfp_props_f.F90 @@ -7,9 +7,9 @@ MODULE H5Zzfp_props_f INTEGER :: H5Z_FILTER_ZFP=32013 INTEGER :: H5Z_FILTER_ZFP_VERSION_MAJOR=1 - INTEGER :: H5Z_FILTER_ZFP_VERSION_MINOR=0 - INTEGER :: H5Z_FILTER_ZFP_VERSION_PATCH=1 - + INTEGER :: H5Z_FILTER_ZFP_VERSION_MINOR=1 + INTEGER :: H5Z_FILTER_ZFP_VERSION_PATCH=0 + INTEGER(C_SIZE_T), PARAMETER :: H5Z_ZFP_CD_NELMTS_MEM=6 ! used in public API to filter INTEGER(C_SIZE_T), PARAMETER :: H5Z_ZFP_CD_NELMTS_MAX=6 ! max, over all versions, used in dataset header @@ -43,7 +43,7 @@ INTEGER(C_INT) FUNCTION H5Pset_zfp_precision(plist, prec) BIND(C, NAME='H5Pset_z INTEGER(HID_T), VALUE :: plist INTEGER(C_INT), VALUE :: prec END FUNCTION H5Pset_zfp_precision - + INTEGER(C_INT) FUNCTION H5Pset_zfp_accuracy(plist, acc) BIND(C, NAME='H5Pset_zfp_accuracy') IMPORT :: C_INT, C_DOUBLE, HID_T IMPLICIT NONE @@ -67,7 +67,7 @@ INTEGER(C_INT) FUNCTION H5Pset_zfp_reversible(plist) BIND(C, NAME='H5Pset_zfp_re IMPLICIT NONE INTEGER(HID_T), VALUE :: plist END FUNCTION H5Pset_zfp_reversible - + END INTERFACE END MODULE H5Zzfp_props_f diff --git a/ZFP/src/H5Zzfp_version.h b/ZFP/src/H5Zzfp_version.h new file mode 100644 index 00000000..9bd327dc --- /dev/null +++ b/ZFP/src/H5Zzfp_version.h @@ -0,0 +1,19 @@ +#ifndef H5Z_ZFP_VERSION_H +#define H5Z_ZFP_VERSION_H + +#define H5Z_FILTER_ZFP 32013 + +#define H5Z_FILTER_ZFP_VERSION_MAJOR 1 +#define H5Z_FILTER_ZFP_VERSION_MINOR 1 +#define H5Z_FILTER_ZFP_VERSION_PATCH 0 + +#define H5Z_ZFP_MODE_RATE 1 +#define H5Z_ZFP_MODE_PRECISION 2 +#define H5Z_ZFP_MODE_ACCURACY 3 +#define H5Z_ZFP_MODE_EXPERT 4 +#define H5Z_ZFP_MODE_REVERSIBLE 5 + +#define H5Z_ZFP_CD_NELMTS_MEM 6 +#define H5Z_ZFP_CD_NELMTS_MAX 6 + +#endif diff --git a/ZSTD/CMakeLists.txt b/ZSTD/CMakeLists.txt index 416270d1..54ee3441 100644 --- a/ZSTD/CMakeLists.txt +++ b/ZSTD/CMakeLists.txt @@ -9,7 +9,7 @@ # If you do not have access to either file, you may request a copy from # help@hdfgroup.org. # -cmake_minimum_required (VERSION 3.18) +cmake_minimum_required (VERSION 3.12) project (H5ZSTD C) if (POLICY CMP0074) diff --git a/ZSTD/config/cmake/CTestScript.cmake b/ZSTD/config/cmake/CTestScript.cmake index 03041c22..1e6e40ff 100644 --- a/ZSTD/config/cmake/CTestScript.cmake +++ b/ZSTD/config/cmake/CTestScript.cmake @@ -9,7 +9,7 @@ # If you do not have access to either file, you may request a copy from # help@hdfgroup.org. # -cmake_minimum_required (VERSION 3.18) +cmake_minimum_required (VERSION 3.12) ######################################################## # This dashboard is maintained by The HDF Group # For any comments please contact cdashhelp@hdfgroup.org diff --git a/ZSTD/config/cmake/H5PL_Examples.cmake.in b/ZSTD/config/cmake/H5PL_Examples.cmake.in index e6f39754..0441e965 100644 --- a/ZSTD/config/cmake/H5PL_Examples.cmake.in +++ b/ZSTD/config/cmake/H5PL_Examples.cmake.in @@ -9,14 +9,14 @@ # If you do not have access to either file, you may request a copy from # help@hdfgroup.org. # -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.12) ############################################################################################################### # This script will build and run the examples from a folder # Execute from a command line: # ctest -S H5PL_Examples.cmake,OPTION=VALUE -C Release -VV -O test.log ############################################################################################################### -# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.10/lib/plugin, -# then is /usr/local/HDF_Group/HDF5/1.10 +# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin, +# then is /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@ # ctest -S H5PL_Examples.cmake,HDF5INSTALLDIR= -C Release -VV -O test.log ############################################################################################################### @@ -57,7 +57,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCTEST_CONFIGURATION_TYPE:STRING=$ ################################################################## if(NOT DEFINED HDF5INSTALLDIR) - set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.10") + set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@") endif() if(NOT DEFINED INSTALLDIR) set (INSTALLDIR "${HDF5INSTALLDIR}") @@ -88,7 +88,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILD #TAR_SOURCE - name of tarfile #if(NOT DEFINED TAR_SOURCE) -# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.10-Source") +# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.@H5PL_PACKAGE_VERSION_MINOR@-Source") #endif() ############################################################################################################### diff --git a/ZSTD/config/cmake/HDFMacros.cmake b/ZSTD/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/ZSTD/config/cmake/HDFMacros.cmake +++ b/ZSTD/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/ZSTD/config/cmake/HDFPluginMacros.cmake b/ZSTD/config/cmake/HDFPluginMacros.cmake index 722d7910..dfd365c5 100644 --- a/ZSTD/config/cmake/HDFPluginMacros.cmake +++ b/ZSTD/config/cmake/HDFPluginMacros.cmake @@ -405,8 +405,8 @@ macro (INSTALL_SUPPORT varname) set (CPACK_PACKAGE_VERSION_MINOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_PATCH "") #set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") - set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") - set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_BINARY_DIR}/README.txt") set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PLUGIN_NAME} Installation") set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}") @@ -458,7 +458,7 @@ macro (INSTALL_SUPPORT varname) # With CPACK_WIX_LICENSE_RTF you can override the license file used by the # WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported # format or the .txt -> .rtf conversion does not work as expected. - set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/README.txt") # .. variable:: CPACK_WIX_PRODUCT_ICON # The Icon shown next to the program name in Add/Remove programs. # set (CPACK_WIX_PRODUCT_ICON "${${PLUGIN_PACKAGE_NAME}_RESOURCES_DIR}\\\\${PLUGIN_PACKAGE_NAME}.ico") diff --git a/ZSTD/config/cmake/README.txt.cmake.in b/ZSTD/config/cmake/README.txt.cmake.in index 3776b21c..eaf28abe 100644 --- a/ZSTD/config/cmake/README.txt.cmake.in +++ b/ZSTD/config/cmake/README.txt.cmake.in @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ This directory contains the binary (release) distribution of -@H5ZSTD_PACKAGE_NAME@-@H5ZSTD_PACKAGE_VERSION_MAJOR@ that was compiled on; +@H5ZSTD_PACKAGE_NAME@-@H5ZSTD_PACKAGE_VERSION_MAJOR@.@H5ZSTD_PACKAGE_VERSION_MINOR@ that was compiled on; @BINARY_PLATFORM@. It was built with the following options: @@ -24,9 +24,9 @@ The customary location for the plugins is under the hdf5 libraries location. be installed into any location. On linux, the installer should be executed in the location to install the plugin. The plugins will install into the location: - /HDF_Group/HDF5/1.10/lib/plugin + /HDF_Group/HDF5/1.@H5ZSTD_PACKAGE_VERSION_MINOR@/lib/plugin On Windows, the installer will default to the same location as the hdf5 installer: - C:/Program Files/HDF_Group/HDF5/1.10 and into the /lib/plugin dir. + C:/Program Files/HDF_Group/HDF5/1.@H5ZSTD_PACKAGE_VERSION_MINOR@ and into the /lib/plugin dir. 1. Execute @H5ZSTD_PACKAGE_NAME@-@H5ZSTD_PACKAGE_VERSION@-@BINARY_SYSTEM_NAME@.@BINARY_INSTALL_ENDING@ 2. Follow prompts =========================================================================== diff --git a/ZSTD/config/cmake/binex/CMakeLists.txt b/ZSTD/config/cmake/binex/CMakeLists.txt index 0fade168..417a3a97 100644 --- a/ZSTD/config/cmake/binex/CMakeLists.txt +++ b/ZSTD/config/cmake/binex/CMakeLists.txt @@ -9,7 +9,7 @@ # If you do not have access to either file, you may request a copy from # help@hdfgroup.org. # -cmake_minimum_required (VERSION 3.18) +cmake_minimum_required (VERSION 3.12) project (HDFPLExamples C) #----------------------------------------------------------------------------- diff --git a/ZSTD/config/cmake/binex/Using_CMake.txt b/ZSTD/config/cmake/binex/Using_CMake.txt index 9e8a6a9a..dafc5f16 100644 --- a/ZSTD/config/cmake/binex/Using_CMake.txt +++ b/ZSTD/config/cmake/binex/Using_CMake.txt @@ -27,8 +27,9 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5PL 1.10.x product requires a minimum CMake version - of 3.18. + web site. The HDF5PL 1.y.x product requires a minimum CMake version + of 3.12. If you are using VS2019, the minimum version is 3.15. If you are + using VS2022, the minimum version is 3.21. 2. You have installed the HDF5 library built with CMake, by executing the HDF Install Utility (the *.msi file in the binary package for @@ -38,9 +39,9 @@ I. Preconditions 3. Set the environment variable HDF5_ROOT to the installed location of the config files for HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -48,16 +49,16 @@ I. Preconditions 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/ZSTD/config/cmake/binex/config/cmake/HDFMacros.cmake b/ZSTD/config/cmake/binex/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/ZSTD/config/cmake/binex/config/cmake/HDFMacros.cmake +++ b/ZSTD/config/cmake/binex/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/ZSTD/config/cmake/binex/config/cmake/grepTest.cmake b/ZSTD/config/cmake/binex/config/cmake/grepTest.cmake index 7142408e..33738287 100644 --- a/ZSTD/config/cmake/binex/config/cmake/grepTest.cmake +++ b/ZSTD/config/cmake/binex/config/cmake/grepTest.cmake @@ -49,7 +49,9 @@ endif () if (TEST_ENV_VAR) set (ENV{${TEST_ENV_VAR}} "${TEST_ENV_VALUE}") - message (TRACE "ENV:${TEST_ENV_VAR}=$ENV{${TEST_ENV_VAR}}") + if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15.0") + message (TRACE "ENV:${TEST_ENV_VAR}=$ENV{${TEST_ENV_VAR}}") + endif () endif () # run the test program, capture the stdout/stderr and the result var diff --git a/ZSTD/config/cmake/binex/example/CMakeLists.txt b/ZSTD/config/cmake/binex/example/CMakeLists.txt index 9b068633..d592c961 100644 --- a/ZSTD/config/cmake/binex/example/CMakeLists.txt +++ b/ZSTD/config/cmake/binex/example/CMakeLists.txt @@ -9,7 +9,7 @@ # If you do not have access to either file, you may request a copy from # help@hdfgroup.org. # -cmake_minimum_required (VERSION 3.18) +cmake_minimum_required (VERSION 3.12) project (HDFPL_EX) set (dyn_examples diff --git a/ZSTD/example/CMakeLists.txt b/ZSTD/example/CMakeLists.txt index 4dc1f30a..e6526c8d 100644 --- a/ZSTD/example/CMakeLists.txt +++ b/ZSTD/example/CMakeLists.txt @@ -9,7 +9,7 @@ # If you do not have access to either file, you may request a copy from # help@hdfgroup.org. # -cmake_minimum_required (VERSION 3.18) +cmake_minimum_required (VERSION 3.12) project (HDF5ZSTD_EX) set (dyn_examples diff --git a/ZSTD/src/CMakeLists.txt b/ZSTD/src/CMakeLists.txt index 7a899fcd..84e7b6ce 100644 --- a/ZSTD/src/CMakeLists.txt +++ b/ZSTD/src/CMakeLists.txt @@ -9,7 +9,7 @@ # If you do not have access to either file, you may request a copy from # help@hdfgroup.org. # -cmake_minimum_required (VERSION 3.18) +cmake_minimum_required (VERSION 3.12) project (H5ZSTD_SRC C) #----------------------------------------------------------------------------- diff --git a/config/cmake/H5PL_Examples.cmake.in b/config/cmake/H5PL_Examples.cmake.in index 8601a7e0..d7c74a2c 100644 --- a/config/cmake/H5PL_Examples.cmake.in +++ b/config/cmake/H5PL_Examples.cmake.in @@ -15,8 +15,8 @@ cmake_minimum_required(VERSION 3.12) # Execute from a command line: # ctest -S H5PL_Examples.cmake,OPTION=VALUE -C Release -VV -O test.log ############################################################################################################### -# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.10/lib/plugin, -# then is /usr/local/HDF_Group/HDF5/1.10 +# Minimum where plugins are installed within hdf5 library install, /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin, +# then is /usr/local/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@ # ctest -S H5PL_Examples.cmake,HDF5INSTALLDIR= -C Release -VV -O test.log ############################################################################################################### @@ -57,7 +57,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCTEST_CONFIGURATION_TYPE:STRING=$ ################################################################## if(NOT DEFINED HDF5INSTALLDIR) - set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.10") + set (HDF5INSTALLDIR "${CTEST_DASHBOARD_ROOT}/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@") endif() if(NOT DEFINED INSTALLDIR) set (INSTALLDIR "${HDF5INSTALLDIR}") @@ -88,7 +88,7 @@ set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILD #TAR_SOURCE - name of tarfile #if(NOT DEFINED TAR_SOURCE) -# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.10-Source") +# set (CTEST_USE_TAR_SOURCE "HDFPLExamples-1.@H5PL_PACKAGE_VERSION_MINOR@-Source") #endif() ############################################################################################################### diff --git a/config/cmake/HDFMacros.cmake b/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/config/cmake/HDFMacros.cmake +++ b/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/config/cmake/HDFPluginMacros.cmake b/config/cmake/HDFPluginMacros.cmake index 6cb9e043..4f9917fe 100644 --- a/config/cmake/HDFPluginMacros.cmake +++ b/config/cmake/HDFPluginMacros.cmake @@ -381,6 +381,13 @@ macro (INSTALL_SUPPORT varname) #----------------------------------------------------------------------------- PLUGIN_README_PROPERTIES (${PLUGIN_PACKAGE_NAME}) + #----------------------------------------------------------------------------- + # Configure the COPYING.txt file for the windows binary package + #----------------------------------------------------------------------------- + if (WIN32) + configure_file (${CMAKE_SOURCE_DIR}/COPYING ${CMAKE_BINARY_DIR}/COPYING.txt @ONLY) + endif () + #----------------------------------------------------------------------------- # Add Document File(s) to CMake Install #----------------------------------------------------------------------------- @@ -432,9 +439,9 @@ macro (INSTALL_SUPPORT varname) set (CPACK_PACKAGE_VERSION_MAJOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MAJOR}") set (CPACK_PACKAGE_VERSION_MINOR "${${PLUGIN_PACKAGE_NAME}_PACKAGE_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_PATCH "") - #set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") - set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") - set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING") + set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_BINARY_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_README "${CMAKE_BINARY_DIR}/README.txt") set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PLUGIN_NAME} Installation") if (H5PL_OVERRIDE_VERSION) @@ -475,7 +482,7 @@ macro (INSTALL_SUPPORT varname) endif () # WiX variables set (CPACK_WIX_UNINSTALL "1") - set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_BINARY_DIR}/COPYING.txt") # set (CPACK_WIX_PRODUCT_ICON "${${PLUGIN_PACKAGE_NAME}_RESOURCES_DIR}\\\\${PLUGIN_PACKAGE_NAME}.ico") elseif (APPLE) list (APPEND CPACK_GENERATOR "STGZ") diff --git a/config/cmake/README.txt.cmake.in b/config/cmake/README.txt.cmake.in index 7a9abf83..22f00826 100644 --- a/config/cmake/README.txt.cmake.in +++ b/config/cmake/README.txt.cmake.in @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ This directory contains the binary (release) distribution of -@H5PL_PACKAGE_NAME@-@H5PL_PACKAGE_VERSION_MAJOR@ that was compiled on; +@H5PL_PACKAGE_NAME@-@H5PL_PACKAGE_VERSION_MAJOR@.@H5PL_PACKAGE_VERSION_MINOR@ that was compiled on; @BINARY_PLATFORM@. It was built with the following options: @@ -25,9 +25,9 @@ The customary location for the plugins is under the hdf5 libraries location. be installed into any location. On linux, the installer should be executed in the location to install the plugin. The plugins will install into the location: - /HDF_Group/HDF5/1.10/lib/plugin + /HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@/lib/plugin On Windows, the installer will default to the same location as the hdf5 installer: - C:/Program Files/HDF_Group/HDF5/1.10 and into the /lib/plugin dir. + C:/Program Files/HDF_Group/HDF5/1.@H5PL_PACKAGE_VERSION_MINOR@ and into the /lib/plugin dir. 1. Execute @H5PL_PACKAGE_NAME@-@H5PL_PACKAGE_VERSION@-@BINARY_SYSTEM_NAME@.@BINARY_INSTALL_ENDING@ 2. Follow prompts =========================================================================== diff --git a/config/cmake/binex/CMakeLists.txt b/config/cmake/binex/CMakeLists.txt index 2893ca47..70b85778 100644 --- a/config/cmake/binex/CMakeLists.txt +++ b/config/cmake/binex/CMakeLists.txt @@ -90,4 +90,7 @@ endif () # ZFP filter set (ZFP_AVAILABLE 1) +# ZSTD filter +set (ZSTD_AVAILABLE 1) + add_subdirectory (example) diff --git a/config/cmake/binex/Using_CMake.txt b/config/cmake/binex/Using_CMake.txt index dcddab35..878d7062 100644 --- a/config/cmake/binex/Using_CMake.txt +++ b/config/cmake/binex/Using_CMake.txt @@ -38,8 +38,9 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5PL 1.10.x product requires a minimum CMake version - of 3.12. + web site. The HDF5PL 1.y.x product requires a minimum CMake version + of 3.12. If you are using VS2019, the minimum version is 3.15. If you are + using VS2022, the minimum version is 3.21. 2. You have installed the HDF5 library built with CMake, by executing the HDF Install Utility (the *.msi file in the binary package for @@ -49,9 +50,9 @@ I. Preconditions 3. Set the environment variable HDF5_ROOT to the installed location of the config files for HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -59,16 +60,16 @@ I. Preconditions 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/config/cmake/binex/config/cmake/HDFMacros.cmake b/config/cmake/binex/config/cmake/HDFMacros.cmake index e7c418c2..a45be081 100644 --- a/config/cmake/binex/config/cmake/HDFMacros.cmake +++ b/config/cmake/binex/config/cmake/HDFMacros.cmake @@ -495,19 +495,16 @@ endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) file (STRINGS ${infile} TEST_FLAG_STREAM) - #message (TRACE "TEST_FLAG_STREAM=${TEST_FLAG_STREAM}") list (LENGTH TEST_FLAG_STREAM len_flag) if (len_flag GREATER 0) math (EXPR _FP_LEN "${len_flag} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET TEST_FLAG_STREAM ${line} str_flag) string (REGEX REPLACE "^#.*" "" str_flag "${str_flag}") - #message (TRACE "str_flag=${str_flag}") if (str_flag) list (APPEND ${h5_flag_var} "${str_flag}") endif () endforeach () endif () - #message (TRACE "h5_flag_var=${${h5_flag_var}}") endmacro () diff --git a/config/cmake/binex/example/CMakeLists.txt b/config/cmake/binex/example/CMakeLists.txt index 0562d374..1e9cb174 100644 --- a/config/cmake/binex/example/CMakeLists.txt +++ b/config/cmake/binex/example/CMakeLists.txt @@ -34,6 +34,9 @@ endif () if (MAFISC_AVAILABLE) set (dyn_examples ${dyn_examples} h5ex_d_mafisc) endif () +if (ZSTD_AVAILABLE) + set (extra_examples ${extra_examples} h5ex_d_zstd) +endif () set (extra_examples) if (ZFP_AVAILABLE) diff --git a/config/cmake/binex/example/h5ex_d_sz.c b/config/cmake/binex/example/h5ex_d_sz.c index 92b877ac..89fb0a29 100644 --- a/config/cmake/binex/example/h5ex_d_sz.c +++ b/config/cmake/binex/example/h5ex_d_sz.c @@ -23,6 +23,7 @@ #include "hdf5.h" #include #include +#include #define FILE "h5ex_d_sz.h5" #define DATASET "DS1" @@ -33,7 +34,13 @@ #define CHUNK0 8 #define CHUNK1 8 #define CHUNK2 128 -#define H5Z_FILTER_SZ 32017 +#define H5Z_FILTER_SZ 32017 +#define MAX_CHUNK_SIZE 4294967295 //2^32-1 +#define SZ_FLOAT 0 +#define ABS 0 +#define REL 1 + +void SZ_errConfigToCdArray(size_t* cd_nelmts, unsigned int cd_values[], int error_bound_mode, double abs_error, double rel_error, double pw_rel_error, double psnr); int main (void) @@ -48,14 +55,14 @@ main (void) char filter_name[80]; hsize_t dims[DIM_SIZE] = {DIM0, DIM1, DIM2}, chunk[DIM_SIZE] = {CHUNK0, CHUNK1, CHUNK2}; - size_t nelmts = 5; /* number of elements in cd_values */ + size_t nelmts = 9; /* number of elements in cd_values */ size_t nbEle = DIM0*DIM1*DIM2; - int dataType = 0; /* FLOAT */ + int dataType = SZ_FLOAT; unsigned int flags; unsigned filter_config; - const unsigned int cd_values[10] = {DIM_SIZE, dataType, DIM2, DIM1, DIM0, 0, 0, 0, 0, 0}; - unsigned int values_out[10] = {99, 99, 99, 99, 99, 99, 99, 99, 99, 99}; - float wdata[DIM0][DIM1][DIM2], /* Write buffer */ + unsigned int cd_values[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};//, 0, 0, 0, 0, 0, 0, 0}; + unsigned int values_out[16] = {99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}; + float wdata[DIM0*DIM1*DIM2], /* Write buffer */ rdata[DIM0][DIM1][DIM2], /* Read buffer */ max; hsize_t i, j, k; @@ -64,10 +71,8 @@ main (void) /* * Initialize data. */ - for (i=0; i. + HDF5_Plugins-1."Y.X"-. On Unix, will be "Linux". A similar .sh file will also be created. On Windows, will be "win64" or "win32". If you have an @@ -121,51 +121,51 @@ To build HDF5 Filter libraries you will need to: 6. To install, "X" is the current release version On Windows (with WiX installed), execute: - HDF5_plugins-1.10."X"-win32.msi or HDF5_plugins-1.10."X"-win64.msi + HDF5_plugins-1."Y.X"-win32.msi or HDF5_plugins-1."Y.X"-win64.msi By default this program will install the hdf5 filter libraries into the "C:\Program Files" directory and will create the following directory structure: HDF_Group --HDF5 - ----1.10."X" + ----1."Y.X" ------lib --------plugins ------cmake On Linux, change to the install destination directory (create it if doesn't exist) and execute: - /myhdfstuff/HDF5_plugins-1.10."X"-Linux.sh + /myhdfstuff/HDF5_plugins-1."Y.X"-Linux.sh After accepting the license, the script will prompt: By default the HDF5 filter libraries will be installed in: - "/HDF5-1.10."X"-Linux" - Do you want to include the subdirectory HDF5-1.10."X"-Linux? + "/HDF5-1."Y.X"-Linux" + Do you want to include the subdirectory HDF5-1."Y.X"-Linux? Saying no will install in: "" [Yn]: Note that the script will create the following directory structure relative to the install point: HDF_Group --HDF5 - ----1.10."X" + ----1."Y.X" ------lib --------plugins ------share - On Mac you will find HDF5_plugins-1.10."X"-Darwin.dmg in the myhdfstuff folder. Click + On Mac you will find HDF5_plugins-1."Y.X"-Darwin.dmg in the myhdfstuff folder. Click on the dmg file to proceed with installation. After accepting the license, there will be a folder with the following structure: HDF_Group --HDF5 - ----1.10."X" + ----1."Y.X" ------lib --------plugins ------share By default the installation will create or merge the lib and cmake - folders in the /HDF_Group/HDF5/1.10."X" + folders in the /HDF_Group/HDF5/1."Y.X" The depends on the build platform; Windows will set the default to: - C:/Program Files/HDF_Group/HDF5/1.10."X" + C:/Program Files/HDF_Group/HDF5/1."Y.X" Linux will set the default to: - "myhdfstuff/HDF_Group/HDF5/1.10."X" + "myhdfstuff/HDF_Group/HDF5/1."Y.X" The default can be changed by adding ",INSTALLDIR=" to the "ctest -S HDF5config.cmake..." command. For example on linux: ctest -S HDF5config.cmake,INSTALLDIR=/usr/local/myhdf5,BUILD_GENERATOR=Unix -C Release -VV -O hdf5.log @@ -192,13 +192,13 @@ Notes: This short set of instructions is written for users who want to 5. Configure the C filter libraries with one of the following commands: On Windows 32 bit - cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTING:BOOL=ON -DHDF5_BUILD_EXAMPLES:BOOL=ON ..\hdf5_plugins-1.10."X" + cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTING:BOOL=ON -DHDF5_BUILD_EXAMPLES:BOOL=ON ..\hdf5_plugins-1."Y.X" On Windows 64 bit - cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTING:BOOL=ON -DHDF5_BUILD_EXAMPLES:BOOL=ON ..\hdf5_plugins-1.10."X" + cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTING:BOOL=ON -DHDF5_BUILD_EXAMPLES:BOOL=ON ..\hdf5_plugins-1."Y.X" On Linux and Mac - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTING:BOOL=ON -DHDF5_BUILD_EXAMPLES:BOOL=ON ../hdf5_plugins-1.10."X" + cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTING:BOOL=ON -DHDF5_BUILD_EXAMPLES:BOOL=ON ../hdf5_plugins-1."Y.X" where "X" is the current release version. @@ -213,40 +213,40 @@ Notes: This short set of instructions is written for users who want to 9. To install On Windows (with WiX installed), execute: - HDF5_plugins-1.10."X"-win32.msi or HDF5_plugins-1.10."X"-win64.msi + HDF5_plugins-1."Y.X"-win32.msi or HDF5_plugins-1."Y.X"-win64.msi By default this program will install the hdf5 library into the "C:\Program Files" directory and will create the following directory structure: HDF_Group --HDF5 - ----1.10."X" + ----1."Y.X" ------lib --------plugins ------cmake On Linux, change to the install destination directory (create if doesn't exist) and execute: - /myhdfstuff/build/HDF5_plugins-1.10."X"-Linux.sh + /myhdfstuff/build/HDF5_plugins-1."Y.X"-Linux.sh After accepting the license, the script will prompt: By default the HDF5 will be installed in: - "/HDF5_plugins-1.10."X"-Linux" - Do you want to include the subdirectory HDF5_plugins-1.10."X"-Linux? + "/HDF5_plugins-1."Y.X"-Linux" + Do you want to include the subdirectory HDF5_plugins-1."Y.X"-Linux? Saying no will install in: "" [Yn]: Note that the script will create the following directory structure relative to the install point: HDF_Group --HDF5 - ----1.10."X" + ----1."Y.X" ------lib --------plugins ------share - On Mac you will find HDF5_plugins-1.10."X"-Darwin.dmg in the build folder. Click + On Mac you will find HDF5_plugins-1."Y.X"-Darwin.dmg in the build folder. Click on the dmg file to proceed with installation. After accepting the license, there will be a folder with the following structure: HDF_Group --HDF5 - ----1.10."X" + ----1."Y.X" ------lib --------plugins ------share @@ -257,7 +257,7 @@ IV. Further considerations ======================================================================== 1. We suggest you obtain the latest CMake for windows from the Kitware - web site. The HDF5 1.10."X" product requires a minimum CMake version 3.12. + web site. The HDF5 1."Y.X" product requires a minimum CMake version 3.12. 2. If you are building on Apple Darwin platforms, you should add the following options: diff --git a/docs/PluginLibraries.txt b/docs/PluginLibraries.txt index 93983377..038ab698 100644 --- a/docs/PluginLibraries.txt +++ b/docs/PluginLibraries.txt @@ -153,7 +153,7 @@ Contact Information: Email: faltet at pytables dot org -------------------------------------------- -Compression Library Included: c-blosc version 1.12.1 +Compression Library Included: c-blosc version 1.21.0 Plugin cd_value option -------------------------------------------- diff --git a/docs/USING_HDF5_AND_CMake.txt b/docs/USING_HDF5_AND_CMake.txt index 1230801a..dfcd76d0 100644 --- a/docs/USING_HDF5_AND_CMake.txt +++ b/docs/USING_HDF5_AND_CMake.txt @@ -36,7 +36,7 @@ I. Preconditions ======================================================================== 1. We suggest you obtain the latest CMake for your platform from the Kitware - web site. The HDF5 1.10.x product requires a minimum CMake version + web site. The HDF5 1.y.x product requires a minimum CMake version of 3.12. If you are using VS2019, the minimum version is 3.15. If you are using VS2022, the minimum version is 3.21. @@ -49,24 +49,24 @@ I. Preconditions or environment variable, set(ENV{HDF5_ROOT} "") to the installed location of HDF5. On Windows: - HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.y.x/ On unix: - HDF5_ROOT=/HDF_Group/HDF5/1.10.x/ + HDF5_ROOT=/HDF_Group/HDF5/1.y.x/ If you are using shared libraries, you may need to add to the path environment variable. Set the path environment variable to the installed location of the library files for HDF5. On Windows (*.dll): - PATH=%PATH%;C:/Program Files/HDF_Group/HDF5/1.10.x/bin + PATH=%PATH%;C:/Program Files/HDF_Group/HDF5/1.y.x/bin On unix (*.so): - LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/HDF_Group/HDF5/1.10.x/lib + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/HDF_Group/HDF5/1.y.x/lib 4. Set the environment variable HDF5_PLUGIN_PATH to the installed location of the library files for HDFPL. On Windows: - HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On unix: - HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.10.x/lib/plugin + HDF5_PLUGIN_PATH=/HDF_Group/HDF5/1.y.x/lib/plugin (Note there are no quote characters used on Windows and all platforms use forward slashes) @@ -74,9 +74,9 @@ I. Preconditions 5. Set the runtime path to the installed location of the library (*.so on linux and *.dll on Windows) files for HDF5. On Windows: - PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.10.x/bin:C:/Program Files/HDF_Group/HDF5/1.10x/lib/plugin + PATH=%PATH%:C:/Program Files/HDF_Group/HDF5/1.y.x/bin:C:/Program Files/HDF_Group/HDF5/1.y.x/lib/plugin On linux: - LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.10.x/lib;/HDF_Group/HDF5/1.10.x/lib/plugin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH;/HDF_Group/HDF5/1.y.x/lib;/HDF_Group/HDF5/1.y.x/lib/plugin 6. Created separate source and build directories. (CMake commands are executed in the build directory) diff --git a/libs/zstd.tar.gz b/libs/zstd.tar.gz index 8236233f..a0b103e5 100644 Binary files a/libs/zstd.tar.gz and b/libs/zstd.tar.gz differ