问题:编译的时候提示如下:

$  ./waf list_boards

/usr/bin/python: can't open file '/cygdrive/h/ardupilot/modules/waf/waf-light': [Errno 2] No such file or directory

Missing waf submodule. Trying to get it

Submodules OK, try running again

解决办法

$ git submodule update --init --recursive --force

执行这句命令就可以了,但是我更新了4个小时

只输入$  git submodule update 不管用

git submodule update --init --recursive 不管用

 

问题:编译固件时失败

$ ./waf copter

结果失败

问题一   Build failed

Traceback (most recent call last):

  File "/cygdrive/g/ardupilot/modules/waf/waflib/Runner.py", line 395, in task_status

    return tsk.runnable_status()

  File "Tools/ardupilotwaf/git_submodule.py", line 75, in runnable_status

    out = self.generator.bld.cmd_and_log(cmd, quiet=Context.BOTH, cwd=self.cwd)

  File "/cygdrive/g/ardupilot/modules/waf/waflib/Context.py", line 461, in cmd_and_log

    raise e

WafError: Command ('/cygdrive/d/Program Files/Git/mingw64/bin/git', 'submodule', 'status', '--recursive', '--', '/cygdrive/g/ardupilot/modules/ChibiOS') returned 128

 

解决办法

之前在git bash编译,改在cygwin下编译就行了。

类似问题https://github.com/ArduPilot/ardupilot/issues/4023

 

失败问题二

uavcangen returned 1 error code
Waf: Leaving directory `/cygdrive/g/colorfuljune/ardupilot/build/fmuv2'
Build failed
 -> task in 'uavcan' failed (exit status 1):
        {task 123145243408816: uavcangen ardupilot,com,uavcan -> }
 (run with -v to display more information)

解决办法:   git submodule update --init --recursive --force

(这命令好用,能解决不少问题啊)
 

问题 Git clone https://……

显示 timeout

问题,git clone [email protected]:(换成ssh网址)

显示

Warning: Permanently added the RSA host key for IP address '13.229.188.59' to the list of known hosts.

[email protected]: Permission denied (publickey).

fatal: 无法读取远程仓库。

请确认您有正确的访问权限并且仓库存在

解决办法,这两个问题在执行上述命令是在 cygwin下,改在git bash下就好了

至于为什么?我还不清楚,是不是环境出了问题。因为以前是没出现过这种情况,在cygwin下都可以进行

还有在git clone是 关于** 公钥  添加**方式看是否可以解决 git clone失败的问题,针对我的问题是没解决

SSH**添加到ssh-agent

路径/c/Users/Maibenben/.ssh

编译失败汇总

编译失败汇总

 

 

 

 

相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2022-01-10
  • 2021-09-07
  • 2021-08-31
  • 2022-12-23
  • 2023-03-20
猜你喜欢
  • 2021-08-09
  • 2021-05-09
  • 2021-08-29
  • 2021-07-15
  • 2021-08-18
  • 2022-12-23
  • 2021-07-30
相关资源
相似解决方案