Hi I am new to OpenFHE
I run the install on mac and trying to include openfhe.h on other codebase
But still get some error
Here is the thing I add in my make file:
And then I try to include <openfhe.h>
However I find that the <openfhe.h> is in /usr/local/include/openfhe/pke
So I use: #include “openfhe/pke/openfhe.h”>
However know I get an error:
**/usr/local/include/openfhe/pke/openfhe.h:40:10:** **fatal error:** **'openfhecore.h' file not found**
#include "openfhecore.h"
So it seems that I am doing wrong, may I ask how I do it correctly?
Truly appreciate for any help
TIA
Thanks for the reply, I am reading the Building User Applications
Just wants to ask that is it possible to not install using the CMAKE(since I am integrating openfhe to another library and has a complicated directories )?
Make can be used directly. For instance, the FreeBSD port for OpenFHE (https://www.freshports.org/security/openfhe/) is built using Make. All CMake does is automatically generates Make files, which are then used for building with Make.
The OpenFHE team always recommends using CMake as it is much easier to work with than Make. But maybe other developers in the forum have experimented with Make or other options?
@jason017 Seems like you use a Makefile here. for a regular make, the link line should have all include directories:
-I/usr/local/include/openfhe/core -I/usr/local/include/openfhe/pke -I//usr/local/include/openfhe/binfhe.
if this is a cmake file, you could add the following lines:
include_directories(/usr/local/include/openfhe/core)
include_directories(/usr/local/include/openfhe/pke)
include_directories(/usr/local/include/openfhe/binfhe)