To build for a Pixhawk2/Pixhawk/PX4 target on Linux you need thefollowing tools and git repositories:
- The gcc-arm cross-compiler fromhere
- The ardupilot git repository fromgithub.com/ArduPilot/ardupilot
- gnu make, gawk and associated standard Linux build tools
- On Ubuntu you will need to install the genromfs package.
- On a 64 bit system you will also need to have installed libc6-i386.
参考APM官网开发文档:
http://ardupilot.org/dev/index.html