Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days.
0

Can't compile ST7735 TFT examples
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Can't compile ST7735 TFT examples

by fenyvesi on Sat Jul 06, 2013 12:16 pm

I tried to compile (Win7, IDE v1.05) the freshly downloaded ST7735 library examples having always the same errors.
What shall I do?

Thank you.

George Fenyvesi

Example Shieldtest:

C:\SW-KITS\uController\ARDUINO\arduino-1.0.5\libraries\Adafruit_ST7735\Adafruit_ST7735.cpp: In constructor 'Adafruit_ST7735::Adafruit_ST7735(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
C:\SW-KITS\uController\ARDUINO\arduino-1.0.5\libraries\Adafruit_ST7735\Adafruit_ST7735.cpp:33: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX(int, int)'
C:\SW-KITS\uController\ARDUINO\arduino-1.0.5\libraries\Adafruit_GFX/Adafruit_GFX.h:28: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
C:\SW-KITS\uController\ARDUINO\arduino-1.0.5\libraries\Adafruit_GFX/Adafruit_GFX.h:28: note: Adafruit_GFX::Adafruit_GFX()
C:\SW-KITS\uController\ARDUINO\arduino-1.0.5\libraries\Adafruit_ST7735\Adafruit_ST7735.cpp: In constructor 'Adafruit_ST7735::Adafruit_ST7735(uint8_t, uint8_t, uint8_t)':
C:\SW-KITS\uController\ARDUINO\arduino-1.0.5\libraries\Adafruit_ST7735\Adafruit_ST7735.cpp:47: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX(int, int)'
C:\SW-KITS\uController\ARDUINO\arduino-1.0.5\libraries\Adafruit_GFX/Adafruit_GFX.h:28: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
C:\SW-KITS\uController\ARDUINO\arduino-1.0.5\libraries\Adafruit_GFX/Adafruit_GFX.h:28: note: Adafruit_GFX::Adafruit_GFX()

fenyvesi
 
Posts: 6
Joined: Wed Oct 05, 2011 12:49 pm

Re: Can't compile ST7735 TFT examples

by adafruit_support_rick on Sat Jul 06, 2013 1:00 pm

Sorry - there were some recent changes to the Adafruit_GFX library which seem to have broken some other libraries.
I've attached an older version of Adafruit_GFX. Please give that a try, and let me know if it solves your problem.
Attachments
Adafruit_GFX.zip
(9.69 KiB) Downloaded 558 times

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Can't compile ST7735 TFT examples

by pburgess on Sat Jul 06, 2013 1:24 pm

Hi George,

Looks like the ST7735 library is fine...you'll want to download the latest Adafruit_GFX library for compatibility:
https://github.com/adafruit/Adafruit-GFX-Library

If you're using any other displays that reference Adafruit_GFX, you'll need to update those libraries as well. Sorry for the nuisance...if it's any consolation, this was an "enabling cool stuff for the future" kind of fix that will have benefits going forward.

pburgess
 
Posts: 4096
Joined: Sun Oct 26, 2008 2:29 am

Re: Can't compile ST7735 TFT examples

by fenyvesi on Sun Jul 07, 2013 12:03 am

It works.

Thank you.

George

fenyvesi
 
Posts: 6
Joined: Wed Oct 05, 2011 12:49 pm

Re: Can't compile ST7735 TFT examples

by spawny on Fri Nov 15, 2013 8:30 pm

I have teh same problem with arduino 1.0.5

Code: Select all | TOGGLE FULL SIZE
\Arduino\libraries\Adafruit_ST7735\Adafruit_ST7735.cpp: In constructor 'Adafruit_ST7735::Adafruit_ST7735(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':


I tried all libraries I could find...old,new, the library from this thread attachment....I do not get it compiled. Can someone please help me
spawny
 
Posts: 2
Joined: Fri Nov 15, 2013 8:28 pm

Re: Can't compile ST7735 TFT examples

by us3rname on Mon Jan 20, 2014 12:10 pm

i think i have an simular problem .. pleeease help im triing it for Days now:


F:\Arduino\libraries\Adafruit_LEDBackpack\Adafruit_LEDBackpack.cpp: In constructor 'Adafruit_8x8matrix::Adafruit_8x8matrix()':
F:\Arduino\libraries\Adafruit_LEDBackpack\Adafruit_LEDBackpack.cpp:97: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX(int, int)'
F:\Arduino\libraries\Robot_Control/Adafruit_GFX.h:41: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
F:\Arduino\libraries\Robot_Control/Adafruit_GFX.h:41: note: Adafruit_GFX::Adafruit_GFX()
F:\Arduino\libraries\Adafruit_LEDBackpack\Adafruit_LEDBackpack.cpp: In constructor 'Adafruit_BicolorMatrix::Adafruit_BicolorMatrix()':
F:\Arduino\libraries\Adafruit_LEDBackpack\Adafruit_LEDBackpack.cpp:133: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX(int, int)'
F:\Arduino\libraries\Robot_Control/Adafruit_GFX.h:41: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
F:\Arduino\libraries\Robot_Control/Adafruit_GFX.h:41: note: Adafruit_GFX::Adafruit_GFX()

and the fix upabove doesnot work for me

us3rname
 
Posts: 8
Joined: Mon Jan 20, 2014 11:51 am

Re: Can't compile ST7735 TFT examples

by adafruit_support_rick on Mon Jan 20, 2014 7:03 pm

You have a mismatch between the Adafruit_LEDBackpack library and the Adafruit.GFX library. Download and install the latest Adafruit_GFX library.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Can't compile ST7735 TFT examples

by us3rname on Tue Jan 21, 2014 10:56 am

No :| that dosnt fixed it
Attachments
problem.PNG
Added a Pic
problem.PNG (239.35 KiB) Viewed 2224 times

us3rname
 
Posts: 8
Joined: Mon Jan 20, 2014 11:51 am

Re: Can't compile ST7735 TFT examples

by adafruit_support_rick on Tue Jan 21, 2014 12:00 pm

Looks like you're installing your libraries in the wrong place. They should be in a folder called "libraries" in your Sketchbook folder. You seem to have them in the internal libraries folder of the IDE.

In the IDE, open the Preferences window. That will show you the path to your Sketchbook folder.

Remove the stuff you added to the internal library folder, and move it to the Sketchbook libraries folder. Then make sure you've got the latest versions of the backpack library and the GFX library installed

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Can't compile ST7735 TFT examples

by us3rname on Wed Jan 22, 2014 4:35 pm

At least its an other error now :|
Attachments
Unbenannt.PNG
error
Unbenannt.PNG (28.51 KiB) Viewed 2214 times

us3rname
 
Posts: 8
Joined: Mon Jan 20, 2014 11:51 am

Re: Can't compile ST7735 TFT examples

by adafruit_support_rick on Wed Jan 22, 2014 9:02 pm

You still don't have your libraries installed correctly. Review our Libraries tutorial, and make sure you have everything in the right place.
http://learn.adafruit.com/adafruit-all- ... nstall-use

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Can't compile ST7735 TFT examples

by us3rname on Thu Jan 23, 2014 9:52 am

Thank you so mutch :D all is working
Attachments
Jey.PNG
Jey.PNG (1.56 KiB) Viewed 2200 times

us3rname
 
Posts: 8
Joined: Mon Jan 20, 2014 11:51 am

Re: Can't compile ST7735 TFT examples

by adafruit_support_rick on Thu Jan 23, 2014 11:46 am

Bitte schön :D

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Can't compile ST7735 TFT examples

by gbauer on Sun May 11, 2014 6:56 am

Moving the user libraries to the correct location, a folder within the sketchbook folder, worked for me too.
Maybe next time I should RTFM but my Google fu was good this time.
This was for the guggenhat project.

gbauer
 
Posts: 10
Joined: Sun May 11, 2014 6:44 am

Please be positive and constructive with your questions and comments.


cron