This page contains a few notes and copies of info relating to APM Planner 2 for Linux.
I use Kubuntu 14.04, 32-bit. As at mid June 2016, the only available latest builds are 64-bit. The last 32-bit version is 2.0.18 which seems to have a few problems.
Source and build notes for APM Planner 2 are on GitHub : here. Downloading the source zip retrieves “apm_planner-master.zip”
Source for APM is : here.
Build for Linux
Building on Linux (tested against Ubuntu 14.04 LTS): (Needs update to use Qt5.4.2, 5.2.1 doesn’t work anymore)
(NOTE: There is an error in 14.04LTS with libxcb crashing sometimes, try this fix)
1) Install the required packages:
Be sure to run apt-get update first
sudo apt-get update sudo apt-get install qt5-qmake qt5-default \ qtscript5-dev libqt5webkit5-dev libqt5serialport5-dev \ libqt5svg5-dev qtdeclarative5-qtquick2-plugin sudo apt-get install git libsdl1.2-dev libsndfile-dev \ flite1-dev libssl-dev libudev-dev libsdl2-dev
2) Clone the repository in your workspace:
cd ~/workspace git clone https://github.com/diydrones/apm_planner
3) Build APM Planner:
cd ~/workspace/apm_planner qmake qgroundcontrol.pro make
4) Run APM Planner:
5) Permanent installation (optional, if you’d like to install APM Planner in a fixed location)
There are two ways to do this:
a) Using Debuild:
cd ~/workspace/apm_planner debuild -us -uc -d
Then install the deb via
dpkg -i ~/workspace/apmplanner2_2.0.XX_YYYY.deb
Where XX is the version number, and YYY is your architecture. This method should add it to your launcher too.
If it does not install due to dependencies, you can resolve them with
sudo apt-get install -f
Then attempt to install again.
b) Using make:
cd ~/workspace/apm_planner sudo make install
This will place the binary in your /bin/ folder and corresponding files in /share/