原因:由于github是外网问题,导致网速慢,大文件容易clone失败
解决方法:
第一步,命令行进入esp-idf目录下
第二步,执行 git submodule update --init,更新库,出错了,再重新执行直到成功,不建议到第三步
第三步,如果第二步clone部分库还是出错的情况下使用,看clone出错的库,在那里会显示那个库存放的位置,进入那个命令,使用git clone 加该库的克隆地址,把https改成http,如git clone http://github.com/espressif/mbedtls.git,重新clone
本人部分具体安装过程如下
第一步
使用git clone --recursive https://github.com/espressif/esp-skainet.git 安装esp32-s3语音环境,安装环境时,出现clone部分库失败
Cloning into '/home/esp32/esp-skainet/esp-idf/components/cbor/tinycbor'...
fatal: unable to access 'https://github.com/intel/tinycbor.git/': Failed to connect to github.com port 443: Connection refused
fatal: clone of 'https://github.com/intel/tinycbor.git' into submodule path '/home/esp32/esp-skainet/esp-idf/components/cbor/tinycbor' failed
Failed to clone 'components/cbor/tinycbor'. Retry scheduled
第二步
终端进入esp-idf文件下,执行以下命令,更新库文件
git submodule update --init
但是还是有部分库clone失败