Microsoft SEAL 构建失败Windows

问题描述

我在本地克隆了 Git 存储库 https://github.com/microsoft/SEAL.git,当我尝试使用 cmake 指令进行构建时,出现以下错误。有人可以请教吗?

在我的用于 Visual Studio 2019 命令提示符的 x64 本机工具命令提示符中,

cmake -S . -B build -G Ninja

输出如下。

D:\GitHub\SEAL>cmake -S . -B build -G Ninja
-- Build type (CMAKE_BUILD_TYPE): Release
-- The CXX compiler identification is MSVC 19.29.30037.0
-- The C compiler identification is MSVC 19.29.30037.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Microsoft SEAL debug mode: OFF
-- SEAL_USE_CXX17: ON
-- SEAL_BUILD_DEPS: ON
-- SEAL_USE_MSGSL: ON
-- Microsoft GSL: download ...
CMake Error at D:/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/ExternalProject.cmake:2633 (message):
  error: Could not find git for clone of msgsl-populate
Call Stack (most recent call first):
  D:/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/ExternalProject.cmake:3681 (_ep_add_download_command)
  CMakeLists.txt:22 (ExternalProject_Add)


-- Configuring incomplete,errors occurred!
See also "D:/GitHub/SEAL/thirdparty/msgsl-subbuild/CMakeFiles/CMakeOutput.log".

CMake Error at D:/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FetchContent.cmake:1000 (message):
  CMake step for msgsl Failed: 1
Call Stack (most recent call first):
  D:/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FetchContent.cmake:1141:EVAL:2 (__FetchContent_directPopulate)
  D:/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FetchContent.cmake:1141 (cmake_language)
  cmake/ExternalMSGSL.cmake:12 (FetchContent_Populate)
  cmake/SEALMacros.cmake:17 (include)
  CMakeLists.txt:146 (seal_fetch_thirdparty_content)


-- Configuring incomplete,errors occurred!
See also "D:/GitHub/SEAL/build/CMakeFiles/CMakeOutput.log".

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)