乐鑫技术交流
直播中

李斌

7年用户 1422经验值
私信 关注
[问答]

关于编译wake_word_detection程序的问题求解

板子使用的esp32-korvo-v1.1

在编译wake_word_detection这个程序的时候出现了cc1.exe: some warnings being treated as errors的错误,在stackoverflow上找到了解决方法,在makefile中加入CFLAGS = "-Wno-error"

CXXFLAGS = "-Wno-error"来忽略警告引起的错误,但是仍然不起作用,请问有什么解决方案

C:/Users/MSI/Desktop/esp-skainet-master/components/hardware_driver/boards/esp32-korvo/bsp_board.c:395:64: note: each undeclared identifier is reported only once for each function it appears in

At top level:

C:/Users/MSI/Desktop/esp-skainet-master/components/hardware_driver/boards/esp32-korvo/bsp_board.c:262:18: warning: 'bsp_i2s_deinit' defined but not used [-Wunused-function]

static esp_err_t bsp_i2s_deinit(i2s_port_t i2s_num)

^~~~~~~~~~~~~~

cc1.exe: some warnings being treated as errors

[979/988] Building C object esp-idf/player/CMakeFiles/__idf_player.dir/esp_skainet_player.c.obj

In file included from C:/Users/MSI/esp/esp-idf/components/freertos/include/freertos/semphr.h:35,

from C:/Users/MSI/esp/esp-idf/components/driver/include/driver/i2s.h:20,

from C:/Users/MSI/Desktop/esp-skainet-master/components/player/esp_skainet_player.c:8:

C:/Users/MSI/Desktop/esp-skainet-master/components/player/esp_skainet_player.c: In function 'esp_skainet_stream_in_task':

C:/Users/MSI/Desktop/esp-skainet-master/components/player/esp_skainet_player.c:93:31: warning: passing argument 1 of 'xQueueGenericSend' from incompatible pointer type [-Wincompatible-pointer-types]

xQueueSend(player->player_queue, buffer, portMAX_DELAY);

C:/Users/MSI/esp/esp-idf/components/freertos/include/freertos/queue.h:421:80: note: in definition of macro 'xQueueSend'

#define xQueueSend( xQueue, pvItemToQueue, xTicksToWait ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )

^~~~~~

C:/Users/MSI/esp/esp-idf/components/freertos/include/freertos/queue.h:572:45: note: expected 'QueueHandle_t' {aka 'struct QueueDefinition *'} but argument is of type 'struct RingBuf *' BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION;

~~~~~~~~~~~~~~^~~~~~

C:/Users/MSI/Desktop/esp-skainet-master/components/player/esp_skainet_player.c:94:31: warning: passing argument 1 of 'xQueueGenericSend' from incompatible pointer type [-Wincompatible-pointer-types]

xQueueSend(player->player_queue, buffer+player->frame_size, portMAX_DELAY);

C:/Users/MSI/esp/esp-idf/components/freertos/include/freertos/queue.h:421:80: note: in definition of macro 'xQueueSend'

#define xQueueSend( xQueue, pvItemToQueue, xTicksToWait ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )

^~~~~~

C:/Users/MSI/esp/esp-idf/components/freertos/include/freertos/queue.h:572:45: note: expected 'QueueHandle_t' {aka 'struct QueueDefinition *'} but argument is of type 'struct RingBuf *' BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION;

~~~~~~~~~~~~~~^~~~~~

C:/Users/MSI/Desktop/esp-skainet-master/components/player/esp_skainet_player.c:98:30: warning: passing argument 1 of 'xQueueGenericSend' from incompatible pointer type [-Wincompatible-pointer-types]

xQueueSend(player->player_queue, buffer, portMAX_DELAY);

C:/Users/MSI/esp/esp-idf/components/freertos/include/freertos/queue.h:421:80: note: in definition of macro 'xQueueSend'

更多回帖

发帖
×
20
完善资料,
赚取积分