Failed to build waf

Hi, I’am trying to install build env for windows 10, I’ve followed these instructions but when I try to build with Waf I got an error

[809/810] Generating bin/arducopter.bin
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q2- 
update/bin/arm-none-eabi-objcopy -O binary 
/home/Simon/ardupilot/build/CubeOrange/bin/arducopter 
/home/Simon/ardupilot/build/CubeOrange/bin/arducopter.bin'

Just before thaht I wrote this command :

./waf configure --board CubeOrange

Is anyone know why ?

You can’t have spaces in the path to files. I am quite sure that is what is meant by, syntax error near unexpected token '('

I think I once fixed this by putting parenthesis around environment paths with spaces.

Truly, though do you need to use Cygwin? WSL is a much nicer environment to develop on in Windows.

I’ve used WSL and now it’s works thanks :slight_smile:

1 Like