Skip to content

Conflicts on fonts[] definition with EEZ Studio 0.26.2 and LovyanGFX 1.2.19 #945

@bmedici

Description

@bmedici

Describe the bug

*** [.pio/build/dev/lib617/vanbox-display/controllers/display.cpp.o] Error 1
In file included from project/src/widgets/number.h:9,
                 from project/src/views/home/home_pos.h:10,
                 from project/src/views/home/home_pos.cpp:15:
project/src/ui/fonts.h: At global scope:
project/src/ui/fonts.h:40:30: error: 'ext_font_desc_t fonts []' redeclared as different kind of symbol
 extern ext_font_desc_t fonts[];
                              ^
In file included from lib/LovyanGFX-1.2.19/src/lgfx/v1/LGFXBase.hpp:32,
                 from lib/LovyanGFX-1.2.19/src/lgfx/v1_init.hpp:27,
                 from lib/LovyanGFX-1.2.19/src/LovyanGFX.hpp:25,
                 from project/src/views/home/home_pos.cpp:10:
lib/LovyanGFX-1.2.19/src/lgfx/v1/lgfx_fonts.hpp:492:11: note: previous declaration 'namespace fonts { }'
 namespace fonts
           ^~~~~

To Reproduce
Export a UI with EEZ Studio 0.26.2 and LovyanGFX 1.2.19

Expected behavior
LovyanGFX should namespace its namespaces or... we coulduse a namespace for EEZ files export, or just rename the fonts[] array generated in ui files with a more eez_* prefixed array.

LVGL version (if used)

  • 8.4.2

Additional context
EEZ Studio 0.26.2
LovyanGFX 1.2.19

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions