The Helib library is written on the basis of the NTL library, so the NTL library must be compiled before the Helib library can be used successfully:
http://www.shoup.net/ntl/--links to NTL library
Https://github.com/shaih/HElib--links to Helib library
1. Compiling the NTL library
1) Enter http://www.shoup.net/ntl/. Click a tour of ntl->obtaining and installing NTL for UNIX. The default is compiled in the first way:
% gunzip ntl-xxx.tar.gz % tar XF ntl-xxx.tar % CD ntl-xxx/src %./configure prefix= $HOME/sw % make % Make check % make install
2) Cho $HOME can see the path, my $home is '/root ', so the compiled library file is in the/ROOT/SW directory
using the Helib library in 2.QT
1) Use Helib Library is not compiled, arbitrary selection of a test file, such as test_general.cpp, to add dependent files into the project. But we need
Manually join the previously compiled NTL library
2) Add NTL Library in Qt.
A) Right-click->add library->external library->next in the. Pro Project file
b) Select the previously compiled NTL library path
c) Other options can not understand the default
The use of the Helib library is not many people, but once the use of the beginning there will be a lot of problems, the use of the children's shoes welcome contact
Using homomorphic encryption Library in Linux environment Helib