henriwoodcock/pico-wake-word

The Building process generating uf2 file works well, as the error info exists.

dty717 opened this issue · 0 comments

dty717 commented
[ 83%] Building C object lib/pico-microphone/examples/usb_microphone/CMakeFiles/usb_microphone.dir/main.c.obj
In file included from C:\Users\18751\Desktop\work\Electronics\rasberrayPi\pico\pico-sdk\lib\tinyusb\src/tusb.h:80,
                 from C:\Users\18751\Desktop\work\Electronics\rasberrayPi\pico\project\pico-wake-word\lib\pico-microphone\examples\usb_microphone\usb_microphone.h:11,
                 from C:\Users\18751\Desktop\work\Electronics\rasberrayPi\pico\project\pico-wake-word\lib\pico-microphone\examples\usb_microphone\main.c:17:
C:\Users\18751\Desktop\work\Electronics\rasberrayPi\pico\pico-sdk\lib\tinyusb\src/class/audio/audio_device.h:40:2: error: #error You must tell the driver the length of the audio function descriptor including IAD descriptor
   40 | #error You must tell the driver the length of the audio function descriptor including IAD descriptor
      |  ^~~~~
In file included from C:\Users\18751\Desktop\work\Electronics\rasberrayPi\pico\pico-sdk\lib\tinyusb\src/tusb.h:80,
                 from C:\Users\18751\Desktop\work\Electronics\rasberrayPi\pico\project\pico-wake-word\lib\pico-microphone\examples\usb_microphone\usb_microphone.h:11,
                 from C:\Users\18751\Desktop\work\Electronics\rasberrayPi\pico\project\pico-wake-word\lib\pico-microphone\examples\usb_microphone\main.c:17:
C:\Users\18751\Desktop\work\Electronics\rasberrayPi\pico\pico-sdk\lib\tinyusb\src/class/audio/audio_device.h:55:2: error: #error You must tell the driver the number of Standard AS Interface Descriptors you have defined in the audio function descriptor!
   55 | #error You must tell the driver the number of Standard AS Interface Descriptors you have defined in the audio function descriptor!
      |  ^~~~~
C:\Users\18751\Desktop\work\Electronics\rasberrayPi\pico\pico-sdk\lib\tinyusb\src/class/audio/audio_device.h:70:2: error: #error You must define an audio class control request buffer size!
   70 | #error You must define an audio class control request buffer size!
      |  ^~~~~
make[2]: *** [lib/pico-microphone/examples/usb_microphone/CMakeFiles/usb_microphone.dir/main.c.obj] error 1
make[1]: *** [lib/pico-microphone/examples/usb_microphone/CMakeFiles/usb_microphone.dir/all] error 2
make: *** [all] error 2

The environment is Windows 11.
Using cmake -G "MinGW Makefiles" .. to Generate the Makefiles.