完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
板子使用的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' |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
168个成员聚集在这个小组
加入小组1153 浏览 1 评论
584浏览 6评论
480浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
465浏览 5评论
466浏览 4评论
441浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 01:16 , Processed in 0.728810 second(s), Total 80, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号