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

How to build Hdf5 library? #1

Open
BlackZou opened this issue Oct 17, 2019 · 5 comments
Open

How to build Hdf5 library? #1

BlackZou opened this issue Oct 17, 2019 · 5 comments

Comments

@BlackZou
Copy link

I download the fiel "hdf5-1.10.4.tar.gz " from the website "http://h5cpp.org/download/" , then I try to build it by "./configure 、make 、make install"
But after that , in the document "lib" don't have the file ( H5Cpp.h , H5Cpp.a .... ) that need in your code. Thus I can't success run "make" to exec your code.
image
Did I get wrong in my building process, or I have download the incorrect file ?
Can you help me?

@barlettacarmen
Copy link
Owner

I have to check which is the right version of hdf5 you need.
I'm working on it, I'll keep you posted today or tomorrow.

@barlettacarmen
Copy link
Owner

barlettacarmen commented Oct 20, 2019

@BlackZou

  1. Compile Seal
    [Follow instructions of Seal readme]

  2. Compile hdf5

mkdir hdf5
cd hdf5
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.20/src/hdf5-1.8.20.tar.gz
tar xvpf hdf5-1.8.20.tar.gz
mkdir build
mkdir install
cd build
cmake -DCMAKE_INSTALL_PREFIX=$PWD/../install ../hdf5-1.8.20
make -j
make install -j
  1. Move Static libraries in CrCNN

From root folder:

mkdir CrCNN/lib
cp SEAL_2.3.1/lib/libseal.a CrCNN/lib/
cp hdf5/install/lib/*.a CrCNN/lib/
  1. Compile CrCNN
    From root folder
cd CrCNN
make -j

@BlackZou
Copy link
Author

Thanks for your advice! But I still can't make success, the good news are that I got fewer "errors" .
image

I think maybe there are some problems with H5Location::createGroup ,but I had repeated install and uninstall "hdf5" several times . It still got the same problem.
I check the code in the "/hdf5/install/include/H5Location.h" but dosen't find "createGroup" function.
What's your environment that can compile it success, can I have a look at your lib snip?
My lib after compile is this:
image

@BlackZou
Copy link
Author

I got it, I find that the version hdf5-1.10.1 can compile success.
And I almost can success run "main.o", these problems seems need to be familiar with your code. Thanks for your hard working.
image

@damionfan
Copy link

I also meet this problem ...

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