esp-rain/example/led_lights使用 set-target 报错

hunmoya
Posts: 4
Joined: Sun Dec 18, 2022 2:06 pm

esp-rain/example/led_lights使用 set-target 报错

Postby hunmoya » Sun Dec 18, 2022 2:13 pm

孩子第一次玩板子,求大佬们帮忙看看这是什么情况啊QWQ
如下图第一行显示
PS D:\Espressif\datum\esp-rainmaker-master\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 'd:\espressif\datum\esp-rainmaker-master\examples\led_light\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32c3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory d:\espressif\datum\esp-rainmaker-master\examples\led_light\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=1 d:\espressif\datum\esp-rainmaker-master\examples\led_light"...
-- Found Git: D:/Espressif/Espressif/Espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- Component directory D:/Espressif/datum/esp-rainmaker-master/components/esp-insights does not contain a CMakeLists.txt file. No component will be added
-- Component directory D:/Espressif/datum/esp-rainmaker-master/components/rmaker_common does not contain a CMakeLists.txt file. No component will be added
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/Espressif/Espressif/Espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Espressif/Espressif/Espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Espressif/Espressif/Espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c3
Skipping optional dependency: espressif/mdns
Skipping optional dependency: espressif/mdns
CMake Error at D:/Espressif/Espressif/Espressif/frameworks/esp-idf-v4.4.3/tools/cmake/build.cmake:201 (message):
Failed to resolve component 'rmaker_common'.
Call Stack (most recent call first):
D:/Espressif/Espressif/Espressif/frameworks/esp-idf-v4.4.3/tools/cmake/build.cmake:227 (__build_resolve_and_add_req)
D:/Espressif/Espressif/Espressif/frameworks/esp-idf-v4.4.3/tools/cmake/build.cmake:507 (__build_expand_requirements)
D:/Espressif/Espressif/Espressif/frameworks/esp-idf-v4.4.3/tools/cmake/project.cmake:384 (idf_build_process)
CMakeLists.txt:16 (project)


-- Configuring incomplete, errors occurred!

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: esp-rain/example/led_lights使用 set-target 报错

Postby ESP_YJM » Mon Dec 19, 2022 6:25 am

你需要执行下 git submodule update --init --recursive

hunmoya
Posts: 4
Joined: Sun Dec 18, 2022 2:06 pm

Re: esp-rain/example/led_lights使用 set-target 报错

Postby hunmoya » Mon Dec 19, 2022 12:39 pm

git submodule update --init --recursive试过了,好像不管用,依旧是爆上面的错

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: esp-rain/example/led_lights使用 set-target 报错

Postby ESP_YJM » Tue Dec 20, 2022 9:41 am

你在哪个目录执行的?执行 git submodule update --init --recursive 有没有报错?另外你看下 rmaker_common 目录下有没有文件?

Who is online

Users browsing this forum: No registered users and 160 guests