microReticulum icon indicating copy to clipboard operation
microReticulum copied to clipboard

Missing build dependencies: Crypto and ArduinoJson not declared

Open Giak88 opened this issue 3 months ago • 2 comments

Building any target from a clean checkout fails twice on undeclared dependencies.

1. CryptoLegacy provides CBC/CFB/OFB/SHA1, whose base classes Cipher and Hash live in the separate Crypto package. Only attermann/arduinolibs is declared, so the build fails with fatal error: Cipher.h: No such file or directory.

2. microReticulum/Bytes.h includes <ArduinoJson.h>, which is not declared either — fatal error: ArduinoJson.h: No such file or directory.

Adding both to lib_deps resolves it:

lib_deps =
    ${env.lib_deps}
    https://github.com/attermann/Crypto.git
    bblanchon/ArduinoJson@^7.0.0

ArduinoJson 7 works — the code does not use the removed StaticJsonDocument/DynamicJsonDocument API.

Giak88 avatar Aug 10 '26 10:08 Giak88

The fork you are using where this occurs is more than 401 commits behind Atterman's microReticulum master branch. Maybe try checking that before opening an issue.

RFnexus avatar Aug 21 '26 10:08 RFnexus

Fixed upstream: library.json now declares ArduinoJson, MsgPack, Crypto and microStore, and microReticulum_Firmware inherits them in [env] lib_deps. Builds from a clean checkout work. Closing.

Giak88 avatar Nov 13 '26 10:11 Giak88