espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
431 stars 145 forks source link

can not run examples : led_light (MEGH-5086) #288

Closed PegasusFlyMe closed 7 months ago

PegasusFlyMe commented 7 months ago

Answers checklist.

IDF / ESP32-Arduino version.

ESP-IDF v5.1.1-dirty

Operating System used.

Windows

How did you build your project?

Command line with idf.py

Development Kit.

ESP32-C3-DevKitC-02v1.1

What is the expected behavior?

image

What is the actual behavior?

04$%E~L_J`(79_ _ X3EUMD sth wrong with EXTRA_COMPONENT_DIRS;

Steps to reproduce.

  1. git clone https://github.com/espressif/esp-rainmaker.git
  2. open : ESP-IDF 5.1 CMD
  3. git submodual update--init --recursive --progress
  4. cd ~/led_light/
  5. idf.py set-target esp32c3
  6. then error ...

Build Logs.

Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Directory 'C:\Users\10923\Desktop\PWM\esp-rainmaker\examples\led_light\build' doesn't seem to be a CMake build directory. Refusing to automatically delete files in this directory. Delete the directory manually to 'clean' it.

C:\Users\10923\Desktop\PWM\esp-rainmaker\examples\led_light>idf.py set-target esp32C3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'C:\Users\10923\Desktop\PWM\esp-rainmaker\examples\led_light\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32c3, new sdkconfig will be created.
Running cmake in directory C:\Users\10923\Desktop\PWM\esp-rainmaker\examples\led_light\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=D:\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=1 C:\Users\10923\Desktop\PWM\esp-rainmaker\examples\led_light"...
-- Found Git: D:/Espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
CMake Error at D:/Espressif/frameworks/esp-idf-v5.1.1/tools/cmake/project.cmake:349 (message):
  Directory specified in EXTRA_COMPONENT_DIRS doesn't exist:
  C:/Users/10923/Desktop/PWM/esp-rainmaker/components/esp-insights/components
Call Stack (most recent call first):
  D:/Espressif/frameworks/esp-idf-v5.1.1/tools/cmake/project.cmake:433 (__project_init)
  CMakeLists.txt:16 (project)

-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the C:\Users\10923\Desktop\PWM\esp-rainmaker\examples\led_light\build\log\idf_py_stderr_output_18456 and C:\Users\10923\Desktop\PWM\esp-rainmaker\examples\led_light\build\log\idf_py_stdout_output_18456

More Information.

i can run esp-iot-bridge examples on my computer.