在windows上安装Microsoft SEAL

在windows上安装Microsoft SEAL

Note!说明

安装的版本为3.6

需要环境

Visual Studio 2019 with C++ CMake Tools for Windows

1. git 项目文件

git clone https://github.com/microsoft/SEAL.git

2. 以管理员打开VS2019打开SEAL文件夹

image-20210122214210031

打开后,VS会自动运行cmake配置

Visual Studio will detect that this is a CMake-based project and will enable the menu command Project / CMake settings for SEAL. This will open the CMake settings editor that provides a user interface where you can create different configurations and set different CMake options.

3. VS里打开终端powershell

image-20210122214602674

因为VS2019是以管理员打开的,所以打开的终端也是带有管理员权限的

4. 在终端中依次输入

cmake -S . -B build
cmake --build build
cmake --install build

或者采用
#Generate and build for x64 in Release mode

cmake -S . -B build -G "Visual  Studio 16 2019" -A x64
cmake --build build --config Release
cmake --install build

如果成功,则默认安装的C:/Program Files(x86)/SEAL/目录下

image-20210122214935322

或者直接打开 x64 Native Tools

进入到你的从github上下载的SEAL文件夹位置
在这里插入图片描述
依次输入以下命令

cmake -S . -B build -G Ninja
cmake --build build
cmake --install build

如果不出问题出现下面图片,则安装完成
在这里插入图片描述

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值