You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried to consume the library thru PlatformIO IDE and had some issues building the library as-is.
I have very little experience with PlatofrmIO but I assumed it should work out of the box.
Is the library.json file for use only by the PlatformIO? or have another purpose in life?
After changing it a bit, I could build the library:
without the includeDir, I couldn't include the library
without the srcDir, PlatoformIO try to build also the dev folder
the last bit, which I found helpful, is adding another include folder (-I) so I can place the options header, lwprintf_opts.h, in a project folder and not inside the library itself.
The text was updated successfully, but these errors were encountered:
I have some concerns about the included path for the option header, lwprintf_opts.h:
in the sample above I used relative path '-I../../include'.
This path can be different if you use manual clone into the lib folder versus automatic install of the library using the lib_deps = majerle/LwPRINTF@^1.0.3 in platformio.ini.
one option is just to leave it for the user to set up a global include folder thru platformio.ini.
another option is using an absolute path. e.g -I$PROJECT_INCLUDE_DIR, -I$PROJECT_DIR/<some folder>
Hi Tilen,
I am not sure this is an issue, but still...
Tried to consume the library thru PlatformIO IDE and had some issues building the library as-is.
I have very little experience with PlatofrmIO but I assumed it should work out of the box.
Is the
library.json
file for use only by the PlatformIO? or have another purpose in life?After changing it a bit, I could build the library:
without the
includeDir
, I couldn't include the librarywithout the
srcDir
, PlatoformIO try to build also thedev
folderthe last bit, which I found helpful, is adding another include folder (
-I
) so I can place the options header,lwprintf_opts.h
, in a project folder and not inside the library itself.The text was updated successfully, but these errors were encountered: