Can not Make OpenFHE Python in Windows

I follow all the steps to install OpenFHE Python in Windows:

  • I didn’t use Anaconda or any virtual environment, just run it in MSYS2 MinGW
  • OpenFHE C++ installed (tested by running some examples)
  • Python installed in MinGW: pacman -S mingw-w64-x86_64-python
  • Pybind installed in MinGW: pacman -S mingw-w64-x86_64-pybind11
  • I run the cmake with specifying the Python Path: cmake .. -DPYTHON_EXECUTABLE_PATH="/mingw64/bin/python"

No error is shown, but when I try to run make it gives me an error:

make: *** No targets specified and no makefile found.  Stop.

Did I miss something or any specific additonal steps for Windows installation?


Additional information. This is the output after running the cmake:

-- Building for: Ninja
-- The C compiler identification is GNU 14.1.0
-- The CXX compiler identification is GNU 14.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at C:/msys64/mingw64/lib/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:/msys64/mingw64/lib/cmake/pybind11/pybind11Tools.cmake:50 (find_package)
  C:/msys64/mingw64/lib/cmake/pybind11/pybind11Common.cmake:202 (include)
  C:/msys64/mingw64/lib/cmake/pybind11/pybind11Config.cmake:250 (include)
  CMakeLists.txt:114 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: C:/msys64/mingw64/bin/python3.exe (found suitable version "3.11.9", minimum required is "3.7")
-- Found PythonLibs: C:/msys64/mingw64/lib/libpython3.11.dll.a
-- 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:/msys64/mingw64/include (found version "2.13.1")
CMake Warning (dev) at CMakeLists.txt:170 (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:/msys64/mingw64/bin/python3.exe (found version "3.11.9")
-- Python site packages directory: C:/msys64/mingw64
***** INSTALL IS AT C:/msys64/mingw64; to change, run cmake with -DCMAKE_INSTALL_PREFIX=/your/path
-- Configuring done (3.2s)
-- Generating done (0.1s)
-- Build files have been written to: C:/msys64/home/rianadam/openfhe-python/build

We have not tested the OpenFHE wrapper in MinGW yet. There is an open issue for adding Windows support: Add support for Windows (MinGW) · Issue #58 · openfheorg/openfhe-python · GitHub for this. Maybe someone from the community already got it working in Windows?