2022-04-12 06:43:15 +02:00
---
title: Windows
weight: 20
---
2022-05-09 05:06:10 +02:00
## Dependencies
2022-05-09 09:01:40 +02:00
### C++ build environment
2022-05-09 05:06:10 +02:00
Download [msvc ](https://visualstudio.microsoft.com/ ) and install.
### Rust develop environment
Download [rustup-init.exe ](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe ) and install.
### vcpkg
2022-05-09 08:52:18 +02:00
Use [git-bash ](https://git-scm.com/download/win ) to run the following commands, download `vcpkg` , install `libvpx` , `libyuv` , `opus` .
2022-05-09 05:06:10 +02:00
```shell
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
```
2022-05-09 08:52:18 +02:00
Add environment variable `VCPKG_ROOT` =`< path > \vcpkg`.
![](/docs/en/dev/build/windows/images/env.png)
2022-05-09 05:06:10 +02:00
### sciter
Desktop versions use [sciter ](https://sciter.com/ ) for GUI, please download [sciter.dll ](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll )
### llvm
2022-05-09 08:52:18 +02:00
rust-bindgen depends on clang, download [llvm ](https://github.com/llvm/llvm-project/releases ) and install, add environment variable `LIBCLANG_PATH` =`< llvm_install_dir > /bin`.
2022-05-09 05:06:10 +02:00
## Build
```sh
git clone https://github.com/rustdesk/rustdesk
cd rustdesk
mkdir -p target/debug
mv sciter.dll target/debug
cargo run
```