Setup the Build Environment on Windows 11
- Install WSL2
- Enable “Inter Virtualization Technology” inside BIOS settings.
- Depends on your PC, there is different ways to enter the BIOS settings.
- Please find your own way by using ChatGPT, or any related sources.
- Make sure all those were enabled (inside Turn Windows features on or off, can be search on Start tab)
- Virtual Machine Platform
- Windows Hypervisor Platform
- Windows Subsystem for Linux

- Open PowerShell in Administrator mode by right-click and select “Run as administrator”.
- Enter the command:
wsl --install
-
WSL2 will be installed automatically by default on new Linux installations
-
Set up the Linux user info
-
Good practices during setup
lsb_release -a
- Update and upgrade packages
sudo apt update && sudo apt upgrade
explorer.exe .
2) Install ArduPilot development environment
sudo apt-get update
sudo apt-get install git
sudo apt-get install gitk git-gui
- Clone ArduPilot repository
git clone <https://github.com/ArduPilot/ardupilot.git>
-
Install some required packages
cd ardupilot
Tools/environment_install/install-prereqs-ubuntu.sh -y
-
Reload the path (log-out and log-in to make it permanent)
. ~/.profile