From ef23e76e418a9e343ca5c7f2831ba2ad0b1ad601 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 20 Jul 2022 23:40:28 -0700 Subject: [PATCH 1/2] Correct library names in `depends` metadata field The `depends` field of the library.properties metadata field specifies the dependencies that should be installed along with the library by the Arduino Library Manager. While Arduino IDE 1.x is fairly lenient about the quality of the metadata, Arduino CLI (and thus the tools that use it such as Arduino IDE 2.x as well) is more strict. If any of the items in the field are not available from the Arduino Library Manager, installation fails: $ arduino-cli lib install M5Family Error installing M5Family: No valid dependencies solution found: dependency 'M5Unit-UHF-RFID' is not available This also applies to transitive dependencies: $ arduino-cli lib install M5Stack Error installing M5Stack: No valid dependencies solution found --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 52a2bc7..0cade6a 100644 --- a/library.properties +++ b/library.properties @@ -8,4 +8,4 @@ category=Device Control url=https://github.com/m5stack/M5Family architectures=esp32 includes=M5Family.h -depends=M5Unit-EXTIO2,M5Unit-ENV,M5Unit-ACSSR,M5Unit-KMeter,M5Unit-Encoder,M5Unit-MQTT,M5Unit-DDS,M5Unit-UHF-RFID,M5Unit-PoESP32,M5Unit-RTC,M5Hat-8Servos,M5-DLight,M5-RoverC,M5-ADS1115,M5-ADS1100,M5-FPC1020A,MODULE_4RELAY,MODULE_GRBL13.2,M5GFX,UNIT_4RELAY,ADXL345,FastLED,M5_BM8563,M5_BMM150,M5_FPC1020A,M5_EzData,UNIT_SONIC,PoE_CAM,M5_RoverC,UNIT_UHF_RFID,M5_JoyC,ATOM_DTU_CAT1,Adafruit MCP4725,Adafruit TCS34725,Adafruit NeoPixel,MAX30100lib,MFRC522_I2C,HX711 Arduino Library,PCA9554,TinyGPSPlus-ESP32,Adafruit SGP30 Sensor,FFT,TFTTerminal,ClosedCube TCA9548A,ArduinoJson,PubSubClient,TinyGSM,Ethernet2 \ No newline at end of file +depends=M5Unit-EXTIO2,M5Unit-ENV,M5Unit-ACSSR,M5Unit-KMeter,M5Unit-Encoder,M5Unit-MQTT,M5Unit-DDS,UNIT_UHF_RFID,M5Unit-PoESP32,M5Unit-RTC,M5Hat-8Servos,M5-DLight,M5-RoverC,M5-ADS1115,M5-ADS1100,MODULE_4RELAY,MODULE_GRBL13.2,M5GFX,UNIT_4RELAY,ADXL345,FastLED,M5_BM8563,M5_BMM150,M5_FPC1020A,M5_EzData,UNIT_SONIC,PoE_CAM,M5_RoverC,UNIT_UHF_RFID,M5_JoyC,ATOM_DTU_CAT1,Adafruit MCP4725,Adafruit TCS34725,Adafruit NeoPixel,MAX30100lib,MFRC522_I2C,HX711 Arduino Library,PCA9554,TinyGPSPlus-ESP32,Adafruit SGP30 Sensor,FFT,TFTTerminal,ClosedCube TCA9548A,ArduinoJson,PubSubClient,TinyGSM,Ethernet2 From 135445533c2c8aaf417d7b863672c101fd3aae85 Mon Sep 17 00:00:00 2001 From: Tinyu Date: Thu, 21 Jul 2022 19:00:34 +0800 Subject: [PATCH 2/2] Update library.properties --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 0cade6a..160a28d 100644 --- a/library.properties +++ b/library.properties @@ -8,4 +8,4 @@ category=Device Control url=https://github.com/m5stack/M5Family architectures=esp32 includes=M5Family.h -depends=M5Unit-EXTIO2,M5Unit-ENV,M5Unit-ACSSR,M5Unit-KMeter,M5Unit-Encoder,M5Unit-MQTT,M5Unit-DDS,UNIT_UHF_RFID,M5Unit-PoESP32,M5Unit-RTC,M5Hat-8Servos,M5-DLight,M5-RoverC,M5-ADS1115,M5-ADS1100,MODULE_4RELAY,MODULE_GRBL13.2,M5GFX,UNIT_4RELAY,ADXL345,FastLED,M5_BM8563,M5_BMM150,M5_FPC1020A,M5_EzData,UNIT_SONIC,PoE_CAM,M5_RoverC,UNIT_UHF_RFID,M5_JoyC,ATOM_DTU_CAT1,Adafruit MCP4725,Adafruit TCS34725,Adafruit NeoPixel,MAX30100lib,MFRC522_I2C,HX711 Arduino Library,PCA9554,TinyGPSPlus-ESP32,Adafruit SGP30 Sensor,FFT,TFTTerminal,ClosedCube TCA9548A,ArduinoJson,PubSubClient,TinyGSM,Ethernet2 +depends=M5Unit-EXTIO2,M5Unit-Sonic,M5Unit-ENV,M5Unit-ACSSR,M5Unit-KMeter,M5Unit-Encoder,M5Unit-MQTT,M5Unit-DDS,M5Unit-UHF-RFID,M5Unit-PoESP32,M5Unit-RTC,M5Hat-8Servos,M5-DLight,M5-RoverC,M5-ADS1115,M5-ADS1100,M5-FPC1020A,MODULE_4RELAY,MODULE_GRBL13.2,M5GFX,UNIT_4RELAY,ADXL345,FastLED,M5_BM8563,M5_BMM150,M5_FPC1020A,M5_EzData,UNIT_SONIC,PoE_CAM,M5_RoverC,UNIT_UHF_RFID,M5_JoyC,ATOM_DTU_CAT1,Adafruit MCP4725,Adafruit TCS34725,Adafruit NeoPixel,MAX30100lib,MFRC522_I2C,HX711 Arduino Library,PCA9554,TinyGPSPlus-ESP32,Adafruit SGP30 Sensor,FFT,TFTTerminal,ClosedCube TCA9548A,ArduinoJson,PubSubClient,TinyGSM,Ethernet2