I’ve installed OpenFHE 1.1.3+ according to the repo instructions and am attempting to build the Python wrapper from source. When I run cmake ..
in the build directory it seems to proceed with only a few warnings. However, when I attempt to make
the build, there appears to be no Makefile generated in the parent directory or in the build directory.
Windows version: Windows 11
Python: 3.12.3
OpenFHE: 1.2.4
Error:
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
CMake Warning (dev) at C:/Users/rishi/anaconda3/share/cmake/pybind11/FindPythonLibsNew.cmake:101 (message):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning, or
preferably upgrade to using FindPython, either by calling it explicitly
before pybind11, or by setting PYBIND11_FINDPYTHON ON before pybind11.
Call Stack (most recent call first):
C:/Users/rishi/anaconda3/share/cmake/pybind11/pybind11Tools.cmake:50 (find_package)
C:/Users/rishi/anaconda3/share/cmake/pybind11/pybind11Common.cmake:228 (include)
C:/Users/rishi/anaconda3/share/cmake/pybind11/pybind11Config.cmake:250 (include)
CMakeLists.txt:18 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonInterp: C:/Users/rishi/anaconda3/python.exe (found suitable version "3.12.3", minimum required is "3.7")
-- pybind11::lto disabled (problems with undefined symbols for MinGW for now)
-- pybind11::thin_lto disabled (problems with undefined symbols for MinGW for now)
-- Found pybind11: C:/Users/rishi/anaconda3/include (found version "2.13.6")
CMake Warning (dev) at CMakeLists.txt:77 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonInterp: C:/Users/rishi/anaconda3/python.exe (found version "3.12.3")
-- Python site packages directory: C:\Users\rishi\anaconda3
***** INSTALL IS AT C:/Program Files (x86)/OpenFHE-Python; to change, run cmake with -DCMAKE_INSTALL_PREFIX=/your/path
-- Configuring done (0.9s)
-- Generating done (0.1s)
-- Build files have been written to: C:/msys64/home/rishi/openfhe-python/build
This message is provided in both a Python venv and a Conda venv.