On firmware 1.14.1, building waveshare_rp2040_lora_companion_radio_usb failed because PlatformIO included unnecessary BLE and WiFi dependencies.
The issue was fixed by adding this to platformio.ini(add lib_ignore):
[env:waveshare_rp2040_lora_companion_radio_usb]
extends = waveshare_rp2040_lora
build_flags = ${waveshare_rp2040_lora.build_flags}
-D MAX_CONTACTS=100
-D MAX_GROUP_CHANNELS=8
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
build_src_filter = ${waveshare_rp2040_lora.build_src_filter}
+<../examples/companion_radio/*.cpp>
lib_deps = ${waveshare_rp2040_lora.lib_deps}
densaugeo/base64 @ ~1.4.0
lib_ignore =
BLE
WiFi