Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 在release/v4.2 SDK中构建aws_iot(物影)示例时出错_Git_Github_Sdk_Aws Iot_Esp Idf - Fatal编程技术网

Git 在release/v4.2 SDK中构建aws_iot(物影)示例时出错

Git 在release/v4.2 SDK中构建aws_iot(物影)示例时出错,git,github,sdk,aws-iot,esp-idf,Git,Github,Sdk,Aws Iot,Esp Idf,大家好, 在版本/v3.3中存在一个aws_iot示例,该示例在esp idf的版本/v4.2中不存在。 因此,我复制了aws_iot(thing shadow)示例,并根据我在thing_shadow.c文件和组件中的aws_iot文件夹(从v3.3到v4.2)中的要求进行了所需的更改。但是,在当前SDK(v4.2)中构建示例时,我遇到了以下错误 错误: 警告:缺少子模块组件/aws_iot/aws-iot-device-sdk-embedded-C。。。 正在尝试esp idf根目录中的“g

大家好, 在版本/v3.3中存在一个aws_iot示例,该示例在esp idf的版本/v4.2中不存在。 因此,我复制了aws_iot(thing shadow)示例,并根据我在thing_shadow.c文件和组件中的aws_iot文件夹(从v3.3到v4.2)中的要求进行了所需的更改。但是,在当前SDK(v4.2)中构建示例时,我遇到了以下错误

错误:

警告:缺少子模块组件/aws_iot/aws-iot-device-sdk-embedded-C。。。 正在尝试esp idf根目录中的“git子模块更新--init components/aws_iot/aws-iot-device-sdk-embedded-C”。。。 错误:pathspec“components/aws_iot/aws-iot-device-sdk-embedded-C”与git已知的任何文件都不匹配。 /home/harshitha/esp32/esp-idf/make/project.mk:672:target'/home/harshitha/esp32/esp-idf/components/aws_-iot/aws-iot-device-sdk-embedded-C/.git'失败 make:**[/home/harshitha/esp32/esp-idf/components/aws_-iot/aws-iot-device-sdk-embedded-C/.git]错误1 我怎样才能解决这个问题?请有人建议在当前SDK版本4.2中进行所需的更改,以解决此问题

解决方案1:将“esp aws物联网”作为组件添加到SDK中

  • 转到安装IDF SDK的位置,例如
    C:\ESP-IDF\ESP IDF\components
  • 在该目录中打开命令提示符,并使用此命令获取idf包
    git克隆——递归https://github.com/espressif/esp-aws-iot
  • 编辑:看起来您安装组件的路径可能与您发布的内容不符。当前: “/home/harshitha/esp32/esp idf/components/aws_iot/aws-iot-device-sdk-embedded-C” 应该是: “/home/harshitha/esp32/esp-idf/components/esp-aws-iot/aws-iot-device-sdk-embedded-C”


    Ref:

    强烈建议将组件添加到应用程序中,而不是IDF本身。在应用程序目录中添加“组件”文件夹。更多信息请参阅。