I am getting the following error when trying to execute my code on Windows.
xxxxx@xxx MINGW64 ~/OneDrive/Documents/FHE123/build
$ ./simpleinteger.exe
C:/Users/xxxxx/XXXX/Documents/FHE123/build/simpleinteger.exe: error while loading shared libraries: libOPENFHEpke.dll: cannot open shared object file: No such file or directory
I copied libOPENFHEpke.dll to the ‘lib’ folder in C:\home\xxxxx\build\lib but the problem persists.
I am using VSCode, and ran the following to arrive at this point
mkdir build
cd build/
cmake …
cmake --build . [At this point the libOPENFHEpke.dll.a and libOPENFHEpke.dll were
not in the lib folder, so I copied the files there.]
./simpleinteger.exe
I would appreciate your help because I have searched a lot of online materials but could not find any solution.
I have never worked with OpenFHE on native Windows, but I think you need to add the OpenFHE DLLs directory to the PATH environment variable.
Try doing that in windows GUI, or you can try this command line:
Can you confirm you could build and install OpenFHE correctly following this guide?
If so, did you use this guide to build your user application reward?
Yes, I did. I have also successfully compiled other OpenFHE codes. In this code, I made some changes to the cmakelists file below shown below by editing set(CMAKE_CXX_STANDARD 20)
Also, I am trying use openFHE to encrypt between two arduino communication. I finally got to this point and I am getting this error.
Hello Sir,
I changed the standard back to 17 in cmakeLists.txt and made some changes to the code. The undefined error I am getting now is related to the twi.h file I included. It cannot see the other pair of twi.cpp while linking. On the other hand, it can see the OpenFHE link libraries from link_directories( {OpenFHE_LIBDIR} ) link_directories( {OPENMP_LIBRARIES} ).
How do I edit the cmakeLists.txt to make the compiler see other link directories?
Note: I already added the folder to the include directories in cmakeLists.txt.
Thank you