> For the complete documentation index, see [llms.txt](https://mwx.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mwx.twelite.info/v0.1.7/install_n_build/building-act/build-vscode-1.md).

# WSLでのビルド

[WSL (Windows Subsystem for Linux)](https://docs.microsoft.com/en-us/windows/wsl/about) は Windows10 のサブシステムとして動作する Linux 環境です。

{% hint style="warning" %}
Windows10 では特別な理由がない限り**WSL (Windows Subsystem for Linux)は、MWSDKでアクトをビルドするのに必須ではありません**。WSLについて、既に知見があり特に利用したい方のみ本節をご覧ください。ここではWSLのインストール方法や使用方法については紹介しません。
{% endhint %}

### MWSDK2020\_05 .. 2020\_10

`MWSDK/Tools/ba-elf-ba2-r36379.w10` 以下に Windows10用とLinux用の実行形式が両方含まれます。WSLを動作させ環境変数`MWSDK_ROOT`を適切に設定します。

例えば `C:\Work\MWSTAGE\MWSDK` の場合は以下のように設定します。

```
$ export MWSDK_ROOT=/mnt/c/Work/MWSTAGE/MWSDK
```

### MWSDK2020\_12

TWELITE STAGE SDK パッケージには、WSL用の実行形式は含まれません。

`MWSTAGE/Tools/ba-elf-ba2-r36379.wsl`というフォルダ名で、ツール一式を格納してください。ツールはMWSDK2020\_10の`MWSDK/Tools/ba-elf-ba2-r36379.w10`を用いるのが平易です。

## ビルドについて

makeが実行可能で `MWSDK_ROOT` が適切に設定されていれば、Linuxでの[コマンドラインでのビルド](/v0.1.7/install_n_build/building-act/build-cmd-line.md#komandorainlinuxmacosdenobirudo)方法と同じです。書き込みなどのユーティリティはWSL上で動作するものがないためWindows10用のものを利用してください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mwx.twelite.info/v0.1.7/install_n_build/building-act/build-vscode-1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
