doc.rustdesk.com/content/dev/build/windows/_index.en.md
2022-05-09 15:01:40 +08:00

1.3 KiB
Raw Blame History

title weight
Windows 20

Dependencies

C++ build environment

Download msvc and install.

Rust develop environment

Download rustup-init.exe and install.

vcpkg

Use git-bash to run the following commands download vcpkg, install 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

Add environment variable VCPKG_ROOT=<path>\vcpkg.

sciter

Desktop versions use sciter for GUI, please download sciter.dll

llvm

rust-bindgen depends on clang, download llvm and installadd environment variable LIBCLANG_PATH=<llvm_install_dir>/bin.

Build

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