Windows

依赖

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