I have succesfully created a library named “common” with it’s library.json
I need to include this lib to multiple projects (test_project_a, test_project_b)
Are you on windows or linux? On my ubuntu it works with lib_extra_dirs = …/lib, try using …\libraries.
Or try changing your libraries structure to
librairies/
└── common/
└──utils/
├── utils.hpp
├── utils.cpp
└── library.json
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.