doc.rustdesk.com/content/dev/build/windows/_index.zh-tw.md
21pages ff26236bce windows build
Signed-off-by: 21pages <pages21@163.com>
2022-05-09 11:12:05 +08:00

1.1 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=vcpkg_dir

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