板子使用的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'
关于编译wake_word_detection程序的问题
-
- Posts: 47
- Joined: Mon Dec 10, 2018 10:55 am
Re: 关于编译wake_word_detection程序的问题
Duplicate to issue on Github: https://github.com/espressif/esp-skaine ... 1012344608
Who is online
Users browsing this forum: No registered users and 11 guests