I follow the guide of document for building my application.
I paste the CKKS example from OpenFHE, copy the “CMakeLists.User.txt” to the my folder and rename it.
But when make, I meet a strenge error
(base) lance@407350:~/fhe_example/build# make
[ 50%] Building CXX object CMakeFiles/test.dir/ckks_example.cpp.o
c++: error: unrecognized command line option ‘-fopenmp=libomp’; did you mean ‘-fopenmp-simd’?
c++: error: unrecognized command line option ‘-fopenmp=libomp’; did you mean ‘-fopenmp-simd’?
make[2]: *** [CMakeFiles/test.dir/build.make:63: CMakeFiles/test.dir/ckks_example.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/test.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
This is an odd error, since -fopenmp is defined only in OpenMP_CXX_FLAGS and OpenMP_C_FLAGS
and it looks like that is getting mangled somehow into -fopenmp=libomp
Did you edit the copy of CMakeLists.User.txt to add your specific executable name? that should be the only think you needed to change.
Did you “make install” the openFHE library on you system? The default location requires sudo permission, but you can install it locally by specifying a directory name when you run cmake.
Thank you for your help, but this error magically disappears without any changes, it fixes itself
I will try your method at the last time meeting this error.
Danke!
Please open a new discussion. In that discussion include additional information such as your OS, what version of OpenFHE you’re installing, what errors you’re encountering, what commands you’ve run (please be detailed) and more