学习笔记——make项目中克隆GitHub目录失败的解决

在示例项目中执行make后出现下面的错误

WARNING: Missing submodule components/json/cJSON...

WARNING: Missing submodule components/lwip/lwip...

详细报错如下:

Building partitions from /home/cxj/ESP8266_RTOS_SDK/components/partition_table/partitions_singleapp.csv...
WARNING: Missing submodule components/json/cJSON...
Attempting 'git submodule update --init components/json/cJSON' in esp-idf root directory...
正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/json/cJSON'...
warning: 重定向到 https://github.com/DaveGamble/cJSON.git/
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败
fatal: 无法克隆 'http://github.com/DaveGamble/cJSON.git' 到子模组路径 '/home/cxj/ESP8266_RTOS_SDK/components/json/cJSON'
克隆 'components/json/cJSON' 失败。按计划重试
正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/json/cJSON'...
warning: 重定向到 https://github.com/DaveGamble/cJSON.git/
子模组路径 'components/json/cJSON':检出 '3c8935676a97c7c97bf006db8312875b4f292f6c'
子模组路径 'components/json/cJSON':检出 '3c8935676a97c7c97bf006db8312875b4f292f6c'
WARNING: Missing submodule components/lwip/lwip...
Attempting 'git submodule update --init components/lwip/lwip' in esp-idf root directory...
子模组 'components/lwip/lwip'(http://github.com/espressif/esp-lwip.git)未对路径 'components/lwip/lwip' 注册
正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'...
warning: 重定向到 https://github.com/espressif/esp-lwip.git/
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败
fatal: 无法克隆 'http://github.com/espressif/esp-lwip.git' 到子模组路径 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'
克隆 'components/lwip/lwip' 失败。按计划重试
正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'...
warning: 重定向到 https://github.com/espressif/esp-lwip.git/
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败
fatal: 无法克隆 'http://github.com/espressif/esp-lwip.git' 到子模组路径 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'
第二次尝试克隆 'components/lwip/lwip' 失败,退出
/home/cxj/ESP8266_RTOS_SDK/make/project.mk:630: recipe for target '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip/.git' failed
make: *** [/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip/.git] Error 1

 学习笔记——make项目中克隆GitHub目录失败的解决

解决办法:

第一种方法:

根据报错中提示的地址手动下载需要的文件,放入报错路经下

第二种方法:

调大postBuffer的值,同时提高一下Github的下载速度,再次执行make,让其自动完成下载和注册。

 

上一篇:用Stm32CubeMX在STM32F107上移植LWIP(PHY:DM9161A)


下一篇:lwip在windows运行环境搭建