mbed-os libraries have insufficient library.json
generated, causing many to not work
#3957
Closed
1 task done
What kind of issue is this?
If you’ve found a bug, please provide an information below.
Configuration
Operating system: Win10 x64
PlatformIO Version (
platformio --version
):version 5.2.0a6
Description of problem
Per community topic and following.
The mbed-os libraries available in the PlatformIO library registry have, when downloaded, as seemingly auto-generated
library.json
in them. Take e.g. the X_NUCLEO_COMMON library.The folder structure of this library is
Notice that it has all the header files in individual subfolders.
The
library.json
of this library isHowever, as you can see the
library.json
file does not have build flags option to include those subdirectories in which the actual library headers are.Other libraries refer to this library as
(see e.g. HTS221 library) and thus will throw an error during compilation abotu the file not being found.
Steps to Reproduce
platformio.ini
and code from belowActual Results
Compilation failure, header file not found.
Expected Results
The
library.json
correctly contains the build flags options to include all code subdirectories (while of course still ignoring directories liketest/
) so that the libraries header files are correctly found.If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
Manually fixed
platformio.ini
The text was updated successfully, but these errors were encountered: