homenc / HElib

HElib is an open-source software library that implements homomorphic encryption. It supports the BGV scheme with bootstrapping and the Approximate Number CKKS scheme. HElib also includes optimizations for efficient homomorphic evaluation, focusing on effective use of ciphertext packing techniques and on the Gentry-Halevi-Smart optimizations.
https://homenc.github.io/HElib
Other
3.16k stars 761 forks source link

Error when I g++ the helib_example.cpp #292

Open MikeDSH opened 5 years ago

MikeDSH commented 5 years ago

I have done it according to the install.md.But when i try to test it there is a bug.

helib_example.cpp:3:10: fatal error: helib/FHE.h: No such file or directory

include <helib/FHE.h>

      ^~~~~~~~~~~~~

compilation terminated.

esteffin commented 5 years ago

Hi Mike, can you tell me how did you try to compile the file?

Consider that the helib_example project should to be compiled us using the supplied cmake script (with the arguments as described in INSTALL.md), and not directly g++.

QinLongFei commented 4 years ago

@esteffin ,

I also meet this error.

I built and installed HElib as INSTALL.md said.

I chose Option 1 to build and installed HElib in a folder(/root/helib_install/helib_pack).

Then, I wrote a simple code with cmake. Following is my CMakeList.txt

image

And "cmake -Dhelib_DIR=/root/helib_install/helib_pack/share/cmake/helib ." image

Everything worked well. But when I try to make, I meet this error.

image

I'm not fimilar with cmake. Generally, I use "-I" to tell compiler where's the header files. But In this case, What can I do?

QinLongFei commented 2 years ago

@tuliopascoal , Sorry. It's been so long. I have forgot how to fix it.