I am trying to build code using the Arduino-CMake-Toolchain, which relies on the library.properties
file to recognize and include libraries. However, I have encountered an issue where some core libraries for the Renesas target do not have a library.properties
file, and as a result, errors occur during the build process. Could anyone explain why some libraries are missing this file, or how I can work around this issue?
Hi @shyguunn.
The library.properties
file is optional:
https://arduino.github.io/arduino-cli/latest/library-specification/#old-library-format-pre-15
The developers of the Renesas boards platform simply didn't bother to create the file in some of the libraries.
I don't have any experience using the "Arduino-CMake-Toolchain". Maybe one of the other forum helpers can provide better advice on this. The best solution would be to add support for the 1.0 library format to Arduino-CMake-Toolchain. If that isn't feasible, you can add library.properties
files to the libraries that don't have one. The file's format is documented here:
https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format
You probably don't need to worry too much about the contents of the files. I'm guessing that, for "Arduino-CMake-Toolchain", the most important thing is only for a file of that name to be present in the library.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.