Skip to content

README.md - How one can build on windows #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,23 @@ brew install python cmake ninja zstd jq git
```
Note: Homebrew’s Python installation already includes `pip`, `setuptools` and `venv`.

### On Windows
While installing and building natively on zephyr is supported as described at: https://docs.zephyrproject.org/latest/develop/getting_started/index.html.

Arduino currently has not ported their build setup to the Windows environment. However it is possible to setup and build the loaders on a Windows system using WSL and use the resulting Loader files within Windows. You will need to follow the instructions given above
for installing on Ubuntu.

There are at least two strategies.
1) Install the sources in the native Windows filesystem (NTFS, FAT32, etc) and within WSL, cd to the root directory where you installed your sources, like: /mnt/d/github/ArduinoCore-zephyr.

2) Install the sources within the WSL file system, like: ~/git/ArduinoCore-zephyr

There are pros and cons to both strategies. With 1) Builds are relatively very slow, but once done you can use it directly within
Arduino. With 2) Builds are a lot faster, however, you then need to copy the resulting build back to somewhere in your windows directory
structure. It is this location, that you will add to the Arduino IDE as mentioned below in the section: Using the core in Arduino IDE/CLI

In either strategy, you may have to update the link: cores\arduino\api as sometimes this link file may or may not work properly.

### Run the ```bootstrap``` script
```bash
cd ArduinoCore-zephyr
Expand Down