KEITHSDR icon indicating copy to clipboard operation
KEITHSDR copied to clipboard

glcdfonts dupe problem for RA8875 and RA8876

Open K7MDL2 opened this issue 2 years ago • 1 comments

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.

K7MDL2 avatar Nov 25 '22 22:11 K7MDL2

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[];

K7MDL2 avatar Dec 02 '23 18:12 K7MDL2