使用esp32c3编译烧录esp-rainmaker程序时出现缺少network_provisioning组件的问题

Moderator: ESP_ZT

zhang-3116
Posts: 4
Joined: Wed Aug 14, 2024 1:31 am

使用esp32c3编译烧录esp-rainmaker程序时出现缺少network_provisioning组件的问题

Postby zhang-3116 » Wed Aug 14, 2024 3:43 am

使用esp32c3编译烧录esp-rainmaker程序,使用ESP-IDF CMD在idf.py set-target esp32c3时就出现错误,日志如下(缺少network_proxisioning组件):
PS D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\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\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\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 D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\examples\led_light\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=D:\Espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=1 D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\examples\led_light"...
-- Found Git: D:/Espressif/tools/idf-git/2.43.0/cmd/git.exe (found version "2.43.0.windows.1")
fatal: no submodule mapping found in .gitmodules for path 'esp-rainmaker'
-- Component directory D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp-insights 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 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/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/tools/riscv32-esp-elf/esp-13.2.0_20230928/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/tools/riscv32-esp-elf/esp-13.2.0_20230928/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
Dependencies lock doesn't exist, solving dependencies.
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.0)(introduced by component esp_diagnostics)
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\esp_diag_data_store for dependency espressif/esp_diag_data_store(~1.0)(introduced by component esp_insights)
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\esp_diagnostics for dependency espressif/esp_diagnostics(~1.0)(introduced by component esp_insights)
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.0)(introduced by component esp_insights)
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp_schedule for dependency espressif/esp_schedule(~1.2.0)(introduced by component esp_rainmaker)
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\json_generator for dependency espressif/json_generator(~1.1.1)(introduced by component esp_rainmaker)
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\json_parser for dependency espressif/json_parser(~1.0.3)(introduced by component esp_rainmaker)
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.6)(introduced by component esp_rainmaker)
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.2)(introduced by component esp_schedule)
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\jsmn for dependency espressif/jsmn(~1.1)(introduced by component json_parser)
.Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.0), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp-insights/components/esp_diagnostics\idf_component.yml
.Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\esp_diag_data_store for dependency espressif/esp_diag_data_store(~1.0), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp-insights/components/esp_insights\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\esp_diagnostics for dependency espressif/esp_diagnostics(~1.0), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp-insights/components/esp_insights\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.0), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp-insights/components/esp_insights\idf_component.yml
...Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.0)(introduced by component espressif/esp_diagnostics), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp-insights/components/esp_insights\idf_component.yml
.Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp_schedule for dependency espressif/esp_schedule(~1.2.0), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp_rainmaker\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\json_generator for dependency espressif/json_generator(~1.1.1), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp_rainmaker\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\json_parser for dependency espressif/json_parser(~1.0.3), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp_rainmaker\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.6), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp_rainmaker\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.2)(introduced by component espressif/esp_schedule), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp_rainmaker\idf_component.yml
....Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\jsmn for dependency espressif/jsmn(~1.1)(introduced by component espressif/json_parser), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp_rainmaker\idf_component.yml
......Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.2), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/esp_schedule\idf_component.yml
.Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\jsmn for dependency espressif/jsmn(~1.1), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/components/json_parser\idf_component.yml
.Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\esp_insights for dependency espressif/esp_insights(~1.0.1), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/examples/common/app_insights\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp_rainmaker for dependency espressif/esp_rainmaker(~=1.0), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/examples/common/app_insights\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\esp_diag_data_store for dependency espressif/esp_diag_data_store(~1.0)(introduced by component espressif/esp_insights), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/examples/common/app_insights\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\esp_diagnostics for dependency espressif/esp_diagnostics(~1.0)(introduced by component espressif/esp_insights), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/examples/common/app_insights\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.0)(introduced by component espressif/esp_insights), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/examples/common/app_insights\idf_component.yml
.Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp_schedule for dependency espressif/esp_schedule(~1.2.0)(introduced by component espressif/esp_rainmaker), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/examples/common/app_insights\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\json_generator for dependency espressif/json_generator(~1.1.1)(introduced by component espressif/esp_rainmaker), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/examples/common/app_insights\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\json_parser for dependency espressif/json_parser(~1.0.3)(introduced by component espressif/esp_rainmaker), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/examples/common/app_insights\idf_component.yml
Using component placed at D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\components\esp-insights\components\rmaker_common for dependency espressif/rmaker_common(~1.4.6)(introduced by component espressif/esp_rainmaker), specified in D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/examples/common/app_insights\idf_component.yml
CMake Error at D:/Espressif/frameworks/esp-idf-v5.2.1/tools/cmake/build.cmake:544 (message):
ERROR: Because no versions of espressif/esp_rainmaker match >=1.0.0,<1.4.0
|| >1.4.0,<2.0.0

and espressif/esp_rainmaker (1.4.0) depends on espressif/network_provisioning (~1.0.0), espressif/esp_rainmaker (>=1.0.0,<2.0.0) requires espressif/network_provisioning (~1.0.0).

So, because no versions of espressif/network_provisioning match ~1.0.0

and project depends on espressif/esp_rainmaker (~=1.0), version solving failed.

Call Stack (most recent call first):
D:/Espressif/frameworks/esp-idf-v5.2.1/tools/cmake/project.cmake:605 (idf_build_process)
CMakeLists.txt:16 (project)


..-- Configuring incomplete, errors occurred!
See also "D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/examples/led_light/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\examples\led_light\build\log\idf_py_stderr_output_26836 and D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\examples\led_light\build\log\idf_py_stdout_output_26836
在编译esp-idf书上相关程序时都没有问题,有关esp-rainmaker就都出现同样缺少该组件的问题
已经更新esp-rainmaker组件和esp-IDF至最新版本。
在使用git clone https://github.com/espressif/esp-networ ... ioning.git components/esp-network-provisioning 口令手动克隆组件时因GitHub远程服务器响应:自2021年8月13日起,已移除对密码认证的支持,不能在ESP-IDF CMD窗口内直接克隆,查看Github文档也没能找到解决方法。
自行前往Github官网下载组件,在rainmaker的额外组件idf-extra-components-dd2ce03b472504f384fa228ca2938230f2b5bfc2内有network_provisioning组件,复制进文件夹内也未能解决(不知道如何匹配
收到esp32c3后,根据指示实现过用ESP Rainmaker app控制灯相关状态的功能,实现其他功能后,再依照书籍内步骤(第九章)重新实现rainmaker时就不行了,到书内p218 signup可实现,p225用idf.py编译led_light工程时,逐渐发现了上述问题,一直没能解决,求解答

Who is online

Users browsing this forum: No registered users and 4 guests