下载编译usb_cdc_4g_module示例报usb_print_config_descriptor 错

njbinbin
Posts: 2
Joined: Fri May 20, 2022 8:29 pm

下载编译usb_cdc_4g_module示例报usb_print_config_descriptor 错

Postby njbinbin » Fri May 20, 2022 8:34 pm

D:/_______________________PROJECTS/ESP_PRJs/esp-iot-solution/components/usb/uvc_stream/uvc_stream.c: In function '_usb_get_dev_desc':
D:/_______________________PROJECTS/ESP_PRJs/esp-iot-solution/components/usb/uvc_stream/uvc_stream.c:833:5: error: implicit declaration of function 'usb_print_device_descriptor'; did you mean 'usb_print_descriptors'? [-Werror=implicit-function-declaration]
usb_print_device_descriptor(dev_desc);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
usb_print_descriptors
D:/_______________________PROJECTS/ESP_PRJs/esp-iot-solution/components/usb/uvc_stream/uvc_stream.c: In function '_usb_get_config_desc':
D:/_______________________PROJECTS/ESP_PRJs/esp-iot-solution/components/usb/uvc_stream/uvc_stream.c:885:5: error: implicit declaration of function 'usb_print_config_descriptor'; did you mean 'usb_print_descriptors'? [-Werror=implicit-function-declaration]
usb_print_config_descriptor(cfg_desc, _print_uvc_class_descriptors_cb);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
usb_print_descriptors
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja ”已终止,退出代码: 1。

使用的是VS CODE 插件,源码是直接从github上git clone -b usb/add_usb_solutions --recursive https://github.com/espressif/esp-iot-solution

ESP_Yake
Posts: 109
Joined: Mon Mar 06, 2017 12:23 pm

Re: 下载编译usb_cdc_4g_module示例报usb_print_config_descriptor 错

Postby ESP_Yake » Wed May 25, 2022 8:01 am

Hi,
这里应该是不同版本的兼容性问题,可以先把出错的这几个地方注释掉,这里只是打印信息。我们后面对做修复

ESP_Bob
Posts: 80
Joined: Fri Nov 27, 2020 12:52 pm

Re: 下载编译usb_cdc_4g_module示例报usb_print_config_descriptor 错

Postby ESP_Bob » Fri Sep 30, 2022 4:14 am

Seems you are using a old version IDF, Please update your IDF to v4.4.1 or above version

Who is online

Users browsing this forum: No registered users and 29 guests