ユーザ用ツール

サイト用ツール


このページの翻訳:



最近の更新



Tag Cloud

50_dialy:2025:03:14

文書の過去の版を表示しています。


2025.03.14 Zed Editor

Zed EditorをWindows用にビルド

1.Rustインストール

ダウンロード、インストールする場合: https://www.rust-lang.org/ja/tools/install

winget install Rustlang.Rustup

2.MSVCのインストール

MSVC(Microsoft Visual C++)

Build Tools for Visual Studioを利用

winget install Microsoft.VisualStudio.2022.BuildTools

C++ ツールセット追加

Visual Studio Installer から追加

  1. Win + S を押して「Visual Studio Installer」と入力し、開く。
    • 「Visual Studio Build Tools」を選択
  2. 「変更」ボタンをクリック。
    • 「C++ によるデスクトップ開発」ワークロードを追加
  3. C++ コンパイラとビルドツール を含むワークロードをチェックする。
    • 「変更」ボタンを押してインストールを開始
  4. 「変更」ボタンを押してインストールを開始
    • インストールが完了したら、PCを再起動する。

cmakeも必要

winget install Kitware.CMake

3.wasmツールチェインインストール

WebAssembly(WASM)向けにコードをコンパイル・実行するための開発ツールのセットです。
通常、コンパイラ、ランタイム、デバッガ、リンカなどが含まれます。

rustup target add wasm32-wasip1

4.ソースClone

git clone https://github.com/zed-industries/zed.git

5.コンパイル

cd zed
rustup override set stable-x86_64-pc-windows-msvc
cargo build --release --target stable-x86_64-pc-windows-msvc

エラー集

cmakeがない

error: failed to run custom build command for `aws-lc-sys v0.27.0`

Caused by:
  process didn't exit successfully: `C:\Users\s-matsui\zed\target\release\build\aws-lc-sys-e3261c7b861cf150\build-script-main` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREFIX
  cargo:rerun-if-env-changed=AWS_LC_SYS_PREGENERATING_BINDINGS
  cargo:rerun-if-env-changed=AWS_LC_SYS_EXTERNAL_BINDGEN
  cargo:rerun-if-env-changed=AWS_LC_SYS_NO_ASM
  cargo:rerun-if-env-changed=AWS_LC_SYS_CFLAGS
  cargo:rerun-if-env-changed=AWS_LC_SYS_PREBUILT_NASM
  cargo:rerun-if-env-changed=AWS_LC_SYS_C_STD
  cargo:rustc-cfg=x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_BUILDER
  cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
  default_for Target: 'x86_64-pc-windows-msvc'
  cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
  cargo:rerun-if-env-changed=CMAKE

  --- stderr
  Missing dependency: cmake

  thread 'main' panicked at C:\Users\s-matsui\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\aws-lc-sys-0.27.0\builder\main.rs:382:40:
  called `Result::unwrap()` on an `Err` value: "Required build dependency is missing. Halting build."
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

対応方法

link.exeがない

error: linker link.exe not found
  |
  = note: program not found

note: the msvc targets depend on the msvc linker but link.exe was not found

note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.

note: VS Code is a different product, and is not sufficient.

   Compiling cc v1.2.12
error: could not compile windows_x86_64_msvc (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile typeid (build script) due to 1 previous error
error: could not compile serde (build script) due to 1 previous error
error: could not compile proc-macro2 (build script) due to 1 previous error

対応方法

50_dialy/2025/03/14.1742013832.txt.gz · 最終更新: 2025/03/15 13:43 by matsui