Ubuntu 13.04 and Arduino Ide

Post Reply
User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Ubuntu 13.04 and Arduino Ide

Post by NikTheGreek »

Hi.
I few days ago decided to instal Ubuntu 13.04 in one of my partitions.
The first thing installed was of course Arduino 1.0.3.
So i tried to load a working copy of MultiWii on my Linux system.
But when i compile the sketch i'm taking this

Code: Select all

MultiWii.ino:67:21: error variable or field 'SerialGpsPrint' declared void
MultiWii.ino:67:21: error 'prog_char' was not declared on this scope
MultiWii.ino:67:32: error 'str' was not declared on this scope
GPS.ino:212:23: error variable or field 'SerialGpsPrint' declared void
GPS.ino:212:23: error 'prog_char' was not declared on this scope
GPS.ino:212:34: error 'str' was not declared on this scope


Any idea why ?
Thank you in advance.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Ubuntu 13.04 and Arduino Ide

Post by copterrichie »

I believe the Real Sun Java is required, not the open source that comes with Ubuntu. Uninstall them and download the JRE from Sun. Should work.

User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Ubuntu 13.04 and Arduino Ide

Post by NikTheGreek »

Thank you Richard.
Done it but is not working :(

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Ubuntu 13.04 and Arduino Ide

Post by copterrichie »

Hmmm, weird. I just took down my Ubuntu machine but I did have the IDE working with it. Not sure what is up with that but will say, it was the 64bit version.

Try downloading the updated 1.05 from the arduino site and uninstall the 1.03.

sparklet
Posts: 1
Joined: Mon Jul 22, 2013 7:59 pm

Re: Ubuntu 13.04 and Arduino Ide

Post by sparklet »

I would try downloading the latest version of the Arduino ide.
It could be that the earlier version doesn't have the correct libraries to use with that sketch.

User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Ubuntu 13.04 and Arduino Ide

Post by NikTheGreek »

The problem remain..
and seems that i can't find solution. :(

MultiWeee
Posts: 1
Joined: Sun Aug 18, 2013 10:42 am

Re: Ubuntu 13.04 and Arduino Ide

Post by MultiWeee »

Did you get the correct java package?

Code: Select all

sudo apt-get install librxtx-java

itain
Posts: 75
Joined: Tue Aug 23, 2011 10:32 pm

Re: Ubuntu 13.04 and Arduino Ide

Post by itain »

Change (GPS.cpp line 244) to:
void SerialGpsPrint(PROGMEM const char *str) {

I hope to see that changed also in the SVN repository.

The same problem exists also in Fedora 19 and probably in all the major Linux distributions.

The type `prog_char' is defunct. Your Ubuntu installation is probably using a new version of avr-gcc which do not support it.

Optionally, install arduino 1.0.5 from the arduino download page. It comes with its own old version of avr-gcc that still accepts prog_char.

Post Reply