【问题标题】:esp-idf path doesn't override when esp-iot-solution repository is used使用 esp-iot-solution 存储库时,esp-idf 路径不会覆盖
【发布时间】:2019-09-11 08:19:54
【问题描述】:

我已经克隆了 esp-idf-solution 存储库并按照 readme.md 文件中的说明进行操作。

我之前已经克隆了 esp-idf 存储库,并且可以成功编译和刷写。但是当我尝试在 esp-iot-solution 中编译新示例时,它不起作用。

$ make flash
Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5
Compiler version: 5.2.0
Makefile:11: /home/abish/esp/esp-iot-solution/Makefile: No such file or directory
make: *** No rule to make target '/home/abish/esp/esp-iot-solution/Makefile'.  Stop.

我已在 readme.md export IOT_SOLUTION_PATH=~/esp/esp-iot-solution 中执行此步骤。这不会覆盖 IDF_PATH。如何解决?

【问题讨论】:

    标签: makefile path toolchain esp32 esp-idf


    【解决方案1】:

    看起来 esp-idf 已经作为 git 子模块包含在 esp-idf-solution 项目中,因此您不必单独克隆 esp-idf 存储库(请参阅https://github.com/espressif/esp-iot-solution/tree/master/submodule)。

    但请确保您告诉 git 从 esp-idf-solution 项目中克隆子模块。

    cd /home/abish/esp/esp-iot-solution/
    git submodule update --init --recursive
    

    【讨论】:

      【解决方案2】:

      迟到的答案,但可能会有所帮助。我是初学者,所以请谨慎使用。当你输入命令提示符时:

      export IOT_SOLUTION_PATH=~/esp/esp-iot-solution
      

      您正在调用 esp 目录中的 export.bat 文件,但我认为 export 是 Linux 命令。也许你应该输入命令提示符:

      set IOT_SOLUTION_PATH=%IDF_PATH%\esp-iot-solution
      

      set IOT_SOLUTION_PATH=%IDF_PATH%/esp-iot-solution
      

      或将此行添加到 export.bat 文件中的某处。没有设置这个环境变量,IOT方案不能用也不能配置(idf.py menuconfig)

      问候

      【讨论】:

        猜你喜欢
        • 2021-02-16
        • 2023-01-27
        • 1970-01-01
        • 2022-07-22
        • 1970-01-01
        • 1970-01-01
        • 2021-12-26
        • 2023-03-03
        • 2022-08-06
        相关资源
        最近更新 更多