Home        Store        Learn        Blog

Ardusub build cmake error

i tried to build using the command $./waf build sub
i got the following error

Build failed
-> task in ‘bin/ardurover’ failed (exit status 2):
{task 139970367842656: cmake_build_task -> }
[’/usr/bin/cmake’, ‘–build’, ‘/home/sudheesh/ardupilot/build/px4-v2/modules/PX4Firmware’, ‘–target’, ‘build_firmware_px4fmu-v2’]

can anyone help me to solve ?


Sorry but this is not the complete log, can you share the command output ?

Besides that, did you took a look in on the forum and our documentation ?
The documentation itself is not updated with the last informations, but it can help with some problems.

hai, thanks for your reply

here i am attaching the build command output

please give me a solution …

command output.txt (7.71 KB)


You are using the wrong compiler, please check my last comment for further information.
To a step-by-step build, take a look here [This is also in the thread that I linked previously].