doc.rustdesk.com/content/dev/build/windows/_index.zh-cn.md
2022-05-09 14:52:18 +08:00

1.2 KiB

title weight
Windows 20

依赖

c++编译环境

推荐下载msvc并安装

Rust 开发环境

下载rustup-init.exe并安装

vcpkg

使用git-bash运行下列命令, 下载vcpkg, 安装libvpx, libyuv, opus

  git clone https://github.com/microsoft/vcpkg
  cd vcpkg
  git checkout 2021.12.01
  cd ..
  vcpkg/bootstrap-vcpkg.bat
  export VCPKG_ROOT=$PWD/vcpkg
  vcpkg/vcpkg install libvpx:x64-windows-static libyuv:x64-windows-static opus:x64-windows-static

添加环境变量VCPKG_ROOT=<path>\vcpkg

sciter

桌面版本使用sciter , 下载动态库sciter.dll

llvm

rust-bindgen依赖于clang, 下载llvm并安装, 添加环境变量LIBCLANG_PATH,值为<llvm_install_dir>/bin

构建

git clone https://github.com/rustdesk/rustdesk
cd rustdesk
mkdir -p target/debug
mv sciter.dll target/debug
cargo run