mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-04-09 09:16:27 +00:00
fixing doc
This commit is contained in:
@@ -3,52 +3,56 @@ title: Windows
|
||||
weight: 20
|
||||
---
|
||||
|
||||
# Dependencias
|
||||
{{% notice note %}}
|
||||
Los comandos de línea de comandos aquí deben ejecutarse en Git Bash, no en el símbolo del sistema o obtendrá errores de sintaxis.
|
||||
{{% /notice %}}
|
||||
|
||||
## Entorno de compilación C++
|
||||
## Dependencias
|
||||
|
||||
Descargar [msvc](https://visualstudio.microsoft.com/) e instalar.
|
||||
### Entorno de compilación C++
|
||||
|
||||
## Entorno de desarrollo Rust
|
||||
Descargar [MSVC](https://visualstudio.microsoft.com/) e instalar.
|
||||
Seleccione `Windows` como SO de máquina de desarrollador y marque `C++`, luego descargue la versión Visual Studio Community e instale. La instalación puede tardar un tiempo.
|
||||
|
||||
Descargar [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) e instalar.
|
||||
### Entorno de desarrollo Rust
|
||||
|
||||
## vcpkg
|
||||
Descargue [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) y ejecútelo como administrador para instalar `rust`.
|
||||
|
||||
Usar [git-bash](https://git-scm.com/download/win) para ejecutar los siguientes comandos, download `vcpkg`, install `libvpx`, `libyuv`, `opus`.
|
||||
### vcpkg
|
||||
|
||||
```shell
|
||||
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
|
||||
Vaya a la carpeta donde desea clonar vcpkg y use [Git Bash](https://git-scm.com/download/win) para ejecutar los siguientes comandos, descargue `vcpkg`, instale la versión de 64 bits de `libvpx`, `libyuv` y `opus`.
|
||||
Si no tiene `Git` instalado, obtenga `Git` [aquí](https://git-scm.com/download/win).
|
||||
|
||||
```sh
|
||||
git clone https://github.com/microsoft/vcpkg
|
||||
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
|
||||
```
|
||||
|
||||
Agregar variable de entorno `VCPKG_ROOT`=`<path>\vcpkg`.
|
||||
Agregar variable de entorno del sistema `VCPKG_ROOT`=`<path>\vcpkg`. El `<path>` debe ser la ubicación que eligió arriba para clonar `vcpkg`.
|
||||
|
||||

|
||||
|
||||
## sciter
|
||||
### Sciter
|
||||
|
||||
Uso de versiones de escritorio [sciter](https://sciter.com/) para GUI, descargue [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll)
|
||||
Las versiones de escritorio usan [Sciter](https://sciter.com/) para GUI, por favor descargue [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll).
|
||||
|
||||
## llvm
|
||||
### LLVM
|
||||
|
||||
rust-bindgen depende del clang, descargar [llvm](https://github.com/llvm/llvm-project/releases) e instalar, agregar variable de entorno `LIBCLANG_PATH`=`<llvm_install_dir>/bin`.
|
||||
`rust-bindgen` depende de `clang`, descargue [LLVM](https://github.com/llvm/llvm-project/releases) e instale, agregue la variable de entorno del sistema `LIBCLANG_PATH`=`<llvm_install_dir>/bin`.
|
||||
|
||||
Puede descargar la versión 15.0.2 de los binarios de LLVM aquí: [64 bit](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win64.exe) / [32 bit](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win32.exe).
|
||||
|
||||
## Construir
|
||||
|
||||
# Construir
|
||||
|
||||
## Por defecto
|
||||
### Por defecto
|
||||
|
||||
```sh
|
||||
git clone --recurse-submodules 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
|
||||
```
|
||||
|
||||
@@ -3,50 +3,54 @@ title: Windows
|
||||
weight: 20
|
||||
---
|
||||
|
||||
# 依赖
|
||||
{{% notice note %}}
|
||||
这里的命令行命令必须在 Git Bash 中运行,而不是命令提示符,否则您将遇到语法错误。
|
||||
{{% /notice %}}
|
||||
|
||||
## C++编译环境
|
||||
## 依赖
|
||||
|
||||
推荐下载[msvc](https://visualstudio.microsoft.com/)并安装
|
||||
### C++编译环境
|
||||
|
||||
## Rust 开发环境
|
||||
下载[rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe)并安装
|
||||
下载 [MSVC](https://visualstudio.microsoft.com/) 并安装。
|
||||
选择 `Windows` 作为开发人员机器操作系统并勾选 `C++`,然后下载 Visual Studio Community 版本并安装。安装可能需要一段时间。
|
||||
|
||||
## vcpkg
|
||||
### Rust 开发环境
|
||||
|
||||
使用[git-bash](https://git-scm.com/download/win)运行下列命令, 下载`vcpkg`, 安装`libvpx`, `libyuv`, `opus`
|
||||
下载 [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) 并以管理员身份运行它来安装 `rust`。
|
||||
|
||||
```shell
|
||||
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
|
||||
|
||||
转到您想要克隆 vcpkg 的文件夹,并使用 [Git Bash](https://git-scm.com/download/win) 运行以下命令,下载 `vcpkg`,安装 64 位版本的 `libvpx`、`libyuv` 和 `opus`。
|
||||
如果您没有安装 `Git`,请在[这里](https://git-scm.com/download/win)获取 `Git`。
|
||||
|
||||
```sh
|
||||
git clone https://github.com/microsoft/vcpkg
|
||||
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`。
|
||||
添加系统环境变量 `VCPKG_ROOT`=`<path>\vcpkg`。`<path>` 应该是您在上面选择克隆 `vcpkg` 的位置。
|
||||
|
||||

|
||||
|
||||
## Sciter
|
||||
### Sciter
|
||||
|
||||
桌面版本使用[sciter](https://sciter.com/) , 下载动态库[sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll)
|
||||
桌面版本使用 [Sciter](https://sciter.com/) 作为 GUI,请下载 [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll)。
|
||||
|
||||
## llvm
|
||||
### LLVM
|
||||
|
||||
rust-bindgen依赖于clang, 下载[llvm](https://github.com/llvm/llvm-project/releases)并安装, 添加环境变量`LIBCLANG_PATH`,值为`<llvm_install_dir>/bin`
|
||||
`rust-bindgen` 依赖于 `clang`,下载 [LLVM](https://github.com/llvm/llvm-project/releases) 并安装,添加系统环境变量 `LIBCLANG_PATH`=`<llvm_install_dir>/bin`。
|
||||
|
||||
您可以在这里下载 LLVM 二进制文件的 15.0.2 版本:[64 位](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win64.exe) / [32 位](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win32.exe)。
|
||||
|
||||
|
||||
# 构建
|
||||
#### 默认
|
||||
|
||||
```sh
|
||||
git clone --recurse-submodules 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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user