このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
50_dialy:2025:03:14 [2025/03/15 04:43] – matsui | 50_dialy:2025:03:14 [2025/03/15 11:39] (現在) – matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== 2025.03.14 Zed Editor ====== | + | ====== 2025.03.14 Zed Editor |
Zed EditorをWindows用にビルド | Zed EditorをWindows用にビルド | ||
行 36: | 行 36: | ||
* インストールが完了したら、PCを再起動する。 | * インストールが完了したら、PCを再起動する。 | ||
+ | ==== MSVC Spectre-mitigated Librariesも必要 ==== | ||
+ | - Visual Studio Installer で Build Tools for Visual Studio 2022 を選択。 | ||
+ | - 個別のコンポーネント タブを開く。 | ||
+ | - 「MSVC v143 Spectre-mitigated Libraries (x86/ | ||
+ | - 変更を適用 をクリックし、インストールを完了。 | ||
==== cmakeも必要 ==== | ==== cmakeも必要 ==== | ||
行 56: | 行 61: | ||
< | < | ||
git clone https:// | git clone https:// | ||
+ | </ | ||
+ | |||
+ | ==== rust-toolchain.toml修正 ==== | ||
+ | |||
+ | < | ||
+ | targets = [ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | |||
+ | ↓ | ||
+ | |||
+ | targets = [ " | ||
</ | </ | ||
行 63: | 行 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 | + | cargo build --release |
</ | </ | ||
+ | ===== 6.起動 ===== | ||
+ | |||
+ | |||
+ | コンパイル完了後、下記にzed.exeができている。 | ||
+ | |||
+ | target\release\zed.exe | ||
行 130: | 行 158: | ||
[[#C++ ツールセット追加]] | [[#C++ ツールセット追加]] | ||
+ | |||
+ | ==== msvc_spectre_libsがない ==== | ||
+ | |||
+ | < | ||
+ | | ||
+ | warning: msvc_spectre_libs@0.1.2: | ||
+ | error: failed to run custom build command for msvc_spectre_libs v0.1.2 | ||
+ | |||
+ | Caused by: | ||
+ | process didn't exit successfully: | ||
+ | --- stdout | ||
+ | cargo: | ||
+ | |||
+ | --- stderr | ||
+ | |||
+ | thread ' | ||
+ | No spectre-mitigated libs were found. Please modify the VS Installation to add these. | ||
+ | note: run with RUST_BACKTRACE=1 environment variable to display a backtrace | ||
+ | warning: build failed, waiting for other jobs to finish... | ||
+ | </ | ||
+ | |||
+ | === 対応方法 === | ||
+ | [[#MSVC Spectre-mitigated Librariesも必要]] | ||
+ | |||
+ | ==== Out of memory ==== | ||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | rustc-LLVM ERROR: out of memory | ||
+ | Allocation failed | ||
+ | error: could not compile `editor` (lib) | ||
+ | </ | ||
+ | |||
+ | === 対応方法 === | ||
+ | |||
+ | 並列実行の制限 | ||
+ | < | ||
+ | set CARGO_BUILD_JOBS=1 | ||
+ | </ | ||
+ | |||
+ | これで再buildしてみる。 | ||
+ | |||
+ | |||
{{tag> | {{tag> |