Hello,
I am using RP3+NAVIO2 with Emild Rasbian 20170118 image (the latest) and trying to build from source code on my RP3. My building steps are as follows:
-
Download the APM code and update submodules:
git clone https://github.com/ArduPilot/ardupilot.git cd ardupilot git submodule update --init
-
alias waf=“$PWD/modules/waf/waf-light”
-
waf configure --board=navio
pi@navio:~/ardupilot $ waf configure --board=navio
Setting top to : /home/pi/ardupilot
Setting out to : /home/pi/ardupilot/build
Autoconfiguration : enabled
Setting board to : navio
Checking for program ‘arm-linux-gnueabihf-ar’ : /usr/bin/arm-linux-gnueabihf-ar
Using toolchain : arm-linux-gnueabihf
Checking for ‘g++’ (C++ compiler) : /usr/bin/arm-linux-gnueabihf-g++
Checking for ‘gcc’ (C compiler) : /usr/bin/arm-linux-gnueabihf-gcc
Checking for program ‘arm-linux-gnueabihf-pkg-config’ : /usr/bin/arm-linux-gnuea bihf-pkg-config
Checking for need to link with librt : not necessary
Checking for ‘lttng-ust’ : not found
Testing link with lttng-ust : yes
Checking for library dl : yes
Checking for ‘libiio’ : not found
Testing link with libiio : yes
Checking for HAVE_CMATH_ISFINITE : yes
Checking for HAVE_CMATH_ISINF : yes
Checking for HAVE_CMATH_ISNAN : yes
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : no
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : no
Checking for header endian.h : yes
Checking for header byteswap.h : yes
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.9
Source is git repository : yes
Update submodules : yes
Checking for program ‘git’ : /usr/bin/git
Checking for program ‘arm-linux-gnueabihf-size’ : /usr/bin/arm-linux-gnuea bihf-size
Benchmarks : disabled
Unit tests : enabled
‘configure’ finished successfully (7.879s)
- waf --targets bin/arducopter (Not waf --targets bin/arducopter-quad)
pi@navio:~/ardupilot $ waf --targets bin/arducopter
Waf: Entering directory `/home/pi/ardupilot/build/navio’
[2/2] Running Submodule update: mavlink
Submodule ‘pymavlink’ (git://github.com/ArduPilot/pymavlink.git) registered for path ‘pymavlink’
Submodule path ‘modules/mavlink/pymavlink’: checked out ‘b1663bac9ce9e9fa8868f59 e4b5f6d3de81cb2f3’
Cloning into ‘pymavlink’…
[3/4] Processing modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
[4/4] Creating build/navio/ap_version.h
Traceback (most recent call last):
File “/home/pi/ardupilot/modules/mavlink/pymavlink/tools/mavgen.py”, line 16, in
from pymavlink.generator import mavgen
File “/home/pi/ardupilot/modules/mavlink/pymavlink/generator/mavgen.py”, line 12, in
from future import standard_library
ImportError: No module named future
mavgen returned 1 error code
Waf: Leaving directory `/home/pi/ardupilot/build/navio’
Build failed
→ task in ‘mavlink’ failed (exit status 1):
{task 1984627216: mavgen ardupilotmega.xml → }
- From “Master@59366b0 fails to build - Development Team - ArduPilot Discourse” , Fixed this by installing the following python libs
pip install lxml future
I did it , however, the result is the same as before. I donot what else I should do.
Could you please help me on this issue? your help would greatly appreciated.