Failed to recurse into submodule path 'modules/PX4Firmware'

I try to git clone and make ardupilot on windows, but I have some problems.
I open the px4 console and input ‘git clone git://github.com/ArduPilot/ardupilot.git’ to download the program.
And then I input the command ‘git submodule update --init --recursive’, but it failed

Anybody know how to solve it?
I’ll be appreciate for your help!

Try to run it like that:

GIT_TRACE=true GIT_CURL_VERBOSE=true git submodule update --init --recursive

This way it may tell you more details on issue.

Thank you for your reply, but I really can’t understand the message on the screen.
:sweat:

trace: built-in: git ‘config’ 'submodule.Tools/gencpp.url’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘submodule.Tools/gencpp.update’

trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’’’ ($ur
l) registered for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’
’’ ($url) registered for path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) registered
for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) regi
stered for path ‘’’$modulepath’’’'
Submodule ‘Tools/gencpp’ (git://github.com/ArduPilot/PX4Firmware.git) registered
for path 'Tools/gencpp’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…*
.path$'
trace: built-in: git ‘config’ 'submodule.Tools/genmsg.url’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘submodule.Tools/genmsg.update’

trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’’’ ($ur
l) registered for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’
’’ ($url) registered for path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) registered
for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) regi
stered for path ‘’’$modulepath’’’‘
Submodule ‘Tools/genmsg’ (git://github.com/ArduPilot/PX4Firmware.git) registered
for path ‘Tools/genmsg’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ ‘^submodule…
.path$‘
trace: built-in: git ‘config’ ‘submodule.mavlink/include/mavlink/v1.0.url’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘submodule.mavlink/include/mavl
ink/v1.0.update’
trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’’’ ($ur
l) registered for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’
’’ ($url) registered for path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) registered
for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) regi
stered for path ‘’’$modulepath’’’'
Submodule ‘mavlink/include/mavlink/v1.0’ (git://github.com/ArduPilot/PX4Firmware
.git) registered for path 'mavlink/include/mavlink/v1.0’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…

.path$‘
trace: built-in: git ‘config’ ‘submodule.src/lib/DriverFramework.url’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘submodule.src/lib/DriverFramew
ork.update’
trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’’’ ($ur
l) registered for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’
’’ ($url) registered for path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) registered
for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) regi
stered for path ‘’’$modulepath’’’‘
Submodule ‘src/lib/DriverFramework’ (git://github.com/ArduPilot/PX4Firmware.git)
registered for path ‘src/lib/DriverFramework’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ ‘^submodule…
.path$‘
trace: built-in: git ‘config’ ‘submodule.src/lib/ecl.url’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘submodule.src/lib/ecl.update’
trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’’’ ($ur
l) registered for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’
’’ ($url) registered for path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) registered
for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) regi
stered for path ‘’’$modulepath’’’'
Submodule ‘src/lib/ecl’ (git://github.com/ArduPilot/PX4Firmware.git) registered
for path 'src/lib/ecl’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…

.path$‘
trace: built-in: git ‘config’ ‘submodule.src/lib/matrix.url’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘submodule.src/lib/matrix.updat
e’
trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’’’ ($ur
l) registered for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’
’’ ($url) registered for path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) registered
for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) regi
stered for path ‘’’$modulepath’’’‘
Submodule ‘src/lib/matrix’ (git://github.com/ArduPilot/PX4Firmware.git) register
ed for path ‘src/lib/matrix’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ ‘^submodule…
.path$‘
trace: built-in: git ‘config’ ‘submodule.src/modules/uavcan/libuavcan.url’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘submodule.src/modules/uavcan/l
ibuavcan.update’
trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’’’ ($ur
l) registered for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’
’’ ($url) registered for path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) registered
for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) regi
stered for path ‘’’$modulepath’’’'
Submodule ‘src/modules/uavcan/libuavcan’ (git://github.com/ArduPilot/PX4Firmware
.git) registered for path 'src/modules/uavcan/libuavcan’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…

.path$‘
trace: built-in: git ‘config’ ‘submodule.Tools/gencpp.url’
trace: built-in: git ‘config’ ‘submodule.Tools/gencpp.update’
trace: built-in: git ‘rev-parse’ ‘–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–verify’ ‘HEAD’
fatal: Not a git repository: …/…/c:/ardupilot/.git/modules/modules/PX4Firmware
/modules/Tools/gencpp
trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Unable to find current revis
ion in submodule path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Unable to find curren
t revision in submodule path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Unable to find current revision in submodu
le path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Unable to find current revision in
submodule path ‘’’$modulepath’’’‘
Unable to find current revision in submodule path ‘Tools/gencpp’
trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Failed to recurse into submo
dule path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Failed to recurse int
o submodule path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Failed to recurse into submodule path ‘’’
$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Failed to recurse into submodule pa
th ‘’’$modulepath’’’'
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…
.path$'
trace: built-in: git ‘config’ 'submodule.modules/PX4NuttX.url’
trace: built-in: git ‘config’ 'submodule.modules/PX4NuttX.update’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–verify’ 'HEAD’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–init’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–recursive’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…

.path$'
trace: built-in: git ‘config’ 'submodule.modules/gbenchmark.url’
trace: built-in: git ‘config’ 'submodule.modules/gbenchmark.update’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–verify’ 'HEAD’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–init’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–recursive’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–‘
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ ‘–‘
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ ‘^submodule…
.path$'
trace: built-in: git ‘config’ 'submodule.gtest.url’
trace: built-in: git ‘config’ 'submodule.gtest.update’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–verify’ 'HEAD’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–init’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–recursive’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…

.path$‘
trace: built-in: git ‘config’ ‘submodule.modules/mavlink.url’
trace: built-in: git ‘config’ ‘submodule.modules/mavlink.update’
trace: built-in: git ‘rev-parse’ ‘–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–verify’ ‘HEAD’
trace: built-in: git ‘rev-parse’ ‘–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ ‘–init’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ ‘–recursive’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ ‘–‘
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ ‘^submodule…
.path$‘
trace: built-in: git ‘config’ ‘submodule.pymavlink.url’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘submodule.pymavlink.update’
trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’’’ ($ur
l) registered for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’
’’ ($url) registered for path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) registered
for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) regi
stered for path ‘’’$modulepath’’’'
Submodule ‘pymavlink’ (git://github.com/ArduPilot/mavlink) registered for path '
pymavlink’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…

.path$‘
trace: built-in: git ‘config’ ‘submodule.pymavlink.url’
trace: built-in: git ‘config’ ‘submodule.pymavlink.update’
trace: built-in: git ‘rev-parse’ ‘–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–verify’ ‘HEAD’
trace: built-in: git ‘rev-parse’ ‘–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ ‘–init’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ ‘–recursive’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ ‘–‘
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ ‘–‘
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ ‘^submodule…
.path$'
trace: built-in: git ‘config’ 'submodule.modules/uavcan.url’
trace: built-in: git ‘config’ 'submodule.modules/uavcan.update’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–verify’ 'HEAD’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–init’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–recursive’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…

.path$‘
trace: built-in: git ‘config’ ‘submodule.dsdl.url’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘submodule.dsdl.update’
trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’’’ ($ur
l) registered for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’
’’ ($url) registered for path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) registered
for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) regi
stered for path ‘’’$modulepath’’’‘
Submodule ‘dsdl’ (git://github.com/ArduPilot/uavcan.git) registered for path ‘ds
dl’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ ‘^submodule…
.path$‘
trace: built-in: git ‘config’ ‘submodule.libuavcan/dsdl_compiler/pyuavcan.url’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘submodule.libuavcan/dsdl_compi
ler/pyuavcan.update’
trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’’’ ($ur
l) registered for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’
’’ ($url) registered for path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) registered
for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) regi
stered for path ‘’’$modulepath’’’'
Submodule ‘libuavcan/dsdl_compiler/pyuavcan’ (git://github.com/ArduPilot/uavcan.
git) registered for path 'libuavcan/dsdl_compiler/pyuavcan’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…

.path$‘
trace: built-in: git ‘config’ ‘submodule.dsdl.url’
trace: built-in: git ‘config’ ‘submodule.dsdl.update’
trace: built-in: git ‘rev-parse’ ‘–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–verify’ ‘HEAD’
trace: built-in: git ‘rev-parse’ ‘–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ ‘–init’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ ‘–recursive’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ ‘–‘
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ ‘–‘
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ ‘^submodule…
.path$'
trace: built-in: git ‘config’ 'submodule.libuavcan/dsdl_compiler/pyuavcan.url’
trace: built-in: git ‘config’ 'submodule.libuavcan/dsdl_compiler/pyuavcan.update

trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–verify’ 'HEAD’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–init’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–recursive’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…

.path$‘
trace: built-in: git ‘config’ ‘submodule.dsdl.url’
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘submodule.dsdl.update’
trace: exec: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’’’ ($ur
l) registered for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘–variables’ ‘Submodule ‘’’$name’
’’ ($url) registered for path ‘’’$modulepath’’’‘
trace: exec: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) registered
for path ‘’’$modulepath’’’‘
trace: run_command: ‘git-sh-i18n–envsubst’ ‘Submodule ‘’’$name’’’ ($url) regi
stered for path ‘’’$modulepath’’’'
Submodule ‘dsdl’ (https://github.com/UAVCAN/pyuavcan) registered for path ‘dsdl’

trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…
.path$'
trace: built-in: git ‘config’ 'submodule.dsdl.url’
trace: built-in: git ‘config’ 'submodule.dsdl.update’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–verify’ 'HEAD’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–init’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–recursive’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘config’ ‘-f’ ‘.gitmodules’ ‘–get-regexp’ '^submodule…

.path$'
trace: built-in: git ‘config’ 'submodule.modules/waf.url’
trace: built-in: git ‘config’ 'submodule.modules/waf.update’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–verify’ 'HEAD’
trace: built-in: git ‘rev-parse’ '–local-env-vars’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–init’
trace: built-in: git ‘rev-parse’ ‘–sq-quote’ '–recursive’
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
trace: built-in: git ‘ls-files’ ‘–error-unmatch’ ‘–stage’ '–'
Failed to recurse into submodule path ‘modules/PX4Firmware’

zhongzw@zhongzw-PC /c/ardupilot
$

From all of that the error is:

fatal: Not a git repository: …/…/c:/ardupilot/.git/modules/modules/PX4Firmware
/modules/Tools/gencpp

I’m not sure why you got that error but I would try:

git submodule deinit -f .
git submodule update --init --recursive

If that doesn’t fix it, maybe you should try to clone with GitHub for Windows and only after that use the command-line.

OXINARF, I find a fatal error. Below is the program from “ardupilot\libraries\GCS_MAVLink\GCS_MAVLink.h” in master branch

#include “include/mavlink/v2.0/ardupilotmega/version.h”
But I cannot find the folder ‘include’


Is it an bug?

No, the MAVLink headers are auto-generated. You should look in your console at the beginning of the build process, there should be an error when generating those headers and that is the reason why it isn’t found later.

But why can I find the ‘include’ folder in branch copter-3.3?

Because in Copter-3.3 it wasn’t auto-generated, the process has changed since then.

OK, I know, but sometimes it cannot auto-generated in branch master, I will try the advice you give.
Thank you for your help!

I have the same problem. Could you tell me how do you solve this problem?