Failed to set target esp32: non zero exit code 2 CMakeLists.txt not found in project directory C:\Users\Administrator\Desktop\xiaozhi-esp32-main Adding “set-target”'s dependency “fullclean” to list of commands with default set of options.
Executing action: fullclean Build directory ‘C:\Users\Administrator\Desktop\xiaozhi-esp32-main\build’ not found. Nothing to clean. Executing action: set-target Set Target to: esp32, new sdkconfig will be created.

原因:用vscode打开两层文件夹,导致编译错误
解决:应该打开最底层文件夹

Failed to set target esp32s3: non zero exit code 2 Adding “set-target”'s dependency “fullclean” to list of commands with default set of options. Executing action: fullclean Build directory ‘E:\ESP32-S3\xiaozhi-esp32-1.7.0\build’ not found. Nothing t

原因:5.3版本太低
解决:选择5.4版本或者更高的

Logo

更多推荐