Is there an uptodate documentaion or tutorial on the definitive way to store private libs and share with all my projects. There seems to be so many confilicting advice on the forum ans im not sure what is the best method.
I have tried lib_extra_dirs which i note is depreciated. i have tried Symbolic link lib_deps = FooLib=symlink://../../shared-libraries/FooLib but non are working.
At the moment all i want to do is set up a project config template which i can share with all my projects.
ProjConfig.h and ProjConfig.cpp
It shouldnt be this hard.
A tutorial with all the pit falls would be awesome.
Ok ihave got it to work but still believe a turotial is needed. There is quite a few pit falls and gotchas.
This is what I did.:
I set a up a folder structure as follows: C:\MyLibs\TestLib
In folder TestLib i placed header and source files. TestLib.h and TestLib.cpp
In my project platfomio.ini lib_deps section i added. TestLib=symlink://C:/MyLibs/TestLib
(Note the syntax, they are forward slashes. Tip, get the directory path out of your browser).
Now Build and you will most likley get this error.
Processing portenta_h7_m7 (platform: ststm32; board: portenta_h7_m7; framework: arduino) Error: Could not find one of 'library.json, library.properties, module.json' manifest files in the package
This is because you need a manifest file in the folder as well. i grabed library.properties from another library package file then put it into my TestLib folder, and edited as follows.
(BTW: is this a bad thing to do? will it cause futher problems? please let me know).
If you have done this perfectly and keep getting Error: Could not find one of 'library.json, library.properties, module.json' manifest files in the package
the only way i could find to fix this was edit .pio\libdeps\portenta_h7_m7\TestLib.pio-link
for some reason it kept getting stuck here.