Sim_vehicle.py build failed

Hi all,

When I’m trying to build SITL I get the error below.
I already tried the installation script using powershell and I also tried manual installation. Both are giving the same output. Is there anyone who knows how to solve this or has the same problem?

Thanks for the help.

u0105330@SET-L-ME-P15038 /cygdrive/c/testmap/ardupilot/ArduCopter
$ sim_vehicle.py
SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at -35.363261,149.165230,584,353 (CMAC)
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: “/cygdrive/c/testmap/ardupilot/modules/waf/waf-light” “configure” “
–board” "sitl"
Setting top to : /cygdrive/c/testmap/ardupilot
Setting out to : /cygdrive/c/testmap/ardupilot/build
Autoconfiguration : enabled
Setting board to : sitl
Checking for ‘g++’ (C++ compiler) : /usr/bin/g++
Checking for ‘gcc’ (C compiler) : /usr/bin/gcc
Checking for need to link with librt : not necessary
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 : yes
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : yes
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.14
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.14
Source is git repository : yes
Update submodules : yes
Checking for program ‘git’ : /usr/bin/git
Checking for program ‘size’ : /usr/bin/size
Benchmarks : disabled
Unit tests : enabled
Checking for program ‘rsync’ : /usr/bin/rsync
’configure’ finished successfully (11.348s)
SIM_VEHICLE: Building
SIM_VEHICLE: “/cygdrive/c/testmap/ardupilot/modules/waf/waf-light” “build” “–ta
rget” "bin/arducopter"
Waf: Entering directory /cygdrive/c/testmap/ardupilot/build/sitl' Waf: Leaving directory/cygdrive/c/testmap/ardupilot/build/sitl’
Build failed
Traceback (most recent call last):
File “/cygdrive/c/testmap/ardupilot/modules/waf/waflib/Runner.py”, line 270, i
n task_status
return tsk.runnable_status()
File “Tools/ardupilotwaf/git_submodule.py”, line 75, in runnable_status
out = self.generator.bld.cmd_and_log(cmd, quiet=Context.BOTH, cwd=self.cwd)
File “/cygdrive/c/testmap/ardupilot/modules/waf/waflib/Context.py”, line 453,
in cmd_and_log
raise e
WafError: Command (’/usr/bin/git’, ‘submodule’, ‘status’, ‘–recursive’, ‘–’, ‘
/cygdrive/c/testmap/ardupilot/modules/gtest’) returned 1

SIM_VEHICLE: Build failed
SIM_VEHICLE: Killing tasks

Hi,
The log you posted states that git failed.

WafError: Command (‘/usr/bin/git’, ‘submodule’, ‘status’, ‘–recursive’, ‘–’, ’
/cygdrive/c/testmap/ardupilot/modules/gtest’) returned 1

To further debug this I would run the git command that failed and see what output comes from

$ git submodule status --recursive – /cygdrive/c/testmap/ardupilot/modules/gtest

I personally run SITL under Linux, so my setup does not really compare, but I have to invoke the simulate.py from within the Tools/autotest folder, while being in the ArduCopter folder, like

…/Tools/autotest/sim_vehicle.py

Maybe that helps.