Main Content

Set Up PX4 Tool Chain on Windows Subsystem for Linux

Note

This section explains the task to be completed as part of the step—Set Up the PX4 Toolchain on Windows Subsystem for Linux—of the Hardware Setup process (using the Hardware Setup screens). Do not perform this as a standalone task.

Note

This step is only applicable for PX4 Firmware v1.14.3, and not applicable for older PX4 firmware versions such as v1.12.3, v1.10.2, or any other PX4 Firmware versions.

Note

This step requires an active internet connection.

UAV Toolbox Support Package for PX4® Autopilots requires installation of a development environment. This development environment is used to build firmware for all the Pixhawk® Series flight controller boards.

After you have downloaded PX4 Firmware v1.14.3, follow the below commands to install the PX4 Toolchain on WSL2.

  1. Launch WSL2 shell.

  2. Go to the PX4 Firmware v1.14.3 directory that you downloaded.

  3. Navigate to the folder containing the Toolchain setup script.

    cd Tools/setup

  4. Run the Toolchain setup script.

    bash ./ubuntu.sh

  5. Enter the sudo credentials when prompted, to start the PX4 toolchain setup process.

    The ubuntu.sh build script installs different third-party utilities like GCC 9.3.1, CMake 3.x, Ninja 1.6, Git™, and certain Python packages.

  6. Restart your WSL environment after the ubuntu.sh script completes successfully.

See Also

Topics