推荐下载msvc并安装
下载rustup-init.exe并安装
使用git-bash运行下列命令, 下载vcpkg
, 安装libvpx
, libyuv
, opus
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2023.04.15
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 aom:x64-windows-static
添加环境变量VCPKG_ROOT
=<path>\vcpkg
。
桌面版本使用sciter , 下载动态库sciter.dll
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