How I understand it now:
-
lib_deps
specifies the libs to be downloaded - the libs have a config specifying what platforms/frameworks they are compatible with
-
lib_compat_mode
specifies how strict should be LDF to include the already downloaded libs
Da fk.
Why would anyone want to download the lib if it cannot be used later anyway?
The WTF I stumbled upon right now:
lib_deps: https://github.com/bblanchon/ArduinoJson.git#5.x
- Cool, the dependency is downloaded, everything compiles, nice.
-
#include "ArduinoJson.h"
– KABOOM, header not found, WTF. - Search the docs, pull your hairs out ??
-
ArduinoJson/library.json at 5.x · bblanchon/ArduinoJson · GitHub – requires
Arduino
framework – I’m trying to use it onnative
platform, withoutArduino
framework - Now the 2 choices:
- a.)
lib_compat_mode: off
– will allow forArduinoJson.h
to be included - b.) it would not work anyway, as it really requires Arduino fw, so my time was just wasted
How it should be (IMHO):
lib_deps: https://github.com/bblanchon/ArduinoJson.git#5.x
- KABOOM → the lib is not compatible with my platform/framework settings
- No time wasted, thank you very much
What would be the use case to include an incompatible lib anyway o.O
Should I make an issue on GH or am I wrong in here?