KEITHSDR
KEITHSDR copied to clipboard
glcdfonts dupe problem for RA8875 and RA8876
A long standing problem I get is duplicate glcdfont array definition errors. I believe this comes from the array being defined in the glcdfont.c RA8875 library file and also various included ILI9488_t3 and IL9341_t3 libraries which are included to leverage some fonts. I work around this by renaming glcdfont.c in the ili9488_t3/src lib folder to something else like glcdfont.c.unused.
With the new Arduino IDE 2.0.2 compiling for RA8876 I get dupes for _font_ComicSansMS in IL9488_t3 and RA8876_t3 folders. Renaming the 2 _font_ComicSansMS files.x to _font_ComicSansMS.x.unused in the ILI9488_t3 lib removes those errors.
Eventually will fix this with suitable fonts not requiring ILI9*** libs and make this issue go away.
Another way I fix this is to open the ILI9488_t3.cpp source file and at line #1983 I uncomment the #include glcdfont.c and comment out the inline function below it.
#include "glcdfont.c" //extern "C" const unsigned char glcdfont[];