-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error built with HDF5 1.8.18 #59
Comments
Hmm, I guess it needs a slightly more clever fix, because its really not clear if HDF5 was built |
I regularly build HDF5 from source and test it on Travis CI and never met the issue. Can you please provide yout HDF5 config (call). |
@tbeu are you building hdf5 against the (optional) szip library? |
No, I don't since it is not needed (by matio to have the szip support for hdf5). |
This is the reason. I think many people build hdf5 with szip because its one of the "official" |
OK, I will check it if I configure hdf5 with |
I build HDF5 with cmake as HDF5 - Building HDF5-1.8 With CMake which is "RECOMMENDED by HDF5". Following the @emmenlau Adding |
@bxwllzz I did not test this myself but here are cmake instructions from HDF5: |
@emmenlau
After uncomment these lines, I can make HDF5 without SZIP. Thanks for your advice. |
It is all working for me - using plain configure and not cmake. curl https://support.hdfgroup.org/ftp/lib-external/szip/2.1.1/src/szip-2.1.1.tar.gz -O -J
tar -zxf szip-2.1.1.tar.gz
cd szip-2.1.1
./configure --quiet CFLAGS="-w"
make install -C src
cd ..
git clone --depth 1 --branch hdf5_1_8_18 https://bitbucket.hdfgroup.org/scm/hdffv/hdf5.git hdf5_1_8_18
cd hdf5_1_8_18
./configure --quiet --enable-shared --disable-production --enable-debug=all --with-pic --disable-deprecated-symbols --disable-hl --disable-strict-format-checks --disable-clear-file-buffers --disable-instrument --disable-parallel --disable-trace --with-default-api-version=v18 --with-szlib=~/szip-2.1.1/szip CFLAGS="-w"
make install -C src |
You can run |
HDF5 is built from source. When configure matio, it reported can't found HDF5:
config.log:
Fix is
change HDF5_LIBS in matio_hdf5.m4
From "-L${HDF5_DIR}/lib -lhdf5"
To "-L${HDF5_DIR}/lib -lhdf5 -ldl -lszip"
The text was updated successfully, but these errors were encountered: