Files
doc.rustdesk.com/content/dev/build/windows/_index.ja.md
rustdesk 56cfd26e35 seo/geo
2026-03-20 18:42:55 +08:00

3.9 KiB

title, weight, description, keywords
title weight description keywords
Windows 20 RustDesk のWindowsに関するドキュメントです。インストール、設定、展開、トラブルシューティングのガイドを参照できます。
build rustdesk windows
rustdesk windows build
rustdesk vcpkg windows
rustdesk sciter dll
rustdesk llvm libclang

Windows でビルドする前に何が必要ですか?

Windows で RustDesk をビルドするには、Visual Studio の C++ ツールチェーン、Rust、vcpkgsciter.dll、そして LIBCLANG_PATH を正しく設定した LLVM が必要です。コマンドは Git Bash で実行すると、ドキュメントどおりの構文と環境変数設定で進められます。

Windows ビルドのチェックリスト

  • C++ ワークロード付きの Visual Studio を入れます。
  • rustup-init.exe で Rust を入れます。
  • vcpkg を clone して初期化し、VCPKG_ROOT を設定します。
  • デスクトップ UI 用の sciter.dll をダウンロードします。
  • LLVM を入れ、LIBCLANG_PATH をその bin ディレクトリに向けます。
  • RustDesk を clone し、Git Bash で標準ビルド手順を実行します。

{{% notice note %}} ここに示すコマンドライン指示は、コマンドプロンプトではなく Git Bash で実行する必要があります。そうしないと構文エラーが発生します。 {{% /notice %}}

依存関係

C++ ビルド環境

MSVC をダウンロードしてインストールします。 開発者マシンOS として Windows を選択し、C++ をチェックしてから、Visual Studio Community版をダウンロードしてインストールします。インストールには時間がかかる場合があります。

Rust開発環境

rustup-init.exe をダウンロードし、管理者として実行して rust をインストールします。

vcpkg

vcpkg をクローンしたいフォルダに移動し、Git Bash を使用して以下のコマンドを実行し、vcpkg をダウンロードして、64ビット版の libvpxlibyuvopus をインストールします。 Git がインストールされていない場合は、こちら から Git を入手してください。

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 を使用しています。sciter.dll をダウンロードしてください。

LLVM

rust-bindgenclang に依存しています。LLVM をダウンロードしてインストールし、システム環境変数 LIBCLANG_PATH=<llvm_install_dir>/bin を追加します。

LLVM バイナリ版 15.0.2 はこちらからダウンロードできます: 64 bit / 32 bit

ビルド

デフォルト

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