Hello.
I am trying to run sitl from windows and Cygwin as per mentioned in the documentation. But I cannot figure what is the issue of g++
Here is the output
$ …/Tools/autotest/sim_vehicle.py --map --console
SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at SITL location
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: “/cygdrive/f/ArduPilot/ardupilot/modules/waf/waf-light” “configure” “–board” “sitl”
Setting top to : /cygdrive/f/ArduPilot/ardupilot
Setting out to : /cygdrive/f/ArduPilot/ardupilot/build
Autoconfiguration : enabled
Setting board to : sitl
Using toolchain : native
Checking for ‘g++’ (C++ compiler) : not found
could not configure a C++ compiler!
(complete log in /cygdrive/f/ArduPilot/ardupilot/build/config.log)
SIM_VEHICLE: (Configure waf) exited with code 256
SIM_VEHICLE: Killing tasks
and the config.log (note that I removed the content of the path enviromental variable from the log to make log shorter)
project configured on Wed Jan 26 02:25:01 2022 by
waf 2.0.9 (abi 20, python 3070cf0 on cygwin)
using /cygdrive/f/ArduPilot/ardupilot/modules/waf/waf-light configure --board sitl
Setting top to
/cygdrive/f/ArduPilot/ardupilot
Setting out to
/cygdrive/f/ArduPilot/ardupilot/build
Autoconfiguration
enabled
Setting board to
sitl
Using toolchain
native
Checking for ‘g++’ (C++ compiler)
find program=[‘g++’, ‘c++’] paths=[
] var=‘CXX’ → [’/usr/bin/g++’]
[’/usr/bin/g++’, ‘-dM’, ‘-E’, ‘-’]
err: g++: fatal error: cannot execute ‘cc1’: spawn: No such file or directory
compilation terminated.
from /cygdrive/f/ArduPilot/ardupilot: Could not determine the compiler version [’/usr/bin/g++’, ‘-dM’, ‘-E’, ‘-’]
not found
from /cygdrive/f/ArduPilot/ardupilot: could not configure a C++ compiler!
I cannot figure where is the problem. Any thoughts?