zoukankan      html  css  js  c++  java
  • 学习笔记——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,让其自动完成下载和注册。

  • 相关阅读:
    pytorch-卷积基本网络结构-提取网络参数-初始化网络参数
    pytorch-mnist神经网络训练
    python 面对对象 类(继承, 多态)
    注意机制CBAM
    python sqlalchemy 进行 mysql 数据库操作
    python pymysql 连接 mysql数据库进行操作
    mysql数据库基础
    python正则表达式解析(re)
    python 装饰器 (test = submit(test))
    对opencv读取的图片进行像素调整(1080, 1920) 1.cv2.VideoCapture(构造图片读取) 2.cv2.nameWindow(构建视频显示的窗口) 3.cv2.setWindowProperty(设置图片窗口的像素) 4.video_capture(对图片像素进行设置)
  • 原文地址:https://www.cnblogs.com/fcchen/p/12916491.html
Copyright © 2011-2022 走看看