Welcome! Log In Create A New Profile


Mendel90 on Ubuntu 16.04

Posted by bolean 
Mendel90 on Ubuntu 16.04
August 15, 2016 03:04PM
Installed/kopied Marlin and Arduino according to nopheads instructions on Ubuntu 16.04 and got this error message when trying to upload 115200 baud rate.
The Arduino window report:
Marlin | Arduino 2:1.0.5+dfsg2-4
MelziW/ ATmega1284p 16mhz on /dev/ttyUSB0
The serial connection seems ok. (dont know how to verify). I have tested several different version of Marlin, without any changes. Tried to copy the Melzi folder both in Nautilus and in Terminal. I have also compared the Melzi folder with the one I use (and works) in Windows XP . I cant find any difference.
Question is: What is wrong?

Error Compiling

In file included from
/usr/share/arduino/hardware/Melzi/cores/arduino/Wconstants.h. :1 :0
/usr/share/arduino/hardware/Melzi/cores/arduino/ Winterrupts. C: 33:
/usr/lib/avr/include/math.h:426:15:error: expected identifier or ‘(‘before ‘double’
exstern double round (double__x) __ATTR_CONST__:

error: expexted ‘)’ before ‘ >=’ token
#define round(x) ((x)>=0?(long)((x)-0.5))
Re: Mendel90 on Ubuntu 16.04
August 15, 2016 07:01PM
Just comment out the definition of round in wiring.h.

//#define round(x) ((x)>=0?(long)((x)-0.5))

I think on Linux a different version of the compiler gets used for the same version of Arduino.

Re: Mendel90 on Ubuntu 16.04
August 16, 2016 11:19AM
Thanks for a swift reply. It did the trick, and I uploaded the new baudrate, started pronterface and run a testprint.
Either the z home point must be changed or something else was wrong.
Im a bit short of time now so I reconnected my xp box and reloaded the original sketch.
Maybe a stupid question but should the different machines/sketches affect the z home position?
Re: Mendel90 on Ubuntu 16.04
August 16, 2016 04:00PM
Sorry a typo. The Z_HOME_POS was all wrong.
Now everything looks ok.
Sorry, only registered users may post in this forum.

Click here to login