Hi,
I think there is a bug in the build system. Here are the steps to reproduce it:
When I start the building process I am in the /home/ec2-user location (here I run git clone https://github.com/openfheorg/openfhe-configurator.git)
-
Follow the instruction from here.
-
Once the build is done,
cd openfhe-configurator/openfhe-staging/openfhe-development/build/and then runsudo make install -
Try to build a simple example like this using the standard CMakeLists.User.txt. You create a folder
mkdir build, you runcd buildthencmake ..and thenmake. -
You will get the following error:

-
Open the
/usr/local/lib/OpenFHE/OpenFHETargets.cmakefile and replaceset(_IMPORT_PREFIX "ON")withset(_IMPORT_PREFIX "/home/ec2-user/openfhe-configurator/openfhe-staging/openfhe-development/build/ON") -
Return to step 3.
-
You will get the following error:

-
Copy the hexl includes in the standard location:
cp -r /home/ec2-user/openfhe-configurator/openfhe-staging/include/* /usr/local/include/ -
Copy the hexl libraries in the standard location:
cp -r /home/ec2-user/openfhe-configurator/openfhe-staging/lib64/* /usr/local/lib/ -
Edit the file
/usr/local/lib/OpenFHE/OpenFHEConfig.cmakeby replacingHEXL::hexlwithhexl -
Edit the file
/usr/local/lib/OpenFHE/OpenFHETargets.cmakeby replacingHEXL::hexlwithhexl -
Return to step 3. You are in the
builddirectory. You runcmake ..and thenmake. You will get the following error:
-
Copy the includes of openfhe in the standard location:
cp -r /home/ec2-user/openfhe-configurator/openfhe-staging/openfhe-development/build/ON/include/* /usr/local/include/ -
Copy the openfhe libraries in the standard location:
cp -r /home/ec2-user/openfhe-configurator/openfhe-staging/openfhe-development/build/ON/lib/* /usr/local/lib -
Return to step 3. Here is the hard part that I didn’t get it. After you execute
makewill you get a linker error:
The error is much longer but the idea is that it’s a linker error. Maybe it’s not a bug and I did something wrong. Do you have any ideas?
Thank you!
