Thank your for the answer and the url to the docs. Somehow searching for the error did not give me the proper information. Both solutions work.
After fiddling around some more I discovered that the dependency finder finds the 2nd degree dependency libraries if the 1st degree dependency is included with a relative path. E.g. #include “…/…/TheLib/src/TheLib.h”. But not for libraries from the lib path. E.g. #include <TheLib.h>. SCons seems a little inconsistent here. See: GitHub - g3rb3n/TestPIODeps
Would it be an idea to include the lib_deps of the libraries in the dependency finder? This would not solve it for every lib, but at least for the libs written with a platformio.ini.
It could be. It’s not ideal. It would mean arbitrary includes of everything under lib.
I am creating a sort of broad starter template for a project with unit testing. Sort of like the unit testing examples, but with some additional things I’d like to have in bootstrapping a project. So, I was trying for a general solution.
If this is the recommended solution, then I suppose I will just put those includes in the main.cpp with a note as to why they are included. I guess this is better than getting those warnings.