msquic的windows版本编译

首先确保安装cmake和powershell(需要6以上,本人升级到了7.5),vs(本人用的vs2022)

powershell,默认是5,会编译不成功,所以附带一个升级的流程

$PSVersionTable.PSVersion                                查看当前版本
winget search Microsoft.PowerShell                        查找可更新的版本
winget install --id Microsoft.Powershell --source winget               安装新版
winget install --id Microsoft.Powershell.Preview --source winget               安装预览版

以上,先看powershell版本,然后再看可升级的版本,7.5.1和一个7.6.0的预览版,然后安装7.5.1(正式版和预览版二选一就可以,我这里已经安装过了)

由于powershell多个版本是可以共存的,所以需要把默认的powershell换成当前的7.5.1

powershell 7默认安装到C:\Program Files\PowerShell了,把 C:\Program Files\PowerShell\7目录拷贝到 C:\Windows\System32\WindowsPowerShell

将v1.0改成v1.0_old,将目录7改成v1.0,再将v1.0\pwsh.sh改成powershell.exe

大功告成,shift按住右键打开powershell,便可以默认打开7.5.1的新版powershell了

然后下载msquic,参照Building MsQuic

First, clone the repo recursively: git clone --recurse-submodules https://github.com/microsoft/msquic.git

For existing repositories, run git submodule update --init --recursive to get all the submodules.

然后进入msquic目录

打开powershell,输入./scripts/build.ps1
编译完成后可以在 msquic\build\windows\x64_schannel目录看到msquic.sln

打开后大概是这样

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值