GUIslice: Error while trying to use GUIslice with IL9486
Describe the bug Every time I try to compile any of the examples I get this error:
C:\Users\admin\Documents\Arduino\libraries\GUIslice\src\GUIslice_drv_adagfx.cpp: In function ‘bool gslc_DrvGetTxtSize(gslc_tsGui*, gslc_tsFont*, const char*, gslc_teTxtFlags, int16_t*, int16_t*, uint16_t*, uint16_t*)’:
C:\Users\admin\Documents\Arduino\libraries\GUIslice\src\GUIslice_drv_adagfx.cpp:1011:21: error: ‘sFONT’ was not declared in this scope
m_disp.setFont((sFONT*)(pFont->pvFont));
^~~~~
C:\Users\admin\Documents\Arduino\libraries\GUIslice\src\GUIslice_drv_adagfx.cpp:1011:27: error: expected primary-expression before ‘)’ token
m_disp.setFont((sFONT*)(pFont->pvFont));
^
C:\Users\admin\Documents\Arduino\libraries\GUIslice\src\GUIslice_drv_adagfx.cpp: In function ‘bool gslc_DrvDrawTxt(gslc_tsGui*, int16_t, int16_t, gslc_tsFont*, const char*, gslc_teTxtFlags, gslc_tsColor, gslc_tsColor)’:
C:\Users\admin\Documents\Arduino\libraries\GUIslice\src\GUIslice_drv_adagfx.cpp:1104:19: error: ‘sFONT’ was not declared in this scope
m_disp.setFont((sFONT*)(pFont->pvFont));
^~~~~
C:\Users\admin\Documents\Arduino\libraries\GUIslice\src\GUIslice_drv_adagfx.cpp:1104:25: error: expected primary-expression before ‘)’ token
m_disp.setFont((sFONT*)(pFont->pvFont));
^
exit status 1 Error compiling for board Arduino Mega or Mega 2560.
To Reproduce TRy to compile any of the examples using the attached config files
Expected behavior A clear and concise description of what you expected to happen. Compiler runs clear of erros
Crash log / Project files If you experienced a crash, please attach the following to help us diagnose the cause:
- Attach a ZIP file containing the project folder including the
*.prj
and*.ino
or*.c
and*.ino.bak
.
Version
- Builder version: 0.14b004
- OS: Windows 10
Additional context Add any other context about the problem here.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (10 by maintainers)
Hi @jmmacip – that particular code was fixed in version v0.14.0.2 (https://github.com/ImpulseAdventure/GUIslice/commit/12810551ca770c05bf3ee507f591a3f79dc49559).
Please note that I was recommending that you update to the latest version on GitHub (see instructions here). The latest version on GitHub (eg 0.14.0.19) is newer and has some additional fixes that are not yet available via the Arduino IDE release (0.14.0). Soon, a new release will be made into the Arduino IDE (ie. 0.14.1) that will contain the roll-up of everything in the current development branch.
If you can re-check that you are indeed using the latest from GitHub, that would be great.
thanks!