Xinyuan-LilyGO / T-Watch-2021

MIT License
78 stars 18 forks source link

Adding User Interface with Squareline Studio to Platform IO project #14

Open Angelo904 opened 1 year ago

Angelo904 commented 1 year ago

Hi, I have opened the project with Platform IO and I am trying to load a new GUI that I have created with Squareline Studio. I export the UI files into the PIO project (.h files in the include folder, other files in the src folder, add "#include ui.h" and "ui_init()" to the "main.cpp" file) and build I get a lot of errors. Most errors are similar to these two:

In file included from src/ui_helpers.c:6: include/ui_helpers.h:6:22: warning: extra tokens at end of #ifndef directive

ifndef _MINDFULFACE V1_UI_HELPERS_H

In file included from src/ui_helpers.c:6: include/ui_helpers.h:18:27: error: unknown type name 'lv_obj_t' void _ui_bar_set_property(lv_obj_t * target, int id, int val);

I understand there might be a problem with dependencies, but can't find where it is.. Any idea? Angelo