Hello, I have a project which includes a local library like this:
#include <Mylib.h>
this is in my main.cpp. The library it self is being pulled from a dir specified in lib_extra_dir in pio ini.
This library gets included no problem. The issue is, that Mylib has a dependecy that it needs, and this dependency is not being included.
I followed this tutorial when creating the library Creating Library — PlatformIO latest documentation and just as it said, I created the library.json file like so:
{
"name": "Mylib",
"version": "1.0",
"description": "test",
"keywords": test
"authors":
[
{
"name": "Mike",
"email": "sd@sd.sd",
"maintainer": true
}
],
"license": "MIT",
"dependencies":
{
"rweather/Crypto" : "^0.2.0"
},
"frameworks": "Arduino",
"platforms": "*"
}
and placed it within the root directory of the Mylib library. But the dependency “rweather/Crypto” : “^0.2.0” is not being included for some reason.
If I specify this library in lib_deps in platformio.ini of my main project like so
lib_deps =
rweather/Crypto@^0.2.0
then it compiles fine and works, but that is just messy, since I would have to manually include all the dependencies of my libraries in the main project.
Why is the dependency not working?