Arch Linux
:::warning This development environment is not supported. See Toolchain Installation for information about the environments and tools we do support! :::
The PX4-Autopilot repository provides a convenient script to set your Arch installation up for PX4 development: Tools/setup/arch.sh.
The script installs (by default) all tools to build PX4 for NuttX targets and run simulation with jMAVsim. You can additionally install the Gazebo-Classic simulator by specifying the command line argument: --gazebo
.
![](https://px4.gitbook.io/~gitbook/image?url=https%3A%2F%2F4155462212-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-LArEa7z2SPawfl3HpCD%252Fuploads%252Fgit-blob-ea3d257b894301f241ea01bb2e43474e26b90eba%252Farch-gazebo.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=72994233&sv=2)
:::note The instructions have been tested on Manjaro (Arch based distribution) as it is much easier to set up than Arch Linux. :::
To get and run the scripts, do either of:
Download PX4 Source Code and run the scripts in place:
Download just the needed scripts and then run them:
The script takes the following optional parameters:
--gazebo
: Add this parameter to install Gazebo from the AUR. :::note Gazebo gets compiled from source. It takes some time to install and requires entering thesudo
password multiple times (for dependencies). :::--no-nuttx
: Do not install the NuttX/Pixhawk toolchain (i.e. if only using simulation).--no-sim-tools
: Do not install jMAVSim/Gazebo (i.e. if only targeting Pixhawk/NuttX targets)
Last updated