barlettacarmen / CrCNN

Crypto-Convolutional Neural Network library written on top of SEAL 2.3.1
GNU General Public License v3.0
13 stars 0 forks source link

How to build Hdf5 library? #1

Open BlackZou opened 5 years ago

BlackZou commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

@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
  3. 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 commented 5 years ago

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 commented 5 years ago

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 commented 2 years ago

I also meet this problem ...