2.3 KiB
| title | weight |
|---|---|
| Windows | 20 |
{{% notice Let op %}} De commando-regel commando's moeten worden uitgevoerd in git-bash en niet in command prompt, anders krijg je syntaxfouten. {{% /notice %}}
Afhankelijkheden
C++ build-omgeving
Download msvc en installeer.
Selecteer Windows als Ontwikkelmachine OS en vink C++ aan, download dan Visual Studo Community versie en installeer. De installatie kan even duren.
Rust ontwikkel omgeving
Download rustup-init.exe en voer het uit als administrator om rust te installeren.
vcpkg
Ga naar de map waarin u vcpkg wilt klonen en gebruik git-bash om de volgende commando's uit te voeren, download vcpkg, installeer 64bit versie van libvpx, libyuv en opus.
Als je git niet hebt ingesteld, haal dan git hier.
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
Voeg Systeem omgevingsvariabele toe VCPKG_ROOT=<path>\vcpkg. Het <path> moet de locatie zijn die u hierboven hebt gekozen om vcpkg te klonen.
sciter
Desktop versies gebruiken sciter voor GUI, download sciter.dll
llvm
rust-bindgen zijn afhankelijk van clang, download llvm en installeer, voeg systeem omgevingsvariabele LIBCLANG_PATH=<llvm_install_dir>/bin toe.
U kunt 15.02 van de LLVM-binaire bestanden hier downloaden: 64-bit / 32-bit
Build
Standaard
git clone https://github.com/rustdesk/rustdesk
cd rustdesk
mkdir -p target/debug
wget https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll
mv sciter.dll target/debug
cargo run
