运行esp-adf例程coze_ws_app出现以下报错,查看发现这是组件报错,该文件在esp-adf的components内,为什么会报错

zzhzzhzzh
Posts: 1
Joined: Sun Jul 20, 2025 12:31 pm

运行esp-adf例程coze_ws_app出现以下报错,查看发现这是组件报错,该文件在esp-adf的components内,为什么会报错

Postby zzhzzhzzh » Mon Mar 02, 2026 12:28 pm

FAILED: esp-idf/espressif__gmf_app_utils/CMakeFiles/__idf_espressif__gmf_app_utils.dir/src/esp_gmf_app_setup_peripheral.c.obj
/home/zzh/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20251107/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.5.3-dirty\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DUNITY_INCLUDE_CONFIG_H -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/home/zzh/esp32/coze_ws_app/build/config -I/home/zzh/esp32/coze_ws_app/managed_components/espressif__gmf_app_utils/include -I/home/zzh/esp32/esp-idf/examples/common_components/protocol_examples_common/include -I/home/zzh/esp32/esp-idf/components/newlib/platform_include -I/home/zzh/esp32/esp-idf/components/freertos/config/include -I/home/zzh/esp32/esp-idf/components/freertos/config/include/freertos -I/home/zzh/esp32/esp-idf/components/freertos/config/xtensa/include -I/home/zzh/esp32/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/zzh/esp32/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/zzh/esp32/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos -I/home/zzh/esp32/esp-idf/components/freertos/esp_additions/include -I/home/zzh/esp32/esp-idf/components/esp_hw_support/include -I/home/zzh/esp32/esp-idf/components/esp_hw_support/include/soc -I/home/zzh/esp32/esp-idf/components/esp_hw_support/include/soc/esp32s3 -I/home/zzh/esp32/esp-idf/components/esp_hw_support/dma/include -I/home/zzh/esp32/esp-idf/components/esp_hw_support/ldo/include -I/home/zzh/esp32/esp-idf/components/esp_hw_support/debug_probe/include -I/home/zzh/esp32/esp-idf/components/esp_hw_support/mspi_timing_tuning/include -I/home/zzh/esp32/esp-idf/components/esp_hw_support/mspi_timing_tuning/tuning_scheme_impl/include -I/home/zzh/esp32/esp-idf/components/esp_hw_support/power_supply/include -I/home/zzh/esp32/esp-idf/components/esp_hw_support/port/esp32s3/. -I/home/zzh/esp32/esp-idf/components/esp_hw_support/port/esp32s3/include -I/home/zzh/esp32/esp-idf/components/esp_hw_support/mspi_timing_tuning/port/esp32s3/. -I/home/zzh/esp32/esp-idf/components/esp_hw_support/mspi_timing_tuning/port/esp32s3/include -I/home/zzh/esp32/esp-idf/components/heap/include -I/home/zzh/esp32/esp-idf/components/heap/tlsf -I/home/zzh/esp32/esp-idf/components/log/include -I/home/zzh/esp32/esp-idf/components/soc/include -I/home/zzh/esp32/esp-idf/components/soc/esp32s3 -I/home/zzh/esp32/esp-idf/components/soc/esp32s3/include -I/home/zzh/esp32/esp-idf/components/soc/esp32s3/register -I/home/zzh/esp32/esp-idf/components/hal/platform_port/include -I/home/zzh/esp32/esp-idf/components/hal/esp32s3/include -I/home/zzh/esp32/esp-idf/components/hal/include -I/home/zzh/esp32/esp-idf/components/esp_rom/include -I/home/zzh/esp32/esp-idf/components/esp_rom/esp32s3/include -I/home/zzh/esp32/esp-idf/components/esp_rom/esp32s3/include/esp32s3 -I/home/zzh/esp32/esp-idf/components/esp_rom/esp32s3 -I/home/zzh/esp32/esp-idf/components/esp_common/include -I/home/zzh/esp32/esp-idf/components/esp_system/include -I/home/zzh/esp32/esp-idf/components/esp_system/port/soc -I/home/zzh/esp32/esp-idf/components/esp_system/port/include/private -I/home/zzh/esp32/esp-idf/components/xtensa/esp32s3/include -I/home/zzh/esp32/esp-idf/components/xtensa/include -I/home/zzh/esp32/esp-idf/components/xtensa/deprecated_include -I/home/zzh/esp32/esp-idf/components/esp_timer/include -I/home/zzh/esp32/esp-idf/components/lwip/include -I/home/zzh/esp32/esp-idf/components/lwip/include/apps -I/home/zzh/esp32/esp-idf/components/lwip/include/apps/sntp -I/home/zzh/esp32/esp-idf/components/lwip/lwip/src/include -I/home/zzh/esp32/esp-idf/components/lwip/port/include -I/home/zzh/esp32/esp-idf/components/lwip/port/freertos/include -I/home/zzh/esp32/esp-idf/components/lwip/port/esp32xx/include -I/home/zzh/esp32/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/zzh/esp32/esp-idf/components/lwip/port/esp32xx/include/sys -I/home/zzh/esp32/esp-idf/components/sdmmc/include -I/home/zzh/esp32/esp-idf/components/fatfs/diskio -I/home/zzh/esp32/esp-idf/components/fatfs/src -I/home/zzh/esp32/esp-idf/components/fatfs/vfs -I/home/zzh/esp32/esp-idf/components/wear_levelling/include -I/home/zzh/esp32/esp-idf/components/esp_partition/include -I/home/zzh/esp32/esp-idf/components/esp_driver_sdmmc/include -I/home/zzh/esp32/esp-idf/components/esp_driver_gpio/include -I/home/zzh/esp32/esp-idf/components/esp_driver_sdspi/include -I/home/zzh/esp32/esp-idf/components/esp_driver_spi/include -I/home/zzh/esp32/esp-idf/components/esp_pm/include -I/home/zzh/esp32/esp-idf/components/nvs_flash/include -I/home/zzh/esp32/esp-idf/components/esp_driver_i2c/include -I/home/zzh/esp32/esp-idf/components/unity/include -I/home/zzh/esp32/esp-idf/components/unity/unity/src -I/home/zzh/esp32/coze_ws_app/managed_components/espressif__esp_board_manager -I/home/zzh/esp32/coze_ws_app/managed_components/espressif__esp_board_manager/include -I/home/zzh/esp32/coze_ws_app/managed_components/espressif__esp_board_manager/private_inc -I/home/zzh/esp32/esp-idf/components/driver/deprecated -I/home/zzh/esp32/esp-idf/components/driver/i2c/include -I/home/zzh/esp32/esp-idf/components/driver/touch_sensor/include -I/home/zzh/esp32/esp-idf/components/driver/twai/include -I/home/zzh/esp32/esp-idf/components/driver/touch_sensor/esp32s3/include -I/home/zzh/esp32/esp-idf/components/esp_ringbuf/include -I/home/zzh/esp32/esp-idf/components/esp_driver_pcnt/include -I/home/zzh/esp32/esp-idf/components/esp_driver_gptimer/include -I/home/zzh/esp32/esp-idf/components/esp_driver_mcpwm/include -I/home/zzh/esp32/esp-idf/components/esp_driver_ana_cmpr/include -I/home/zzh/esp32/esp-idf/components/esp_driver_i2s/include -I/home/zzh/esp32/esp-idf/components/esp_driver_sdio/include -I/home/zzh/esp32/esp-idf/components/esp_driver_dac/include -I/home/zzh/esp32/esp-idf/components/esp_driver_rmt/include -I/home/zzh/esp32/esp-idf/components/esp_driver_tsens/include -I/home/zzh/esp32/esp-idf/components/esp_driver_sdm/include -I/home/zzh/esp32/esp-idf/components/esp_driver_uart/include -I/home/zzh/esp32/esp-idf/components/vfs/include -I/home/zzh/esp32/esp-idf/components/esp_driver_ledc/include -I/home/zzh/esp32/esp-idf/components/esp_driver_parlio/include -I/home/zzh/esp32/esp-idf/components/esp_driver_usb_serial_jtag/include -I/home/zzh/esp32/esp-idf/components/esp_driver_twai/include -I/home/zzh/esp32/esp-idf/components/esp_lcd/include -I/home/zzh/esp32/esp-idf/components/esp_lcd/interface -I/home/zzh/esp32/esp-idf/components/esp_lcd/rgb/include -I/home/zzh/esp32/esp-idf/components/spiffs/include -I/home/zzh/esp32/esp-idf/components/esp_adc/include -I/home/zzh/esp32/esp-idf/components/esp_adc/interface -I/home/zzh/esp32/esp-idf/components/esp_adc/esp32s3/include -I/home/zzh/esp32/esp-idf/components/esp_adc/deprecated/include -I/home/zzh/esp32/coze_ws_app/managed_components/espressif__gmf_core/oal/include -I/home/zzh/esp32/coze_ws_app/managed_components/espressif__gmf_core/include -I/home/zzh/esp32/coze_ws_app/managed_components/espressif__gmf_core/data_bus/include -I/home/zzh/esp32/coze_ws_app/managed_components/espressif__gmf_core/helpers/include -I/home/zzh/esp32/esp-idf/components/esp_mm/include -I/home/zzh/esp32/esp-idf/components/esp_netif/include -I/home/zzh/esp32/esp-idf/components/esp_event/include -I/home/zzh/esp32/esp-idf/components/esp_wifi/include -I/home/zzh/esp32/esp-idf/components/esp_wifi/include/local -I/home/zzh/esp32/esp-idf/components/esp_wifi/wifi_apps/include -I/home/zzh/esp32/esp-idf/components/esp_wifi/wifi_apps/nan_app/include -I/home/zzh/esp32/esp-idf/components/esp_phy/include -I/home/zzh/esp32/esp-idf/components/esp_phy/esp32s3/include -I/home/zzh/esp32/esp-idf/components/console -I/home/zzh/esp32/esp-idf/components/esp_vfs_console/include -I/home/zzh/esp32/esp-idf/components/esp_eth/include -mlongcalls -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -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 -mdisable-hardware-atomics -O2 -fmacro-prefix-map=/home/zzh/esp32/coze_ws_app=. -fmacro-prefix-map=/home/zzh/esp32/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/espressif__gmf_app_utils/CMakeFiles/__idf_espressif__gmf_app_utils.dir/src/esp_gmf_app_setup_peripheral.c.obj -MF esp-idf/espressif__gmf_app_utils/CMakeFiles/__idf_espressif__gmf_app_utils.dir/src/esp_gmf_app_setup_peripheral.c.obj.d -o esp-idf/espressif__gmf_app_utils/CMakeFiles/__idf_espressif__gmf_app_utils.dir/src/esp_gmf_app_setup_peripheral.c.obj -c /home/zzh/esp32/coze_ws_app/managed_components/espressif__gmf_app_utils/src/esp_gmf_app_setup_peripheral.c
/home/zzh/esp32/coze_ws_app/managed_components/espressif__gmf_app_utils/src/esp_gmf_app_setup_peripheral.c:16:10: fatal error: esp_codec_dev.h: No such file or directory
16 | #include "esp_codec_dev.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
[12/82] Building C object esp-idf/espr...col_examples_common/wifi_connect.c.obj
ninja: build stopped: subcommand failed.
Compilation failed because esp_gmf_app_setup_peripheral.c (in "espressif__gmf_app_utils" component) includes esp_codec_dev.h, provided by espressif__esp_codec_dev component(s).
However, espressif__esp_codec_dev component(s) is not in the requirements list of "espressif__gmf_app_utils".
To fix this, add espressif__esp_codec_dev to PRIV_REQUIRES list of idf_component_register call in /home/zzh/esp32/coze_ws_app/managed_components/espressif__gmf_app_utils/CMakeLists.txt.
ninja failed with exit code 1, output of the command is in the /home/zzh/esp32/coze_ws_app/build/log/idf_py_stderr_output_29057 and /home/zzh/esp32/coze_ws_app/build/log/idf_py_stdout_output_29057

Who is online

Users browsing this forum: No registered users and 0 guests