Open g7kse opened 1 year ago
Hi, same error here. :(
Hi @SpaceTeddy @g7kse, I managed to solve the problems by declaring explicit path of the lv_conf.h. Please see the picture below:
Hope you find it helpful, Thanks!
Its still a full on complain from my system. There must be some other issues with paths in there somewhere.
I'd pretty much given up on this before so thanks for the clarification.
lvgl uses some weird automatic to find the lv_conf.h include.
I also use a manual definition:
build_flags =
-DBOARD_HAS_PSRAM
-DLV_CONF_PATH=${platformio.include_dir}/lv_conf.h
-DASYNCWEBSERVER_REGEX
-DTRGB_ROUND
I had the same error, but was able to do it by manually writing the path. I will say though, that at first, even though I fully wrote out the path, it was being truncated and STILL couldn't find the file. So I went ahead and moved the file into c:/users/me/ directory and manually wrote that in, and THEN it was able to compile. I don't think I had any other issues that I can recall, but I'll be happy to help if you're still unable to compile it. I would also note that in your output, you're only doing a run and not a run upload.
For me the issue seemed to be with the macro replacement in the line:
-DLV_CONF_PATH=${platformio.include_dir}/lv_conf.h
was getting replaced by C:UsersMikeDocumentsvscode-projectsTRGB-exampleinclude/lv_conf.h and was missing all of the slashes The solution was to replace ${platformio.include_dir} with the full path
-DLV_CONF_PATH=C:/Users/Mike/Documents/vscode-projects/TRGB-example/include/lv_conf.h
EDIT: also note that PlatformIO did not seem to like a directory paths with spaces in it, I originally had the projects folder named "vscode projects" but the macro seemed to stop at the space and would get replaced by "C:UsersMikeDocumentsvscode" still no slashes but it did show that there is and issue with spaces in the path as well.
I'm pretty sure its something I've done as I'm not familiar with PlatformIO. But, I thought I faithfully followed the instructions but it looks like I've come unstuck here and after a bit of going round in circles I thought I'd check the instructions.Particularly around the lv_conf.h note in issue#1
Screen looks a bit like this...
I would appreciate a bit of guidance to help cure the problems. Terminal output seems to have a few errors.
Looks o me that DateTime library and lvgl libraries are not being pulled in. I did add them to the .ini but that didn't fix it entirely but did get rid of a couple.
for reference I used this modified ini file
The leftover errors are:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/home/alex/Documents/PlatformIO/Projects/TRGB Clock/src/main.cpp).
and
cannot open source file "../../lv_conf.h" (dependency of "TRGBSuppport.h")
The full output from the terminal is: