微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Microsoft SEAL 构建失败Windows

如何解决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 举报,一经查实,本站将立刻删除。