1

Using Raspbian Stretch.

I installed gcc-4.9 with specified version. Then I installed arduino (2.1.0.5) which in turn pulled gcc 4.6. When I try to compile Marlin in it, it says

Marlin requires C++11 support (gcc >= 4.7, Arduino IDE >= 1.6.8). Please upgrade your toolchain.

How do I make Arduino IDE use the correct version of GCC?

VE7JRO
  • 2,515
  • 19
  • 27
  • 29

2 Answers2

2

As Majenko pointed out, I should have used a tarball from the official site instead of the repositories. Which makes me wonder why that package wasn't deprecated or something...

0

Installing the Arduino package from the Debian repository (or the one for derived distros like Ubuntu) performs the useful purpose of setting up all the necessary permissions for the Arduino IDE to work. Those permissions are NOT automatically removed when you uninstall the package.

The simplest way to get a working Arduino install:
1. Install Arduino from the repo
2. Immediately uninstall it
3. Get a current version of Arduino from arduino.cc and install that