DisplayCore Widgets.h problem

Asked by ntronics at 12:01 on 11 Sep 2017.

Hi Matt, could you clarify if Widgets component of the DisplayCore library supports displays other than Picadillo? UECIDE show a very long list of errors after including Widgets.h into the sketch built for IL9341 + XPT2046:

• Error at line 38 in file TFT.h: ? conflicting declaration 'typedef struct FontHeader FontHeader' • Error at line 24 in file DisplayCore.h: ? 'FontHeader' has a previous declaration as 'typedef struct FontHeader FontHeader' • Error at line 40 in file TFT.h: ? redefinition of 'struct coord' • Error at line 26 in file DisplayCore.h: ? previous definition of 'struct coord' • Error at line 49 in file TFT.h: ? conflicting declaration 'typedef struct point3d point3d' • Error at line 31 in file DisplayCore.h: ? 'class point3d' has a previous declaration as 'class point3d' • Error at line 60 in file TFT.h: ? conflicting declaration 'typedef struct Color565 Color565' • Error at line 112 in file DisplayCore.h: ? 'Color565' has a previous declaration as 'typedef struct Color565 Color565' • Error at line 8 in file Image.h: ? redefinition of 'class Image' • Error at line 512 in file DisplayCore.h: ? previous definition of 'class Image' • Error at line 21 in file DOGMe.h: ? conflicting return type specified for 'virtual void DOGMe::write(uint8_t)' • Error at line 200 in file TFT.h: ? overriding 'virtual size_t TFT::write(uint8_t)' • Error at line 55 in file PICadillo35t.h: ? 'alwaysinline' attribute directive ignored [-Wattributes] • Error at line 56 in file PICadillo35t.h: ? 'alwaysinline' attribute directive ignored [-Wattributes] • Error at line 11 in file Touch.h: ? redefinition of 'class Touch' • Error at line 427 in file DisplayCore.h: ? previous definition of 'class Touch' • Error at line 13 in file AnalogTouch.h: ? conflicting return type specified for 'virtual uint16_t AnalogTouch::x()' • Error at line 444 in file DisplayCore.h: ? overriding 'virtual int Touch::x()' • Error at line 14 in file AnalogTouch.h: ? conflicting return type specified for 'virtual uint16_t AnalogTouch::y()' • Error at line 449 in file DisplayCore.h: ? overriding 'virtual int Touch::y()' • Error at line 24 in file AnalogTouch.h: ? conflicting return type specified for 'virtual uint16_t AnalogTouch::pressure()' • Error at line 465 in file DisplayCore.h: ? overriding 'virtual int Touch::pressure()' • Error at line 8 in file Filter.h: ? redefinition of 'class Filter' • Error at line 500 in file DisplayCore.h: ? previous definition of 'class Filter' • Error at line 6 in file Widgets.h: ? redefinition of 'class Widget' • Error at line 572 in file DisplayCore.h: ? previous definition of 'class Widget' • Error at line 22 in file twButton.h: ? conflicting return type specified for 'virtual boolean twButton::render()' • Error at line 622 in file DisplayCore.h: ? overriding 'virtual void Widget::render()' • Error at line 20 in file twButton.h: ? no matching function for call to 'Widget::Widget(TFT&, Touch&, int16_t&, int16_t&, int16_t&, int16_t&)' • Error at line 19 in file twHBar.h: ? conflicting return type specified for 'virtual boolean twHBar::render()' • Error at line 622 in file DisplayCore.h: ? overriding 'virtual void Widget::render()' • Error at line 17 in file twHBar.h: ? no matching function for call to 'Widget::Widget(TFT&, Touch&, int16_t&, int16_t&, int16_t&, int16_t&)' Compiling Failed

Sign up or log in for live updates and to post messages.

TFT.h ...?

Do you have the ancient (and broken) TFT library installed as well as DisplayCore?

Posted 11 Sep 2017, 12:08, 0 votes
matt
Rating: 3

Yes Arduino TFT Library was installed on my machine. However the sketch fails to compile even after TFT.h un-installation.

Posted 11 Sep 2017, 12:18, 0 votes
ntronics
Rating: 0

I can see that TFT.h is included in that .sar file. I cant understand where is it getting it from.

Posted 11 Sep 2017, 12:23, 0 votes
ntronics
Rating: 0

I wrote a library called TFT before DisplayCore (it's what I based DisplayCore on). You have that installed somewhere and it needs deleting.

Posted 11 Sep 2017, 12:25, 0 votes
matt
Rating: 3

Found it, it was located in the default Libraries folder. I must have experimented with TFT.h ages ago and forgot about it. Sketch compiles fine after cleaning that Libraries folder. Thank you.

Posted 11 Sep 2017, 12:35, 0 votes
ntronics
Rating: 0

This site uses cookies to maintain your current login session and improve your browsing experience. By continuing to use this site you agree to the placing of these cookies on your computer or device.

About cookies | Close this popup