p=C:/Espressif/frameworks/esp-adf/examples/advanced_examples/esp_dispatcher_dueros=. -fmacro-prefix-map=C:/Espressif/frameworks/esp-idf-v4.4.2=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.4.2-dirty\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/audio_setup.c.obj -MF esp-idf\main\CMakeFiles\__idf_main.dir\audio_setup.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/audio_setup.c.obj -c C:/Espressif/frameworks/esp-adf/examples/advanced_examples/esp_dispatcher_dueros/main/audio_setup.c
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:89: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:89:9: warning: incompatible implicit declaration of built-in function 'memcpy'
C:/Espressif/frameworks/esp-adf/components/audio_recorder/include/ch_sort.h:89: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:89:9:
memcpy(o_buf, i_buf, len);
^~~~~~
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
* 终端进程“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja ”已终止,退出代码: 1。
什么原因?怎么解决?
KORVO2 ADF esp_dispatcher_dueros 编译错误
Who is online
Users browsing this forum: No registered users and 73 guests