BBBmini: waf error building on bbb

Hey, I’m not having much luck getting this thing going. I keep having issues imaging the sd card on my ubuntu box so I switched to imaging the sd on windows. I think I finally got a good debian install but now I’m having problems with waf erroring during the build. I’m building it on the bbb.

Here is what it is giving me:
debian@beaglebone:~/ardupilot$ waf
Waf: Entering directory `/home/debian/ardupilot/build/bbbmini’
[3/4] Processing modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Traceback (most recent call last):
File “/home/debian/ardupilot/modules/mavlink/pymavlink/tools/mavgen.py”, line 16, in
from pymavlink.generator import mavgen
File “/home/debian/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/debian/ardupilot/build/bbbmini’
Build failed
-> task in ‘mavlink’ failed (exit status 1):
{task 3060127784L: mavgen ardupilotmega.xml -> }
’’

waf configure output:

debian@beaglebone:~/ardupilot$ ./waf configure --board=bbbmini
Setting top to : /home/debian/ardupilot
Setting out to : /home/debian/ardupilot/build
Autoconfiguration : enabled
Setting board to : bbbmini
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-gnueabihf-pkg-config
Checking for need to link with librt : not necessary
Checking for ‘lttng-ust’ : yes
Checking for library dl : yes
Checking for ‘libiio’ : not found
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-gnueabihf-size
Benchmarks : disabled
Unit tests : enabled
’configure’ finished successfully (10.394s)

As the error says you need the future Python module. You will also need lxml. You can install both with pip install future lxml.

As the error says you need the future Python module

Thanks, that did the trick. Had to install pip first.

Hi Steve, I have updated the instructions at https://github.com/mirkix/BBBMINI/blob/master/doc/software/software.md .

Hey, I’m not having much luck getting this thing going. I keep having issues
imaging the sd card on my ubuntu box so I switched to imaging the sd on
windows. I think I finally got a good debian install but now I’m having
problems with waf erroring during the build. I’m building it on the bbb.

Which instructions were you following which omitted the “install lxml and
future” steps?

I was usin Mirkix instructions above. I believe they have been updated.