ユーザ用ツール

サイト用ツール


50_dialy:2025:03:14

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
50_dialy:2025:03:14 [2025/03/15 04:59] matsui50_dialy:2025:03:14 [2025/03/15 11:39] (現在) matsui
行 1: 行 1:
-====== 2025.03.14 Zed Editor ======+====== 2025.03.14 Zed Editor Windowsでビルド ======
  
 Zed EditorをWindows用にビルド Zed EditorをWindows用にビルド
行 61: 行 61:
 <code> <code>
 git clone https://github.com/zed-industries/zed.git git clone https://github.com/zed-industries/zed.git
 +</code>
 +
 +==== rust-toolchain.toml修正 ====
 +
 +<code>
 +targets = [
 +    "x86_64-apple-darwin",
 +    "aarch64-apple-darwin",
 +    "x86_64-unknown-linux-gnu",
 +    "x86_64-pc-windows-msvc",
 +    "wasm32-wasip1", # extensions
 +    "x86_64-unknown-linux-musl", # remote server
 +]
 +
 +
 +
 +targets = [ "stable-x86_64-pc-windows-msvc" ]
 </code> </code>
  
行 68: 行 85:
 cd zed cd zed
 rustup override set stable-x86_64-pc-windows-msvc rustup override set stable-x86_64-pc-windows-msvc
-cargo build --release --target stable-x86_64-pc-windows-msvc+cargo build --release
 </code> </code>
  
 +===== 6.起動 =====
 +
 +
 +コンパイル完了後、下記にzed.exeができている。
 +
 +  target\release\zed.exe
  
  
行 158: 行 181:
 === 対応方法 === === 対応方法 ===
 [[#MSVC Spectre-mitigated Librariesも必要]] [[#MSVC Spectre-mitigated Librariesも必要]]
 +
 +==== Out of memory ====
 +
 +<code>
 +   Compiling assistant_slash_commands v0.1.0 (C:\Users\s-matsui\zed\crates\assistant_slash_commands)
 +   Compiling aws-smithy-xml v0.60.9
 +   Compiling language_model_selector v0.1.0 (C:\Users\s-matsui\zed\crates\language_model_selector)
 +rustc-LLVM ERROR: out of memory
 +Allocation failed
 +error: could not compile `editor` (lib)
 +</code>
 +
 +=== 対応方法 ===
 +
 +並列実行の制限
 +<code>
 +set CARGO_BUILD_JOBS=1
 +</code>
 +
 +これで再buildしてみる。
 +
 +
  
 {{tag>日記 Editor Zed}} {{tag>日記 Editor Zed}}
50_dialy/2025/03/14.1742014796.txt.gz · 最終更新: 2025/03/15 04:59 by matsui