Errors after installing Arduino IDE on new laptop

Morning. I'm using the instructions to build scoreboard from Setting up the Arduino | Build Your Own Scoreboard

I have a new issue with the Arduino software. It works perfectly on my old laptop but not my new one. Both are WIndows 10. The old laptop runs Arduino 1.6.7 & I can upload all versions the ino files.

So on my new laptop I did the following:
Installed Arduino 1.6.7
Copied the 4 folders from software2016r2 to C:\Program Files (x86)\Arduino\libraries
I then opened the scoreboard.ino file from the 2016 software, & run a verify/compile & I get this result
What am I missing?

C:\Users\HP\Downloads\software2016R2\software\software\scoreboard\scoreboard.ino: In function 'void test_mode()':

C:\Users\HP\Downloads\software2016R2\software\software\scoreboard\scoreboard.ino:168:36: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     shifterSet1.display("111222333");

                                    ^

C:\Users\HP\Downloads\software2016R2\software\software\scoreboard\scoreboard.ino:169:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     shifterSet2.display("444555");

                                 ^

C:\Users\HP\Downloads\software2016R2\software\software\scoreboard\scoreboard.ino: In function 'void arduino_ready()':

C:\Users\HP\Downloads\software2016R2\software\software\scoreboard\scoreboard.ino:179:44: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   cmdMessenger.sendCmd(kACK,"Arduino ready");

                                            ^

C:\Users\HP\Downloads\software2016R2\software\software\scoreboard\scoreboard.ino: In function 'void unknownCmd()':

C:\Users\HP\Downloads\software2016R2\software\software\scoreboard\scoreboard.ino:185:46: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   cmdMessenger.sendCmd(kERR,"Unknown command");

                                              ^

C:\Users\HP\Downloads\software2016R2\software\software\scoreboard\scoreboard.ino: In function 'void setup()':

C:\Users\HP\Downloads\software2016R2\software\software\scoreboard\scoreboard.ino:237:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   shifterSet1.display("--0--0--0");

                                  ^

C:\Users\HP\Downloads\software2016R2\software\software\scoreboard\scoreboard.ino:238:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   shifterSet2.display("0-0--0");

                               ^


Sketch uses 7,320 bytes (22%) of program storage space. Maximum is 32,256 bytes.
Global variables use 695 bytes (33%) of dynamic memory, leaving 1,353 bytes for local variables. Maximum is 2,048 bytes.

There are not a errors, it just a warnings. Your code compiled successfully.

And in any way, your question has nothing to do with "Installation"

Check the version of the board package on both machines; reasonably sure that they will be different.

Question: would a new laptop not be a good reason to upgrade to a newer version of the IDE :wink:

Thanks for the reply, but I don't know what you mean by the version of the board package. Is there a bunch of files I can copy from the old map top to the new one to make it work?

I'm using v1. 6.7 because that's what tube instructions say it was tested with,and it works fine (on my old laptop at least)!

Go to tools → board manager in the IDE. Below shows for IDE 1.6.6 where I, to my knowledge, never updated the AVR board package. You can see that the version of the AVR board package is is 1.6.9; check this in both of your IDE installations.

Thanks for the guidance, unfortunately both Board Managers show v1.6.9

Thanks for the reply but I'm not sure that they are compiling correctly.
Working laptop (no orange warnings):
Sketch uses 8,094 bytes (25%) of program storage space. Maximum is 32,256 bytes.
Global variables use 877 bytes (42%) of dynamic memory, leaving 1,171 bytes for local variables. Maximum is 2,048 bytes.

Non-working laptop (all the orange warnings mentioned in the original post):
Sketch uses 7,768 bytes (24%) of program storage space. Maximum is 32,256 bytes.
Global variables use 821 bytes (40%) of dynamic memory, leaving 1,227 bytes for local variables. Maximum is 2,048 bytes.

Next thing to compare in both IDEs: compiler warnings in file → preferences

Interesting. On the 'faulty laptop' they were off, same as on the working laptop. But after closing the preferences on the faulty laptop the orange warnings disappeared. Now, on both laptops, they can be turned on & off & behave as expected. It seems that on initial install, they're on, but the preferences says off, but the off doesn't take effect until prefs have been opened & closed. Anyway that bit's sorted.

So I then compiled the script on the 'faulty' laptop & it was the smaller size, 7768 instead of 8094 on the working one.
So I manually renamed the faulty arduino folder & copied the entire folder from the good laptop & now it compiles to the same size.

So I don't know what was wrong but it seems to be fixed with my bodged workaround, thanks for your help.

You should actually try to fix the warnings :wink:

You can mark your topic as solved by clicking the solution button under the most useful post. That way others who experience the same problem as well as people that might want to help know that a solution was provided.

I've thought about that but isn't my code, I've just tweaked it a bit to suit my needs.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.