[Problem solving] ESP32 reported an error: Makefile: 8: /make/project.mk: No such file or directory

problem:

Makefile:8: /make/project.mk: 没有那个文件或目录
make: *** 没有规则可制作目标“/make/project.mk”。 停止。

solve:

1, esp-idfusing a script to set environment:

# 通过 ESP-IDF 提供的另一个脚本完成。
. ./export.sh

2. If the above methods are still invalid, use the following methods to manually add:

vim ~/.bashrc
export IDF_PATH=~/ESP32/esp-idf
source ~/.bashrc
//查看环境变量
echo $IDF_PATH

3. Other problems
[ESP32] make: xtensa-esp32-elf-gcc: Command not found The problem is solved

Guess you like

Origin blog.csdn.net/p1279030826/article/details/113541547