Long story short: I tried to add a .h and .cpp file for a new device (just for a new display) with ifdef LILYGO_WATCH_2020_V1. So i added a build flag -D LILYGO_WATCH_2020_V1=1 in platformio.ini
Is this kind of integration right? Am i supposed to do it that way with platformio?
Maybe thats my problem…
I compiled it serveral times so i got it working for the TTGO smartwatch (see commits history). Today i tried to build it and its not working anymore:
I tried to delete .pio or libdeps. Seems like it doest re-download the needed libraries while building… now i have project copys with the same codebase but some compile and others not…
Where is the modified version of the repo? The project builds fine for my end. Without seeinig the exact code and platformio.ini additions it’s hard to help.
Well thats the problem… this repo / branch is my current codebase. I asked my colleague and my branch builds fine for him too. (seems like the codebase is ok…)
I deleted the hole local git project and cloned it -> same errors
As i mentioned before, i got these errors while coding and testing… now i can’t get rid of them
Could it be that platformio have some issues with clean project management or caching?
.pio\libdeps\ttgo-t-watch\TTGO TWatch Library\src\libraries\GxEPD\src../…/U8g2_for_Adafruit_GFX/src/…/…/TFT_eSPI/Fonts/GFXFF/GFXFF.h:22:76: fatal error: …/…/…/Adafruit-GFX-Library/Fonts/FreeMonoBoldOblique12pt7b.h: No such file or directory
A problem I do see however that paths are getting very long. And since Windows has a limit of the path length since it’s from the stoneage, that might be a problem. Does it help when you move the project root folder to a shorter, path, e.g. C:\project? Or alternatively, can you enable long paths?
Such things may need a reboot. But great that it works now
Since I opened it 2h ago it’ll take some time but such a minor fix should be accepted pretty soon… can potentially also be done in the platformio.ini with some build_unflags = -DARDUINO_T-Watch and build_flags = -DARDUINO_TWatch directives, or fixing the board JSON file locally. But as said, it’s a minor thing.