我已经克隆了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。该如何解决?
[似乎esp-idf已作为esp-idf-solution项目的git子模块包括在内,因此您不必分别克隆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