0

我已经在本地克隆了 Git repo https://github.com/microsoft/SEAL.git,当我尝试使用 cmake 指令构建时,出现以下错误。有人可以建议吗?

在我的 Visual Studio 2019 命令提示符的 x64 Native Tools 命令提示符中,

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".
4

0 回答 0