小记:Windows上安装Microsoft SEAL

Windows上安装Microsoft SEAL

1. 下载最新的zip

Microsoft/SEAL

2. Visual Studio 2019(已安装)
3. 打开开发人员命令提示窗口(没有的话需要先安装)
4. 开始安装

按照README里的介绍,我一开始选择了下图的方法。
方法1


但报错了。

D:\是软工啊\research\SEAL-main>cmake -S . -B build -G “Visual Studio 16 2019” -A x64
– Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
– The CXX compiler identification is MSVC 19.25.28614.0
– The C compiler identification is MSVC 19.25.28614.0
– Check for working CXX compiler: E:/VS/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe
– Check for working CXX compiler: E:/VS/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Check for working C compiler: E:/VS/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe
– Check for working C compiler: E:/VS/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Build type (CMAKE_BUILD_TYPE): Release
– Microsoft SEAL debug mode: OFF
– Microsoft GSL: download …
CMake Error: Error: generator : Visual Studio 16 2019
Does not match the generator used previously: Ninja
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

CMake Error at E:/VS/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.16/Modules/FetchContent.cmake:903 (message):
CMake step for msgsl failed: 1
Call Stack (most recent call first):
E:/VS/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.16/Modules/FetchContent.cmake:1006 (__FetchContent_directPopulate)
cmake/ExternalMSGSL.cmake:12 (FetchContent_Populate)
cmake/SEALMacros.cmake:17 (include)
CMakeLists.txt:132 (seal_fetch_thirdparty_content)

– Configuring incomplete, errors occurred!
See also “D:/是软工啊/research/SEAL-main/build/CMakeFiles/CMakeOutput.log”.


于是就去问开发人员,他们给了我两个解决方法,我选择了第一种,也就是使用Ninja CMake generator,而不是Visual Studio 16 2019 generator。

解决方法

安装成功

安装成功

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值