抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

@auther by sizaif

在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

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

评论吧

0  字
评论
Powered by Waline v1.6.0


本站总访问量为 访客数为

鲁 ICP 备 20018157 号-1
Copyright 2021 - 2022 sizaif. All Rights Reserved