How to find out why Sloeber and Arduino IDE give different verify results. #1627
jantje
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you find yourself in the situation that Sloeber has a different result from the Arduino IDE and there are no obvious reasons left on why; there is good news and bad news.
The good news is: There is a guaranteed way to find out why.
The bad news is: It is a tedious job that must be done very meticulous.
To understand why we need to understand the build a bit better.
How the Arduino build is done.
When Arduino IDE builds (called verify in Arduino IDE but the good old C/C++ name is build) a sketch (In Sloeber called a project) it actually start a bunch commands that run programs that are stored on your local machine.
Therefore if Sloeber runs the same commands Sloeber must end up with the same result.
In the Arduino IDE you can turn on verbose building in the preferences. If you turn "verbose printing" on and start a build you will see all the commands Arduino uses to build the sketch.
Sloeber is always in verbose mode. Sloeber shows all the commands in the console view.
How to compare the verbose output
By comparing the commands in the verbose output you can find the difference between Sloeber and Arduino IDE builds that may explain the issue at hand.
Before starting the compare there are some things to point out
Why is it hard?
Comparing 2 outputs that seems easy right? Well not so quick.
What comes to mind about what makes it hard are:
<Somewhere Arduino IDE installed this gcc>\gcc
versus<Somewhere Sloeber installed this gcc>\gcc
Beta Was this translation helpful? Give feedback.
All reactions