Thanks a lot @EliotBR for your response, the process is now more clear, but I got another issue now on hands, I dont know if I should made a different post, but as it is on line with this post subject, I will keep it here.
Before running the ./waf build sub
, command promt is telling me to first run ./waf configure
. For this, running alone any of this work, it opens VScode with the waf code, I see it is a python code, thus, i run it with python ./waf
Python version: Python 3.10.6
It requires g++ compiler, I installed it from MinGW - Minimalist GNU for Windows download | SourceForge.net , it is recognized and on path.
g++.exe (MinGW.org GCC-6.3.0-1) 6.3.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Nevertheless, when run python ./waf configure
it print this:
Setting top to : C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot
Setting out to : C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\build
Autoconfiguration : enabled
Setting board to : sitl
Using toolchain : native
Checking for 'g++' (C++ compiler) : Traceback (most recent call last):
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\modules\waf\waflib\Scripting.py", line 158, in waf_entry_point
run_commands()
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\modules\waf\waflib\Scripting.py", line 251, in run_commands
ctx = run_command(cmd_name)
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\modules\waf\waflib\Scripting.py", line 235, in run_command
ctx.execute()
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\modules\waf\waflib\Configure.py", line 159, in execute
super(ConfigurationContext, self).execute()
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\modules\waf\waflib\Context.py", line 204, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\modules\waf\waflib\Context.py", line 286, in recurse
user_function(self)
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\wscript", line 441, in configure
cfg.get_board().configure(cfg)
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\Tools/ardupilotwaf\boards.py", line 41, in configure
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\modules\waf\waflib\Tools\gxx.py", line 152, in configure
conf.find_gxx()
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\modules\waf\waflib\Configure.py", line 316, in fun
return f(*k, **kw)
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\Tools/ardupilotwaf\toolchain.py", line 32, in find_gxx
conf.get_cc_version(cxx, gcc=True)
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\ardupilot\modules\waf\waflib\Configure.py", line 316, in fun
return f(*k, **kw)
File "C:\Users\ramon\Documents\Stan\ROV\ArduSub\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'
I ran all this from the ardupilot root folder on the topside computer.
Thanks.