Hi, I followed the instructions on http://ardupilot.org/dev/docs/sitl-native-on-windows.html, than proceed to this page, http://ardupilot.org/dev/docs/building-setup-windows-cygwin.html#building-setup-windows-cygwin. Everything goes find but I stuck on “Build with Waf” stage.
When I finish installing waf base on https://waf.io/book/#_getting_the_waf_file, and I install it under C:\cygwin64\home\abc\ardupilot. However, when I key in the lines below into Cygwin(x64)
$ cd ~/ardupilot
$ python waf
the error message is:
Waf: Entering directory /home/abc/ardupilot/build' [1/1] Creating waf -> preparing 'tmp-waf-2.0.18' Waf: Leaving directory
/home/abc/ardupilot/build’
Build failed
Traceback (most recent call last):
File “/home/abc/ardupilot/.waf-2.0.18-96675f149f50dab16c9e2e6aaf5e787b/waflib/Task.py”, line 350, in process
ret = self.run()
File “/home/abc/ardupilot/wscript”, line 262, in create_waf
for node in up_node.find_dir(‘waflib’).ant_glob(incl=[’.py’, 'Tools/.py’, ‘extras/*.py’]):
AttributeError: ‘NoneType’ object has no attribute ‘ant_glob’
I am unable to build and I am unable to ./waf configure --board Pixhawk1.
When I tried to type: ./waf configure --board Pixhawk1, I have the feedback below:
waf [commands] [options]
Main commands (example: ./waf build -j4)
build : executes the build
clean : cleans the project
configure: configures the project
dist : makes a tarball for redistributing the sources
distcheck: checks if the project compiles (tarball from ‘dist’)
distclean: removes build folders and data
install : installs the targets on the system
list : lists the targets to execute
step : executes tasks in a step-by-step fashion, for debugging
uninstall: removes the targets installed
Options:
–version show program’s version number and exit
-c COLORS, --color=COLORS
whether to use colors (yes/no/auto) [default: auto]
-j JOBS, --jobs=JOBS amount of parallel jobs (8)
-k, --keep continue despite errors (-kk to try harder)
-v, --verbose verbosity level -v -vv or -vvv [default: 0]
–zones=ZONES debugging zones (task_gen, deps, tasks, etc)
-h, --help show this help message and exit
–make-waf creates the waf script
–interpreter=INTERPRETER
specify the #! line on top of the waf file
–sign make a signed file
–zip-type=ZIP specify the zip type [Allowed values: bz2 gz xz]
–make-batch creates a convenience waf.bat file (done automatically
on win32 systems)
–set-version=SETVER sets the version number for waf releases (for the
maintainer)
–strip shrinks waf (strip docstrings, saves 33kb)
–nostrip no shrinking
–tools=ADD3RDPARTY Comma-separated 3rd party tools to add, eg:
“compat,ocaml” [Default: “compat15”]
–coretools=CORETOOLS
Comma-separated core tools to add, eg: “vala,tex”
[Default: all of them]
–prelude=PRELUDE Code to execute before calling waf
–namesfrom=NAMESFROM
Obtain the file names from a model archive
Configuration options:
-o OUT, --out=OUT build dir for the project
-t TOP, --top=TOP src dir for the project
–prefix=PREFIX installation prefix [default: ‘/usr/local/’]
–bindir=BINDIR bindir
–libdir=LIBDIR libdir
Build and installation options:
-p, --progress -p: progress bar; -pp: ide output
–targets=TARGETS task generators, e.g. “target1,target2”
Step options:
–files=FILES files to process, by regexp, e.g.
“/main.c,/test/main.o”
Installation and uninstallation options:
–destdir=DESTDIR installation root [default: ‘’]
-f, --force force file installation
–distcheck-args=ARGS
arguments to pass to distcheck
Python Options:
–nopyc Do not install bytecode compiled .pyc files
(configuration) [Default:install]
–nopyo Do not install optimised compiled .pyo files
(configuration) [Default:install]
–nopycache Do not use pycache directory to install objects
[Default:auto]
–python=PYTHON python binary to be used [Default: /usr/bin/python]
–pythondir=PYTHONDIR
Installation path for python modules (py, platform-
independent .py and .pyc files)
–pythonarchdir=PYTHONARCHDIR
Installation path for python extension (pyext, platform-
dependent .so or .dylib files)
waf: error: no such option: --board
May I know is there any one can help with my problem so that I can get my SITL running on windows, thanks a lot.