Compilation error sparki.cpp:836:16

I just installed Arduino sw on Ubuntu (1.0.5) and the Sparki library via the automated import mechanism. (I actually first installed 1.0.3 from Ubuntu repository, but then installed 1.0.5 on top of that from debian repositories.)

When I try to compile anything, (assuming other errors are solved), I get the following error message

“/home/martin/sketchbook/libraries/Sparki/Sparki.cpp:836:16: error: variable ‘font’ must be const in order to be put into read-only section by means of ‘attribute((progmem))’”

Any ideas what should be corrected? Thanks in advance.

Have you tried to compile the ‘blink’ example? Do you get the same error?

I was seeing the same error. Manually downloaded latest IDE from arduino.cc (arduino.cc/en/Main/Software)

Code now compiles without error. Still not working, though. :confused:

I also experienced this issue on Linux Mint 16 (Ubuntu 13.10). The ubuntu provided Arduino IDE has the version 1.0.05+dfsg2-1. I downloaded and installed 1.0.5 manually and that worked fine.

I’m uncertain as to if this is a bug in the Ubuntu provided Arduino IDE or sparki code. If it the Ubuntu provided Arduino IDE, then I’m happy to raise a bug on Ubuntu’s Launchpad.

[quote=“mathew”]I also experienced this issue on Linux Mint 16 (Ubuntu 13.10). The ubuntu provided Arduino IDE has the version 1.0.05+dfsg2-1. I downloaded and installed 1.0.5 manually and that worked fine.

I’m uncertain as to if this is a bug in the Ubuntu provided Arduino IDE or sparki code. If it the Ubuntu provided Arduino IDE, then I’m happy to raise a bug on Ubuntu’s Launchpad.[/quote]

It looks like it might be Ubuntu problem? See this thread (from last year) on the Adafruit forum, for example:

adafruit.com/forums/viewtopi … 22&t=35725

This has to do with the Arduino that gets installed via the Ubuntu installer. We don’t officially support linux. That said, the official Arduino website download would probably work better.

Thanks all.

I downloaded the 1.0.5 for linux from arduino.cc/en/Main/Software (64 bit for my Ubuntu). (Unpacking.) Then just by running the arduino-script contained in the root folder of the downloaded package, it starts 1.0.5 (and not the version 1.0.5+dfsg2-1 which I got from debian repositories). Now compiling works.

Onwards!