- verify you have gcc-4.8
- verify version using:
sudo gcc --version
- https://somewideopenspace.wordpress.com/2014/02/28/gcc-4-8-on-raspberry-pi-wheezy/
- some times for cross platform building need to install aditional libreries:
sudo apt-get install g++-arm-linux-gnueabihf
- only if building is failing
sudo apt-get install gawk
- some times after updating the g++ version the makefile search for the file:
arm-linux-gnueabihf-g++
but the file is called diferently, for examplearm-linux-gnueabihf-g++-4.8
we need to make soft link for this file so it can be found
git clone https://github.com/flyngPig/APM_simulink.git
if you have certification problems it culd be because the time is not correct:
- verify time type in terminal:
time
- to update the time type:
sudo time MMDDhhmmYYY.ss
- for example 01/02/2016 22:33 will be:
sudo 020122332016.00
- for example 01/02/2016 22:33 will be:
- cd to the quadCopter subfolder:
cd /home/pi/ardupilot/ArduCopter
make -j4 navio
- source: http://dev.ardupilot.com/wiki/building-for-navio-on-rpi2/
by default need to run in root mode (sudo)
- cd to the quadCopter subfolder:
cd /home/pi/ardupilot/ArduCopter
sudo ArduCopter ...
- configuring-i2c and SPI