Well, thank you, but there was no problem in compiling itself. My project with previous platformio.ini and even with the main file blink.cpp placed in root of the project instead of /src has compiled very well (I have set the PLATFORMIO_SRC_DIR environment variable to project root, that is why no src subfolder is needed).
The problem relates to Library Manager, which downloads and stores BlynkNcpDriver and OneWire libraries into /.pio/libdeps, even if the blink.cpp does not require (include) them at all!
And this beahviour applies to your version of the project too!
Hi, sorry for the delay, but no change. But the issue is not related to the /src folder location. Even if I remove all environment variables or install a brand new VSCode portable, still the same result: Library Manager downloads and stores BlynkNcpDriver and OneWire libraries into /.pio/libdeps…
I have tried to delete all files in .platformio folder more times already. The result is still the same.
My idea is, that downloading the 2 libraries by Library Manager is somehow related to what ESP8266 core requires…
Well, it is clear now: The described behaviour is caused by setting the PLATFORMIO_LIB_DIR environment variable. Without it, no libdeps are downloaded by Library Manager.
I wanted to use the PLATFORMIO_LIB_DIR environment variable to tell Platformio, where is the folder, where all Arduino related libraries, even my own custom libraries, are stored.
For example, I have a Utils.h library to be used accross all my IoT projects for any platform or board. Another example is Blynk.h etc. I know, however, that such a sharing of libraries is againts Platformio startegy…
Is there any other way to tell Platformio, where all my libraries are? Another reason is, that I share the libraries with Arduino CLI installation, which is used only as a backup or from legacy purposes.
Thanks fo help.
I start to feel realy crazy or stupid
This is the line in platformio.ini: symlink://D:/Dropbox/Arduino/sketch/libraries/_MiB
And here is the library.json:
Yes, Utils.h is a file in .../_MiB/includes and the repo is private, thus not visible to you. But it should not matter, as I try to point Platformio to a local file.
I mean, is it really so complicated to include my local *.h file into my project and share it with my other projects in Platformio?
It is a bit frustrating to me, when I need to bother you with such a basics…
And no docs helped so far either.
Sorry, for that.