You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepare the Compilation Environment. Using a local Ubuntu system, the officially supported compilation environment is `Ubuntu Jammy 22.04.x amd64` only!
If you are using other Linux distributions, we strongly recommend that you use the Docker environment to compile to reduce the probability of compilation errors.
*Note: The first compilation will automatically download the required toolchain, which is approximately 840MB in size. Once downloaded, it will be automatically extracted to the `host-tools` directory in the SDK directory. For subsequent compilations, if the `host-tools` directory is detected, the download will not be performed again*.
Docker support is required on hosts running Linux systems. For how to use Docker, please refer to the [official documentation](https://docs.docker.com/) or other tutorials.
-`duodocker`The name of the running Docker must be consistent with the name set in the previous step.
132
-
-`"*"`In quotes is the shell command to be run in the Docker image.
133
-
-`cd /home/work`Switch to the /home/work directory. Since this directory has been bound to the host's code directory during runtime, the /home/work directory in Docker is the source code directory of the SDK.
134
-
-`cat /etc/issue`Displays the version number of the image used by Docker. It is currently Ubuntu 22.04.3 LTS and is used for debugging.
Step-by-step compilation requires logging into Docker to operate. Use the command `docker ps -a` to view and record the ID number of the container, such as 8edea33c2239.
After compilation is completed, you can use the `exit` command to exit the Docker environment:
166
+
コンパイルが完了したら`exit`コマンドでDockerから抜けれます:
168
167
```
169
168
root@8edea33c2239:/home/work# exit
170
169
```
171
-
The generated firmware can also be seen in the host code directory.
170
+
生成されたイメージはホストのコードディレクトリからも見れます。
172
171
173
-
### Stop Docker
172
+
### Dockerを停止する
174
173
175
-
After compilation is completed, if the above Docker running environment is no longer needed, you can stop it first and then delete it:
174
+
コンパイルが完了して、もし上のDocker環境がもう必要ないなら止めて削除できます:
176
175
```
177
176
docker stop 8edea33c2239
178
177
docker rm 8edea33c2239
179
178
```
180
179
181
-
## Other compilation considerations
180
+
## その他の環境でのコンパイルに関する注意
182
181
183
-
If you want to try to compile this SDK in an environment other than the above two environments, the following are things you may need to pay attention to, for reference only.
182
+
もしこのSDKを上の2つの環境以外で行いたいなら、参考までに以下のことに注意してください。
184
183
185
-
### cmake version
184
+
### Cmakeのバージョン
186
185
187
-
Note:`cmake` minimum version requirement is `3.16.5`.
186
+
注意:`cmake`は最低でもバージョン`3.16.5`以降が必要です。
188
187
189
-
Check the version of `cmake` in the system:
188
+
システムの`cmake`バージョンの確認
190
189
191
190
```bash
192
191
cmake --version
193
192
```
194
193
195
-
For example, the version of `cmake` installed using apt in the `Ubuntu 20.04` is:
194
+
例として、`Ubuntu 20.04`のaptでインストールされる`cmake`のバージョンは
196
195
197
-
```
196
+
```text
198
197
cmake version 3.16.3
199
198
```
200
-
201
-
The minimum requirement of this SDK is not met. Manual installation of the latest version `3.27.6` is needed:
If you wish to perform the compilation with WSL, there's an small issue building the image.
218
-
The $PATH, due Windows interoperability, has Windows environment variables which include some spaces between the paths.
215
+
WSLでコンパイルするには少し問題があります。
216
+
互換性のために$PATHにいくつかのスペース文字を含むWindows用の環境変数が入っています。
219
217
220
-
To solve this problem you need to change the `/etc/wsl.conf` file and add the following lines:
218
+
解決するには`/etc/wsl.conf`ファイルに以下を追記します。
221
219
222
220
```
223
221
[interop]
224
222
appendWindowsPath = false
225
223
```
226
224
227
-
After that, you need to reboot the WSL with `wsl.exe --reboot`. Then you able to run the `./build_milkv.sh` script or the `build_all` line in the step-by-step compilation method.
228
-
To rollback this change in `/etc/wsl.conf` file set `appendWindowsPath` as true. To reboot the WSL, can you use the Windows PowerShell command `wsl.exe --shutdown` then `wsl.exe`, after that the Windows environment variables become avaliable again in $PATH.
0 commit comments