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

os x install using hp5 #8

Closed
davegreenwood opened this issue Dec 17, 2014 · 4 comments
Closed

os x install using hp5 #8

davegreenwood opened this issue Dec 17, 2014 · 4 comments

Comments

@davegreenwood
Copy link

Hi, if I configure an install WITH_HDF5 I get the following error (and 4 more similar) with make:

/yaafe/src_cpp/yaafe-python/yaafecoreH5.cpp:69:56: error: use of undeclared identifier  'H5P_DEFAULT'
hid_t h5file = H5Fopen(h5filename, H5F_ACC_RDONLY, H5P_DEFAULT);

H5P_DEFAULT is defined in "H5Ppublic.h"
so, by including this file in "yaafe-python/yaafecoreH5.cpp" :

#ifdef WITH_HDF5
#include "H5Fpublic.h"
#include "H5Gpublic.h"
#include "H5Opublic.h"
#include "H5Dpublic.h"
#include "H5Ppublic.h"
#include "H5PTpublic.h"
#include "H5LTpublic.h"
#include "H5Tpublic.h"
#include "H5Apublic.h"
#endif

the problem goes away. The question is, is this the proper solution?
many thanks
Dave Greenwood

@Crococode
Copy link
Contributor

How did you configure your setup? Did you set the include path for the HDF5 headers? HDF5_INCLUDE_DIR in CMake.

@neobonzi
Copy link

I'm having this same issue even after including hdf5_include_dir as /usr/local/include

@thomasfillon
Copy link
Member

@davegreenwood : it seems a good solution to me. @Crococode do you agree ?

I had the same issue for installing under Debian Jessie (in Docker) and fix it with the very same solution in aca4678 .
It seems that the problem appears only with HDF5 library >1.8.14 .

Can we close this issue ?

@thomasfillon
Copy link
Member

closed by aca4678

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

4 participants