diff --git a/content/dev/build/windows/_index.en.md b/content/dev/build/windows/_index.en.md index 8251467..9aeef0c 100644 --- a/content/dev/build/windows/_index.en.md +++ b/content/dev/build/windows/_index.en.md @@ -3,4 +3,48 @@ title: Windows weight: 20 --- -***Underway*** \ No newline at end of file +## Dependencies + +### c++ build environment + +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 + +Use `git-bash` to run the following commands, download `vcpkg`, install `libvpx`, `libyuv`, `opus`. + +```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 +``` + +Add environment variable `VCPKG_ROOT`=`vcpkg_dir`. + +### 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 + +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`. + + + +## Build + +```sh +git clone https://github.com/rustdesk/rustdesk +cd rustdesk +mkdir -p target/debug +mv sciter.dll target/debug +cargo run +``` + diff --git a/content/dev/build/windows/_index.zh-cn.md b/content/dev/build/windows/_index.zh-cn.md index 4ca1848..d1834bb 100644 --- a/content/dev/build/windows/_index.zh-cn.md +++ b/content/dev/build/windows/_index.zh-cn.md @@ -3,4 +3,48 @@ title: Windows weight: 20 --- -[English](/docs/en/dev/build/windows) \ No newline at end of file +## 依赖 + +### c++编译环境 + +推荐下载[msvc](https://visualstudio.microsoft.com/)并安装 + +### Rust 开发环境 +下载[rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe)并安装 + +### vcpkg + +使用`git-bash`运行下列命令, 下载`vcpkg`, 安装`libvpx`, `libyuv`, `opus` + +```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 +``` + +添加环境变量`VCPKG_ROOT`=`vcpkg_dir` + +### sciter + +桌面版本使用[sciter](https://sciter.com/) , 下载动态库[sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll) + +### llvm + +rust-bindgen依赖于clang, 下载[llvm](https://github.com/llvm/llvm-project/releases)并安装, 添加环境变量`LIBCLANG_PATH`,值为`llvm_install_dir/bin` + + + +## 构建 + +```sh +git clone https://github.com/rustdesk/rustdesk +cd rustdesk +mkdir -p target/debug +mv sciter.dll target/debug +cargo run +``` + diff --git a/content/dev/build/windows/_index.zh-tw.md b/content/dev/build/windows/_index.zh-tw.md index 4ca1848..9291a5f 100644 --- a/content/dev/build/windows/_index.zh-tw.md +++ b/content/dev/build/windows/_index.zh-tw.md @@ -3,4 +3,47 @@ title: Windows weight: 20 --- -[English](/docs/en/dev/build/windows) \ No newline at end of file +## 依賴 + +### c++編譯環境 + +推薦下載[msvc](https://visualstudio.microsoft.com/)並安裝 + +### Rust 開發環境 +下載[rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe)並安裝 + +### vcpkg + +使用`git-bash`運行下列命令, 下載`vcpkg`, 安裝`libvpx`, `libyuv`, `opus` + +```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 +``` + +添加環境變量`VCPKG_ROOT`=`vcpkg_dir` + +### sciter + +桌面版本使用[sciter](https://sciter.com/) , 下載動態庫[sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll) + +### llvm + +rust-bindgen依赖于clang, 下載[llvm](https://github.com/llvm/llvm-project/releases)並安裝, 添加環境變量`LIBCLANG_PATH`, 值為`llvm_install_dir/bin` + + + +## 構建 + +```sh +git clone https://github.com/rustdesk/rustdesk +cd rustdesk +mkdir -p target/debug +mv sciter.dll target/debug +cargo run +``` \ No newline at end of file