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

1.2 KiB
Raw Blame History

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