Servers by jDrones

Build Copter for intel aero compute board was failed


(Shita1272) #1

I am trying to build the ArduCopter on Ubuntu 16.04.3 x64 Desktop to upload to another linux board,intel aero compute board.

I faild to build Copter with error message.
How can I do to success for build ?

My goal is to use the intel aero compute board as a flight controller. Because Copter 3.4 supported it, I tried to build Copter 3.4 on Ubuntu.
I downloaded the source code and changed the checkpoint by following command
git clone https://github.com/ardupilot/ardupilot.git
git checkout ae78fd00a5f1cada80264370f0772cb8c582e751

Then I used Waf command in ardupilot directory.
./waf configure --board aero
./waf copter

finaly, I failed to build Copter with following message.

[1186/1265] Compiling libraries/AP_RangeFinder/AP_RangeFinder_MaxsonarI2CXL.cpp
[1187/1265] Compiling libraries/AP_RangeFinder/AP_RangeFinder_PulsedLightLRF.cpp
[1188/1265] Compiling libraries/AP_RangeFinder/RangeFinder.cpp
[1189/1265] Compiling libraries/AP_RangeFinder/RangeFinder_Backend.cpp
[1190/1265] Compiling libraries/AP_Relay/AP_Relay.cpp
[1191/1265] Compiling libraries/AP_Terrain/TerrainGCS.cpp
[1192/1265] Compiling libraries/AP_Terrain/TerrainIO.cpp
[1193/1265] Compiling libraries/AP_Tuning/AP_Tuning.cpp
[1194/1265] Compiling libraries/DataFlash/DFMessageWriter.cpp
[1195/1265] Compiling libraries/DataFlash/DataFlash.cpp
[1196/1265] Compiling libraries/DataFlash/DataFlash_SITL.cpp
[1197/1265] Compiling libraries/DataFlash/LogFile.cpp
[1198/1265] Compiling libraries/Filter/LowPassFilter.cpp
[1199/1265] Compiling libraries/Filter/LowPassFilter2p.cpp
[1200/1265] Compiling libraries/GCS_MAVLink/GCS_Common.cpp
…/…/libraries/GCS_MAVLink/GCS_Common.cpp: In member function ‘void GCS_MAVLINK::queued_waypoint_send()’:
…/…/libraries/GCS_MAVLink/GCS_Common.cpp:211:31: error: too few arguments to function ‘void mavlink_msg_mission_request_send(mavlink_channel_t, uint8_t, uint8_t, uint16_t, uint8_t)’
waypoint_request_i);
^
compilation terminated due to -Wfatal-errors.

Waf: Leaving directory `/home/shitamori/Desktop/test/ardupilot/build/aero’
Build failed
-> task in ‘objs/GCS_MAVLink’ failed (exit status 1):
{task 140534994562256: cxx GCS_Common.cpp -> GCS_Common.cpp.0.o}
[’/usr/bin/g++’, ‘-std=gnu++11’, ‘-fdata-sections’, ‘-ffunction-sections’, ‘-fno-exceptions’, ‘-fsigned-char’, ‘-Wall’, ‘-Wextra’, ‘-Wformat’, ‘-Wshadow’, ‘-Wpointer-arith’, ‘-Wcast-align’, ‘-Wundef’, ‘-Wno-unused-parameter’, ‘-Wno-missing-field-initializers’, ‘-Wno-reorder’, ‘-Wno-redundant-decls’, ‘-Wno-unknown-pragmas’, ‘-Werror=format-security’, ‘-Werror=array-bounds’, ‘-Werror=uninitialized’, ‘-Werror=init-self’, ‘-Wfatal-errors’, ‘-Werror=unused-but-set-variable’, ‘-O3’, ‘-include’, ‘ap_config.h’, ‘-Ilibraries’, ‘-Ilibraries/GCS_MAVLink’, ‘-I.’, ‘-I…/…/libraries’, ‘-I…/…/libraries/AP_Common/missing’, ‘-DSKETCHBOOK="/home/shitamori/Desktop/test/ardupilot"’, ‘-DCONFIG_HAL_BOARD=HAL_BOARD_LINUX’, ‘-DCONFIG_HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_LINUX_AERO’, ‘…/…/libraries/GCS_MAVLink/GCS_Common.cpp’, ‘-c’, ‘-o/home/user/Desktop/test/ardupilot/build/aero/libraries/GCS_MAVLink/GCS_Common.cpp.0.o’]

What should I do for build?
I am a beginner of drone development.


(peterbarker) #2

My goal is to use the intel aero compute board as a flight controller.
Because Copter 3.4 supported it, I tried to build Copter 3.4 on Ubuntu.
I downloaded the source code and changed the checkpoint by following command
git clone https://github.com/ardupilot/ardupilot.git
git checkout ae78fd00a5f1cada80264370f0772cb8c582e751

.
.

[1199/1265] Compiling libraries/Filter/LowPassFilter2p.cpp
[1200/1265] Compiling libraries/GCS_MAVLink/GCS_Common.cpp
…/…/libraries/GCS_MAVLink/GCS_Common.cpp: In member function ‘void
GCS_MAVLINK::queued_waypoint_send()’:
…/…/libraries/GCS_MAVLink/GCS_Common.cpp:211:31: error: too few arguments to
function ‘void mavlink_msg_mission_request_send(mavlink_channel_t, uint8_t,
uint8_t, uint16_t, uint8_t)’
waypoint_request_i);
^
compilation terminated due to -Wfatal-errors.

You will need to do a “git submodule update”


(Shita1272) #3

This is exactly the answer I was looking for !
I succeed to build ardupilot firmware.
Thank you your help :slight_smile:


(jimovonz) #4

Updating the git submodules was a bit of a stumbling block for me too when changing branches. I had to do quit some searching before funding the solution. Perhaps this could be made more clear in the documentation?