[MINC-users] Building libMINC from github: too many arguments to a function of HDF5

Andrew Wood andrew at biospective.com
Sun May 19 12:54:24 EDT 2013


Hi Nicolas,

I build libminc against hdf5-1.8.5, so you might try using that.

Hope that helps,

Andrew


On Sat, May 18, 2013 at 12:57 PM, Nicolas Cordier
<nicolas.cordier at inria.fr>wrote:

> Hello again,
>
>
>
> I am trying to build the branch minc_lite of libMINC, which I have found
> here:
>   https://github.com/BIC-MNI/libminc/tree/minc_lite
>
> In the README, I have found two pieces of information:
> 1) "libMINC requires that HDF5 and optionally NetCDF to be installed."
> 2) "HDF5 must be installed before MINC can be built. The latest version of
> HDF5 is 1.6.2."
>
> I have therefore installed netcdf-4.0.1, and for a better compatibility, I
> have chosen to install hdf5-1.6.2, although the most recent version is
> hdf5-1.8.11.
>
>
>
> However, after using ccmake for libminc, I encounter a problem at the
> first step of the make step:
>   [  1%] Building C object CMakeFiles/minc2.dir/libsrc/hdf_convenience.c.o
>
> There are several error messages, which are similar to the following one:
>   /home/ncordier/Softwares/BIC-MNI/libminc/src/libsrc/hdf_convenience.c:
> In function ‘hdf_put_dimorder’:
>
> /home/ncordier/Softwares/BIC-MNI/libminc/src/libsrc/hdf_convenience.c:621:5:
> error: too many arguments to function ‘H5Acreate’
>
> /home/ncordier/Softwares/BIC-MNI/hdf5-1.6.2/src/hdf5/include/H5Apublic.h:32:8:
> note: declared here
>
>
>
> I have tried to check the files, and it is true the number of arguments
> differs. Would you have any suggestion for a version of HDF5?
>
>
>
> ncordier $ grep -C 1 H5Acreate
> /home/ncordier/Softwares/BIC-MNI/hdf5-1.6.2/src/hdf5/include/H5Apublic.h
> /* Public function prototypes */
> H5_DLL hid_t   H5Acreate(hid_t loc_id, const char *name, hid_t type_id,
>                          hid_t space_id, hid_t plist_id);
>
>
>
> ncordier $ grep -C 1 H5Acreate
> /home/ncordier/Softwares/BIC-MNI/libminc/src/libsrc/hdf_convenience.c
>
>     att_id = H5Acreate(dst_id, MI2_DIMORDER, typ_id, spc_id, H5P_DEFAULT,
> H5P_DEFAULT);
>
> --
>          */
>         att_id = H5Acreate(dst_id, MI2_LENGTH, H5T_STD_U32LE, aspc_id,
>                            H5P_DEFAULT, H5P_DEFAULT);
> --
>          */
>         att_id = H5Acreate(loc_id, attnm, ftyp_id, spc_id, H5P_DEFAULT,
> H5P_DEFAULT);
>     } H5E_END_TRY;
> --
>
>    outatt_id = H5Acreate(out_id, attr_name, typ_id, spc_id, H5P_DEFAULT,
> H5P_DEFAULT);
>    if (outatt_id < 0) {
>
>
>
> Yours faithfully,
>
> --
> Nicolas CORDIER
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>


More information about the MINC-users mailing list