學習筆記——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

 

解決辦法:

第一種方法:

根據報錯中提示的地址手動下載需要的文件,放入報錯路經下

第二種方法:

調大postBuffer的值,同時提高一下Github的下載速度,再次執行make,讓其自動完成下載和注冊。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM