Skip to content
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

statismo fails to build with hdf5 1.10.1 #258

Open
iMichka opened this issue May 30, 2017 · 6 comments
Open

statismo fails to build with hdf5 1.10.1 #258

iMichka opened this issue May 30, 2017 · 6 comments

Comments

@iMichka
Copy link

iMichka commented May 30, 2017

Hi. I am one of the homebrew-science maintainers. We just updated to the newest version of hdf5.

The build fails with:

/tmp/statismo-20170512-80760-m6iqk6/statismo-0.11.0/modules/core/src/ModelInfo.cxx
In file included from /tmp/statismo-20170512-80760-m6iqk6/statismo-0.11.0/modules/core/include/HDF5Utils.h:270:0,
                 from /tmp/statismo-20170512-80760-m6iqk6/statismo-0.11.0/modules/core/include/DataItem.h:42,
                 from /tmp/statismo-20170512-80760-m6iqk6/statismo-0.11.0/modules/core/include/DataManager.h:45,
                 from /tmp/statismo-20170512-80760-m6iqk6/statismo-0.11.0/modules/core/src/ModelInfo.cxx:41:
/tmp/statismo-20170512-80760-m6iqk6/statismo-0.11.0/modules/core/include/HDF5Utils.hxx: In static member function 'static void statismo::HDF5Utils::readMatrixOfType(const H5::CommonFG&, const char*, typename statismo::GenericEigenType<T>::MatrixType&) [with T = unsigned int; typename statismo::GenericEigenType<T>::MatrixType = Eigen::Matrix<unsigned int, -1, -1, 1, -1, -1>]':
/tmp/statismo-20170512-80760-m6iqk6/statismo-0.11.0/modules/core/include/HDF5Utils.hxx:119:25: error: 'const class H5::CommonFG' has no member named 'openDataSet'
     H5::DataSet ds = fg.openDataSet( name );
                         ^

Looking at the documentation, openDataSet is no more there:
https://support.hdfgroup.org/HDF5/doc/cpplus_RM/class_h5_1_1_common_f_g.html

Could you have a look a this? We are currently stuck with the update for statismo. Thanks in advance.
For ref.: https://github.com/Homebrew/homebrew-science/pull/5672

@ohirose
Copy link

ohirose commented May 31, 2017

Hi, I am a statismo user and also experienced a similar event. Fortunately, I succeeded to build statismo with hdf5-1.10.1 under macOS Sierra (version 10.12.4). However, after issuing the command ./statismo-build-shape-model -h, statismo printed the error message: dyld: Library not loaded: /usr/local/opt/hdf5/lib/libhdf5_cpp.100.dylib. Thanks in advance.

@iMichka
Copy link
Author

iMichka commented May 31, 2017

@ohirose Not sure how you succeed to build this. It seems it picked up an old hdf5 you have lying around. This is probably a different problem. If this is a homebrew problem please post there, so that there is no mixup in the issues :)

@marcelluethi
Copy link
Member

@iMichka Thank you for reporting this and, of course, all your work with homebrew.

The problem by itself seems to be reasonably easy to fix. It is a breaking change in the HDF5 interface. But since statismo depends on other libraries (such as VTK and ITK) which itself depend on particular version of HDF5, I expect the change to be quite messy.

Unfortunately I do not have any time to have a good look at it during the next few weeks. How urgent would a fix be from your side? If it is pressing and nobody else has time to look into it, the best solution might be to (temporarily) remove it from homebrew.

@iMichka
Copy link
Author

iMichka commented Jun 5, 2017

@marcelluethi Just to be clear, VTK and ITK already build with the newest hdf5 :)

@iMichka
Copy link
Author

iMichka commented Aug 30, 2017

@marcelluethi Did you have time to look at this?

@marcelluethi
Copy link
Member

@iMichka Unfortunately I did not find the time to look at it yet. It also does not seem that I have much more free time in the near future. Unless somebody steps in, I think it is best to remove it from homebrew. In this way I will not be blocking you guys.

The reason for the lack of resources that go into statismo from the side of the original developers is, that we have currently no projects that make use of statismo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants