Skip to content

Error adding dependency in cmakelists component (MEGH-7132) #365

@EQlangxian

Description

@EQlangxian

Answers checklist.

  • I have read the Rainmaker documentation and the issue is not addressed there.
  • I have updated my IDF branch (release/vX.Y) to the latest version and checked that the issue is present there. This is not applicable if you are using Rainmaker with Arduino.
  • I have searched the Rainmaker forum and issue tracker for a similar issue and not found a similar issue.

IDF / ESP32-Arduino version.

idf5.5.1

Operating System used.

Linux

How did you build your project?

Command line with idf.py

Development Kit.

esp32s3

What is the expected behavior?

Adding other components such as REQUIRES esp.driver_gpio to the cmakelists component in the switch in the example will not result in an error

What is the actual behavior?

Adding other components such as REQUIRES esp.driver_gpio to the cmakelists component in the switch in the example will result in an error。

Steps to reproduce.

idf_component_register(SRCS ./app_driver.c ./app_main.c
INCLUDE_DIRS "."
REQUIRES esp_driver_gpio)

Build Logs.

r-master/examples/switch/main/app_driver.c
/home/eq_langxian/code/example/esp-rainmaker-master/examples/switch/main/app_driver.c:17:10: fatal error: app_reset.h: No such file or directory
   17 | #include <app_reset.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

More Information.

[12/18] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/app_driver.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/app_driver.c.obj
/home/eq_langxian/software/esp32/v5.5/.tool/tools/xtensa-esp-elf/esp-14.2.0_20250730/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc -DESP_PLATFORM -DIDF_VER="v5.5.1-144-g4b2b5d7baf" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/home/eq_langxian/code/example/esp-rainmaker-master/examples/switch/build/config -I/home/eq_langxian/code/example/esp-rainmaker-master/examples/switch/main -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/newlib/platform_include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/freertos/config/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/freertos/config/include/freertos -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/freertos/config/xtensa/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/freertos/esp_additions/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/include/soc -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/include/soc/esp32s3 -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/dma/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/ldo/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/debug_probe/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/mspi_timing_tuning/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/mspi_timing_tuning/tuning_scheme_impl/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/power_supply/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/port/esp32s3/. -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/port/esp32s3/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/mspi_timing_tuning/port/esp32s3/. -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_hw_support/mspi_timing_tuning/port/esp32s3/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/heap/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/heap/tlsf -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/log/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/soc/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/soc/esp32s3 -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/soc/esp32s3/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/soc/esp32s3/register -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/hal/platform_port/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/hal/esp32s3/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/hal/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_rom/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_rom/esp32s3/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_rom/esp32s3/include/esp32s3 -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_rom/esp32s3 -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_common/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_system/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_system/port/soc -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_system/port/include/private -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/xtensa/esp32s3/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/xtensa/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/xtensa/deprecated_include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/lwip/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/lwip/include/apps -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/lwip/include/apps/sntp -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/lwip/lwip/src/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/lwip/port/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/lwip/port/freertos/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/lwip/port/esp32xx/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/lwip/port/esp32xx/include/sys -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_driver_gpio/include -I/home/eq_langxian/code/example/esp-rainmaker-master/examples/switch/managed_components/espressif__button/include -I/home/eq_langxian/code/example/esp-rainmaker-master/examples/switch/managed_components/espressif__button/interface -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_adc/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_adc/interface -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_adc/esp32s3/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_adc/deprecated/include -I/home/eq_langxian/code/example/esp-rainmaker-master/components/esp_rainmaker/include -I/home/eq_langxian/code/example/esp-rainmaker-master/examples/switch/managed_components/espressif__rmaker_common/include -I/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf/components/esp_event/include -mlongcalls -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -fdiagnostics-color=always -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fno-shrink-wrap -fmacro-prefix-map=/home/eq_langxian/code/example/esp-rainmaker-master/examples/switch=. -fmacro-prefix-map=/home/eq_langxian/software/esp32/v5.5/idf/v5.5/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -DBUTTON_VER_MAJOR=4 -DBUTTON_VER_MINOR=1 -DBUTTON_VER_PATCH=4 -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/app_driver.c.obj -MF esp-idf/main/CMakeFiles/__idf_main.dir/app_driver.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/app_driver.c.obj -c /home/eq_langxian/code/example/esp-rainmaker-master/examples/switch/main/app_driver.c
/home/eq_langxian/code/example/esp-rainmaker-master/examples/switch/main/app_driver.c:17:10: fatal error: app_reset.h: No such file or directory
17 | #include <app_reset.h>
| ^~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

  • 终端进程“ninja”已终止,退出代码: 1。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions