Thanks for the help,
I made a mistake on the first post about the libraries folder structure, the correct one is:
librairies/
└── common/
├── utils.hpp
├── utils.cpp
└── library.json
test_project_a/
├── platfromio.ini
└── src/
└── main.cpp
test_project_b/
├── platfromio.ini
└── src/
└── main.cpp
I tried the following without success:
lib_extra_dirs = F:\my_absolute_path\librairies ;working
lib_extra_dirs = …\librairies ;not working
lib_extra_dirs = …/librairies ;not working
I’m on win10.
As the relative path is not working, maybe another solution would be using dynamic variables
Something like this is in the example on the dynamic variables pages but i can’t find a variable for current project folder like:
lib_extra_dirs = ${current_project_folder}..\libraries
Also, by looking at this thread
I tried the following without succes:
lib_extra_dirs = ..\..\librairies
I also tried putting my library “common” in my project lib/ folder, everything is working correctly in this case.