Mega 2560 + 3.2" TFT Compiling Error

Hello,

I'm having trouble compiling the code for a Mega 2560 board. I don't want to overload the forum with info and annoy anyone so if anyone is interested and can help me please let me know what info you need and I will gladly post it.

Basic message "Error compiling for board Arduino Mega or Mega 2560"

Thank you for your consideration.

You're far more likely to annoy people by not providing enough info than by providing too much.

Please do this:

  • When you encounter an error, you'll see a button on the right side of the orange bar "Copy error messages" in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button..
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the text exceeds the forum's 9000 character limit, save it to a .txt file and post it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link that will allow you to make the attachment.

Thank you for your help! I tried looking around before posting an SOS and saw that people are quick to snap at any sort of "misbehavior" so I wanted to be sure to ask.

The text does exceed 9000 characters so I will be adding an attachment. I was going to post it last night but because it seemed like a lot I decided not to. I'm a beginner at coding (obviously) but I try hard to find the answer myself first and didn't see any similar posts on the forum.

Please let me know how simple of a fix it will be so I can learn from my mistakes!

Thank you very much!

arduino error code.txt (20.5 KB)

Also I noticed on the bottom it says: "This report would have more information with
'Show verbose output during compilation' option enabled" at the end of the message so I have saved that as a text file and will upload the whole thing to this post.

Thanks

error code 2.0.txt (69 KB)

It appears that something went wrong with your installation of the UTFT library. You have two copies of the source files. For example, from this error message:

C:\Users\rosst\AppData\Local\Temp\arduino_build_870086\libraries\UTFT\DefaultFonts.c.o (symbol from plugin): In function `SevenSegNumFont':

(.text+0x0): multiple definition of `SevenSegNumFont'

C:\Users\rosst\AppData\Local\Temp\arduino_build_870086\libraries\UTFT\DefaultFonts (2).c.o (symbol from plugin):(.text+0x0): first defined here

You can see that there is the expected C:\Users\rosst\Documents\Arduino\libraries\UTFT\DefaultFonts.c, but also this duplicate file C:\Users\rosst\Documents\Arduino\libraries\UTFT\DefaultFonts (2).c

The operating system will offer to automatically name files this way when you copy a file that has the same filename as one already in the folder.

So my advice is for you to delete C:\Users\rosst\Documents\Arduino\libraries\UTFT (please be very careful when deleting files from your computer, when in doubt back up!) and then reinstall the library. Being very careful this time to only install one copy.

Hoooo leeee sssmmookkees!
If there were a way for me to high five/fist bump you through the computer I would. I don't know all that "add karma" does but I am going to click it as may times as I can. Thank you thank you thank you thank you! You are a true wizzard.

P.S. I just tried adding a bunch of karma but it says I have to wait an hour. Every time I get on I am going to find you and add some

You're welcome. I'm glad if I was able to be of assistance.

Karma is only a number. I try not to give it too much importance, but I think it does provide me with some general feedback on whether I'm achieving my goal of helping people. I've been hovering around 10% karma:post ratio for a long time now and I would be concerned if I saw a steady drop in that ratio. So I do appreciate it when people make the effort to click that "add" link when they think I've done something useful, but I also don't hold it against those who won't bother with it.

Enjoy!
Per