在 Windows 10 系统编译 RustDesk

环境信息

操作系统:Windows 10 LTSC 2019

提前安装 RustGit

安装 LLVM

LLVM Download Page 页面找到最新版本,跳转到对应的 GitHub 页面下载 Windows 版安装程序。

image20211015145057j5mc758.png

image20211015145241zmsxuvo.png

双击安装

记得将 LLVM 添加到系统环境变量 PATH。

2021101309405620211016095208wm6aori.png

安装 Vcpkg

下载并安装

在 C 盘创建 dev 文件夹,并下载 vcpkg,然后运行 bootstrap-vcpkg.bat 脚本。

mkdir dev
cd dev
git clone https://github.com/microsoft/vcpkg
./vcpkg/bootstrap-vcpkg.bat

2021101518040820211015180431yp6odvy.png

遇到的问题:下载失败

202110151717082021101608313053tpek4.png

解决方法:设置代理

export https_proxy=IP:Port

其中,IP:Port 替换为自己的代理 IP 和 端口号。

配置环境变量

安装成功后,新建环境变量 VCPKG_ROOT,将它的值设置为 Vcpkg 的安装目录。并将VCPKG_ROOT 的值添加到 Path 中。

2021101609573020211016095803ixru8fz.png

安装 Rustdesk 所需的库

使用 Vcpkg 安装 Rustdesk 所需的库:

vcpkg install libvpx:x64-windows-static libyuv:x64-windows-static opus:x64-windows-static

2021101610145620211016102202o6fmy0m.png

遇到的问题:libyuv:x64-windows-static 安装失败

2021101611314520211016114714n5fxoz4.png

解决方法:给 Git 配置代理

git config --global https.proxy IP:Port

其中,IP:Port 替换为自己的代理 IP 和 端口号。

编译运行

git clone https://github.com/rustdesk/rustdesk
cd rustdesk

# 下载 sciter 到当前目录,也可以手动下载并放到 rustdesk 目录
curl -O https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll

# 运行
cargo run

2021101612011920211016120133cxj0340.png

评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值