Hello
I have installed correctly Ardupilot from sources.
I have a problem with building with px4
I first run configure as follows
riotu@ubuntu:~/ardupilot$ ./waf configure --board=px4-v2
Setting top to : /home/riotu/ardupilot
Setting out to : /home/riotu/ardupilot/build
Autoconfiguration : enabled
Setting board to : px4-v2
Checking for program 'arm-none-eabi-ar' : /usr/bin/arm-none-eabi-ar
Using toolchain : arm-none-eabi
Checking for 'g++' (C++ compiler) : /usr/bin/arm-none-eabi-g++
Checking for 'gcc' (C compiler) : /usr/bin/arm-none-eabi-gcc
Checking for HAVE_CMATH_ISFINITE : no
Checking for HAVE_CMATH_ISINF : no
Checking for HAVE_CMATH_ISNAN : no
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : no
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : no
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : no
Checking for header endian.h : not found
Checking for header byteswap.h : not found
Checking for program 'cmake' : /usr/bin/cmake
Checking cmake version : 3.5.2
Checking for program 'ninja, ninja-build' : not found
Checking for program 'make' : /usr/bin/make
Checking for program 'python' : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.12
Checking for program 'python' : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.12
Source is git repository : yes
Update submodules : yes
Checking for program 'git' : /usr/bin/git
Gtest : PX4 boards currently don't support compiling gtest
Checking for program 'arm-none-eabi-size' : /usr/bin/arm-none-eabi-size
Benchmarks : disabled
Unit tests : disabled
'configure' finished successfully (0.551s)
Then, I build for px4-v2 as:
riotu@ubuntu:~/ardupilot$ ./waf copter
Waf: Entering directory `/home/riotu/ardupilot/build/px4-v2'
[14/15] CMake Build px4 msg_gen
make: *** No rule to make target 'msg_gen'. Stop.
Waf: Leaving directory `/home/riotu/ardupilot/build/px4-v2'
Build failed
-> task in 'px4_msg_gen' failed (exit status 2):
{task 140710585567184: cmake_build_task -> }
['/usr/bin/cmake', '--build', '/home/riotu/ardupilot/build/px4-v2/modules/PX4Firmware', '--target', 'msg_gen']
Note that I was able to build fine for navio2 and sitl, but not px4
How can I solve compilation issue for px4?
Thanks
Anis