mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-04-08 16:56:28 +00:00
full translation
This commit is contained in:
@@ -3,4 +3,56 @@ title: Windows
|
||||
weight: 20
|
||||
---
|
||||
|
||||
[English](/docs/en/dev/build/windows)
|
||||
{{% notice note %}}
|
||||
I comandi da riga di comando qui mostrati devono essere eseguiti in Git Bash e non nel prompt dei comandi, altrimenti si verificheranno errori di sintassi.
|
||||
{{% /notice %}}
|
||||
|
||||
### Dipendenze
|
||||
|
||||
#### Ambiente di build C++
|
||||
|
||||
Scarica [MSVC](https://visualstudio.microsoft.com/) e installalo.
|
||||
Seleziona `Windows` come OS della macchina di sviluppo e spunta `C++`, quindi scarica la versione Visual Studio Community e installala. L'installazione potrebbe richiedere un po' di tempo.
|
||||
|
||||
#### Ambiente di sviluppo Rust
|
||||
|
||||
Scarica [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) ed eseguilo come amministratore per installare `rust`.
|
||||
|
||||
#### vcpkg
|
||||
|
||||
Vai nella cartella dove vuoi clonare vcpkg e usa [Git Bash](https://git-scm.com/download/win) per eseguire i seguenti comandi, per scaricare `vcpkg` e installare le versioni a 64 bit di `libvpx`, `libyuv` e `opus`.
|
||||
Se non hai `Git` installato, scarica `Git` [qui](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
|
||||
```
|
||||
|
||||
Aggiungi la variabile d'ambiente di sistema `VCPKG_ROOT`=`<path>\vcpkg`. Il `<path>` dovrebbe essere la posizione scelta sopra per clonare `vcpkg`.
|
||||
|
||||

|
||||
|
||||
#### Sciter
|
||||
|
||||
Le versioni desktop utilizzano [Sciter](https://sciter.com/) per la GUI, per favore scarica [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll).
|
||||
|
||||
#### LLVM
|
||||
|
||||
`rust-bindgen` dipende da `clang`, scarica [LLVM](https://github.com/llvm/llvm-project/releases) e installalo, aggiungi la variabile d'ambiente di sistema `LIBCLANG_PATH`=`<llvm_install_dir>/bin`.
|
||||
|
||||
Puoi scaricare la versione 15.0.2 dei binari LLVM qui: [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).
|
||||
|
||||
### Build
|
||||
|
||||
#### Predefinito
|
||||
|
||||
```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,4 +3,56 @@ title: Windows
|
||||
weight: 20
|
||||
---
|
||||
|
||||
[English](/docs/en/dev/build/windows)
|
||||
{{% notice note %}}
|
||||
ここに示すコマンドライン指示は、コマンドプロンプトではなく Git Bash で実行する必要があります。そうしないと構文エラーが発生します。
|
||||
{{% /notice %}}
|
||||
|
||||
### 依存関係
|
||||
|
||||
#### C++ ビルド環境
|
||||
|
||||
[MSVC](https://visualstudio.microsoft.com/) をダウンロードしてインストールします。
|
||||
開発者マシンOS として `Windows` を選択し、`C++` をチェックしてから、Visual Studio Community版をダウンロードしてインストールします。インストールには時間がかかる場合があります。
|
||||
|
||||
#### Rust開発環境
|
||||
|
||||
[rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) をダウンロードし、管理者として実行して `rust` をインストールします。
|
||||
|
||||
#### 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` を追加します。`<path>` は、上記で vcpkg をクローンした場所です。
|
||||
|
||||

|
||||
|
||||
#### Sciter
|
||||
|
||||
デスクトップ版は GUI に [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` を追加します。
|
||||
|
||||
LLVM バイナリ版 15.0.2 はこちらからダウンロードできます: [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)
|
||||
|
||||
### ビルド
|
||||
|
||||
#### デフォルト
|
||||
|
||||
```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
|
||||
```
|
||||
@@ -1,61 +0,0 @@
|
||||
---
|
||||
title: Windows
|
||||
weight: 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](https://visualstudio.microsoft.com/) 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](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/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](https://git-scm.com/download/win) 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](https://git-scm.com/download/win).
|
||||
|
||||
```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
|
||||
```
|
||||
|
||||
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](https://sciter.com/) voor GUI, download [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll)
|
||||
|
||||
### llvm
|
||||
|
||||
rust-bindgen zijn afhankelijk van clang, download [llvm](https://github.com/llvm/llvm-project/releases) 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](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)
|
||||
|
||||
|
||||
## Build
|
||||
|
||||
### Standaard
|
||||
|
||||
```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
|
||||
```
|
||||
@@ -1,27 +1,27 @@
|
||||
---
|
||||
title: Windows
|
||||
title: Windows
|
||||
weight: 20
|
||||
---
|
||||
|
||||
{{% notice note %}}
|
||||
Os comandos de linha de comando aqui devem ser executados no Git Bash, não no prompt de comando, ou você obterá erros de sintaxe.
|
||||
Os comandos de linha de comando aqui devem ser executados no Git Bash, não no prompt de comando, ou você receberá erros de sintaxe.
|
||||
{{% /notice %}}
|
||||
|
||||
### Dependências
|
||||
|
||||
#### Ambiente de desenvolvimento C++
|
||||
#### Ambiente de compilação C++
|
||||
|
||||
Baixe o [MSVC](https://visualstudio.microsoft.com/) e instale-o.
|
||||
Selecione `Windows` como SO da máquina do desenvolvedor e marque `C++`, depois baixe a versão Visual Studio Community e instale-a. A instalação pode demorar um pouco.
|
||||
Baixe [MSVC](https://visualstudio.microsoft.com/) e instale.
|
||||
Selecione `Windows` como SO da máquina de desenvolvimento e marque `C++`, depois baixe a versão Visual Studio Community e instale. A instalação pode demorar um pouco.
|
||||
|
||||
#### Ambiente de desenvolvimento Rust
|
||||
|
||||
Baixe o [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) e execute-o como administrador para instalar o `rust`.
|
||||
Baixe [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) e execute como administrador para instalar `rust`.
|
||||
|
||||
#### vcpkg
|
||||
|
||||
Vá para a pasta onde deseja clonar o vcpkg e use o [Git Bash](https://git-scm.com/download/win) para executar os seguintes comandos: baixe o `vcpkg`, instale a versão de 64 bits do `libvpx`, `libyuv` e `opus`.
|
||||
Se você não tem o `Git` instalado, baixe-o [aqui](https://git-scm.com/download/win).
|
||||
Vá para a pasta onde você quer clonar o vcpkg e use [Git Bash](https://git-scm.com/download/win) para executar os seguintes comandos, baixar `vcpkg`, instalar versão 64-bit de `libvpx`, `libyuv` e `opus`.
|
||||
Se você não tem `Git` instalado, obtenha o `Git` [aqui](https://git-scm.com/download/win).
|
||||
|
||||
```sh
|
||||
git clone https://github.com/microsoft/vcpkg
|
||||
@@ -30,21 +30,21 @@ export VCPKG_ROOT=$PWD/vcpkg
|
||||
vcpkg/vcpkg install libvpx:x64-windows-static libyuv:x64-windows-static opus:x64-windows-static aom:x64-windows-static
|
||||
```
|
||||
|
||||
Adicione a variável de ambiente do sistema `VCPKG_ROOT`=`<caminho>\vcpkg`. O `<caminho>` deve ser o local que você escolheu acima para clonar o `vcpkg`.
|
||||
Adicione variável de ambiente do Sistema `VCPKG_ROOT`=`<path>\vcpkg`. O `<path>` deve ser a localização que você escolheu acima para clonar `vcpkg`.
|
||||
|
||||

|
||||
|
||||
#### Sciter
|
||||
|
||||
As versões para desktop usam o [Sciter](https://sciter.com/) para a interface gráfica. Faça o download do [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll).
|
||||
As versões desktop usam [Sciter](https://sciter.com/) para GUI, por favor baixe [sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll).
|
||||
|
||||
#### LLVM
|
||||
|
||||
`rust-bindgen` depende do `clang`. Faça o download do [LLVM](https://github.com/llvm/llvm-project/releases) e instale-o. Em seguida, adicione a variável de ambiente do sistema `LIBCLANG_PATH`=`<diretório_instalação_llvm>/bin`.
|
||||
`rust-bindgen` depende de `clang`, baixe [LLVM](https://github.com/llvm/llvm-project/releases) e instale, adicione variável de ambiente do Sistema `LIBCLANG_PATH`=`<llvm_install_dir>/bin`.
|
||||
|
||||
Você pode baixar a versão 15.0.2 dos binários do LLVM aqui: [64 bits](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win64.exe) / [32 bits](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.2/LLVM-15.0.2-win32.exe).
|
||||
Você pode baixar a versão 15.0.2 dos binários LLVM aqui: [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).
|
||||
|
||||
### Compilação
|
||||
### Compilar
|
||||
|
||||
#### Padrão
|
||||
|
||||
@@ -55,4 +55,4 @@ 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
|
||||
```
|
||||
```
|
||||
@@ -1,50 +0,0 @@
|
||||
---
|
||||
title: Windows
|
||||
weight: 20
|
||||
---
|
||||
|
||||
## Зависимости
|
||||
|
||||
### Среда сборки C++
|
||||
|
||||
Скачайте и установите [msvc](https://visualstudio.microsoft.com/).
|
||||
|
||||
### Среда разработки Rust
|
||||
Download [rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe) and install.
|
||||
|
||||
### vcpkg
|
||||
|
||||
Используйте [git-bash](https://git-scm.com/download/win) для запуска следующих команд: загрузите `vcpkg`, установите `libvpx`, `libyuv`, `opus`.
|
||||
|
||||
```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_ROOT`=`<path>\vcpkg`.
|
||||
|
||||

|
||||
|
||||
### 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 --recurse-submodules https://github.com/rustdesk/rustdesk
|
||||
cd rustdesk
|
||||
mkdir -p target/debug
|
||||
mv sciter.dll target/debug
|
||||
cargo run
|
||||
```
|
||||
Reference in New Issue
Block a user