Page 1 of 1

KORVO2 ADF esp_dispatcher_dueros 编译错误

Posted: Thu Sep 22, 2022 11:08 am
by sunway
设置编译ESP32S3 开发板是KORVO2编译时出现下面错误信息。

In file included from C:/Espressif/frameworks/esp-adf/components/audio_recorder/include/recorder_sr.h:32,
from C:/Espressif/frameworks/esp-adf/examples/advanced_examples/esp_dispatcher_dueros/main/audio_setup.c:52:
C:/Espressif/frameworks/esp-adf/components/audio_recorder/include/ch_sort.h: In function 'ch_sort_16bit_2ch':
C:/Espressif/frameworks/esp-adf/components/audio_recorder/include/ch_sort.h:88:9: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]
memcpy(o_buf, i_buf, len);
^~~~~~
C:/Espressif/frameworks/esp-adf/components/audio_recorder/include/ch_sort.h:88:9: warning: incompatible implicit declaration of built-in function 'memcpy'
C:/Espressif/frameworks/esp-adf/components/audio_recorder/include/ch_sort.h:88:9: note: include '<string.h>' or provide a declaration of 'memcpy'
C:/Espressif/frameworks/esp-adf/components/audio_recorder/include/ch_sort.h:1:1:
+#include <string.h>
/*
C:/Espressif/frameworks/esp-adf/components/audio_recorder/include/ch_sort.h:88:9:
memcpy(o_buf, i_buf, len);
^~~~~~
cc1.exe: some warnings being treated as errors
[1385/1442] Building C object esp-idf/wifi_service/CMakeFiles/__idf_wifi_service.dir/blufi_config/blufi_config.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1


什么原因,怎么解决。