Missing configuration file '/home/fcs/work/ewt_v1_20170113/build/sitl/ap_config.h', reconfigure the project!
master
[ ] All
[ ] AntennaTracker
[ * ] Copter
[ ] Plane
[ ] Rover
quad
pixhawk
fcs@fcs-virtual-machine:~/work/code/ewt_v1_20170113$ ./waf configure --board px4-v2
Setting top to : /home/fcs/work/code/ewt_v1_20170113
Setting out to : /home/fcs/work/code/ewt_v1_20170113/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.1
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
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 (1.761s)
fcs@fcs-virtual-machine:~/work/code/ewt_v1_20170113$ ./waf copter
Missing configuration file '/home/fcs/work/ewt_v1_20170113/build/sitl/ap_config.h', reconfigure the project!
I'm not sure how you got there, but ap_config.h should be generated in the configure step. Try to do a ./waf distclean, and then proceed to do the usual configure and build steps.
No answer after several months, closing.
I encountered the same issue. @OXINARF's suggestion fixed it for me, thanks.
Thanks for the solution.
Most helpful comment
I'm not sure how you got there, but ap_config.h should be generated in the configure step. Try to do a
./waf distclean, and then proceed to do the usual configure and build steps.