Hey there,
the last two days I tried setting up the build environment with cygwin but I can’t get it to work…
These is the message I get:
$ ./waf configure --board CubeBlack
Setting top to : C:\cygwin64\home\Valentin\ardupilot
Setting out to : C:\cygwin64\home\Valentin\ardupilot\b
uild
Autoconfiguration : enabled
Setting board to : CubeBlack
Using toolchain : arm-none-eabi
Checking for ‘g++’ (C++ compiler) : Traceback (most recent call last):
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Scripting.py”, li
ne 158, in waf_entry_point
run_commands()
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Scripting.py”, li
ne 251, in run_commands
ctx = run_command(cmd_name)
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Scripting.py”, li
ne 235, in run_command
ctx.execute()
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Configure.py”, li
ne 159, in execute
super(ConfigurationContext, self).execute()
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Context.py”, line
204, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Context.py”, line
286, in recurse
user_function(self)
File “C:\cygwin64\home\Valentin\ardupilot\wscript”, line 264, in configure
cfg.get_board().configure(cfg)
File “Tools/ardupilotwaf\boards.py”, line 40, in configure
cfg.load(‘toolchain’)
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Configure.py”, li
ne 270, in load
func(self)
File “Tools/ardupilotwaf\toolchain.py”, line 146, in configure
cfg.load(‘compiler_cxx compiler_c’)
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Configure.py”, li
ne 270, in load
func(self)
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Tools\compiler_cx
x.py”, line 80, in configure
conf.load(compiler)
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Configure.py”, li
ne 270, in load
func(self)
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Tools\gxx.py”, li
ne 152, in configure
conf.find_gxx()
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Configure.py”, li
ne 316, in fun
return f(*k, **kw)
File “Tools/ardupilotwaf\toolchain.py”, line 31, in find_gxx
conf.get_cc_version(cxx, gcc=True)
File “C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Configure.py”, li
ne 316, in fun
return f(*k, **kw)
File "C:\cygwin64\home\Valentin\ardupilot\modules\waf\waflib\Tools\c_config.py
", line 1014, in get_cc_version
out, err = conf.cmd_and_log(cmd, output=0, stdin=open(‘/dev/null’,‘r’), env=
env)
FileNotFoundError: [Errno 2] No such file or directory: ‘/dev/null’
Maybe this happens because I got this message during install of cygwin:
Package: _/libfontconfig-common fontconfig_dtd.sh exit code 2
But it said that it might still work and to check the log, and there was nothing, so I just decided to give it a try…
Any ideas?
I followed those instructions: Setting up the waf Build Environment on Windows using Cygwin — Dev documentation
Thanks in advance