Package Details: mingw-w64-hdf5 1.10.1-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-hdf5.git (read-only)
Package Base: mingw-w64-hdf5
Description: General purpose library and file format for storing scientific data (mingw-w64)
Upstream URL: http://www.hdfgroup.org/HDF5/
Licenses: custom
Submitter: xantares
Maintainer: xantares
Last Packager: xantares
Votes: 1
Popularity: 0.317000
First Submitted: 2013-11-21 21:44
Last Updated: 2017-08-26 07:44

Latest Comments

ezacaria commented on 2017-09-29 05:14

Thanks for the further comments. I agree that it is simpler to do so, specially if you mention that there is further hassle in maintenance.

I tried without wine and setting -DHDF5_BUILD_TOOLS=ON. This attempts (and fails) to generate H5lib_settings.c, but at first glance the problem seems to be that the mingw-cmake is used when building the H5make_libsettings file, which results in a windows binary (therefore needing the workaround of using wine). This happens in file src/hdf5-1.10.1/build-x86_64-w64-mingw32/src/CMakeFiles/hdf5-static.dir/build.make.

If we, on the other hand, were to specify that these few files should be built with the regular Linux cmake, then wine would not be needed. I do not know enough of the cmake system to say if this is easy to do, and I have the feeling that it is more hassle than worth as you suggested earlier. Let us leave it for now :)

Thanks again!

xantares commented on 2017-09-28 17:52

Its easier to just require wine for the try compile checks instead of setting each cmake results var because it's a pain to maintain as they may change between releases or 32/64 arch. HDF5_BUILD_TOOLS is already off, and I doubt it has an impact on runtime checks.

ezacaria commented on 2017-09-28 15:24

Thanks again, and sorry for taking so long to come back with some feedback.

The szip package compiled without problems but I did not attempt to build/test if it works. The new hdf5 PKGBUILD, on the other hand, works and the zlib compression is also effective when used.

One comment on requiring wine to build this package, though. It occurred to me that perhaps we can compile the configuration tools (such as src/H5make_libsettings.c, which is responsible to generate H5lib_settings.c in the source before the actual compilation). Have you ever tried using "DHDF5_BUILD_TOOLS" to avoid the calls to wine?

xantares commented on 2017-08-16 20:26

updated, could you check ezacaria?
also added szip package if you want to enable it.

ezacaria commented on 2017-08-15 11:31

First off, thanks for the package!

I noticed that compression is not enabled when building the package. Even if the data sets show compression in the headers, the compression ratio is always 1 to 1 and no space savings are achieved.

This is easy to fix, though. I added the following to the PKGBUILD to force zlib support:

-DHDF5_ENABLE_Z_LIB_SUPPORT=ON \
-DHDF5_ENABLE_SZIP_SUPPORT=OFF \
-DHDF5_ENABLE_SZIP_ENCODING=OFF \

The basic zlib compression works now, without further pre-requisites (mingw-w64-zlib is already there). I could not compile the szip library in the mingw64 (or get the installation to compile it on the fly), but the zlib is enough for my purposes and therefore I disabled szip support.

I also used the same PKGBUILD with the newer version (https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.1/src/hdf5-1.10.1.tar.bz2). I am not sure if all the fixes in prepare() apply verbatim, though.


xantares commented on 2015-06-02 19:57

updating to 1.8.15 leads to weird compile errors, but this can be used:

cmake_args="-DCMAKE_BUILD_TYPE=Release \
-DHAVE_IOEO_EXITCODE=0 \
-DHDF5_PRINTF_LL_TEST_RUN=0 \
-DHDF5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT= \
-DH5_FP_TO_INTEGER_OVERFLOW_WORKS_RUN=0 \
-DH5_FP_TO_INTEGER_OVERFLOW_WORKS_RUN__TRYRUN_OUTPUT= \
-DH5_LDOUBLE_TO_LONG_SPECIAL_RUN=1 \
-DH5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT= \
-DH5_LONG_TO_LDOUBLE_SPECIAL_RUN=1 \
-DH5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT= \
-DH5_LDOUBLE_TO_LLONG_ACCURATE_RUN=0 \
-DH5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT= \
-DH5_LLONG_TO_LDOUBLE_CORRECT_RUN=0 \
-DH5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT= \
-DH5_NO_ALIGNMENT_RESTRICTIONS_RUN=0 \
-DH5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT="

ant32 commented on 2014-02-26 16:44

This package doesn't have a maintainer so you could add it and maintain it if you wanted.

Procedural commented on 2014-02-26 16:16

Can you add High Level library (hdf5_hl) for compiling as well? Thanks!

xantares commented on 2013-11-22 09:42

yep

ant32 commented on 2013-11-22 05:19

add mingw-w64-cmake to makedepends? http://arch.linuxx.org/logs/20131122-0353-mingw-w64-hdf5.log.tar.gz