I'm working on a CNC project and wanted to compile GRBL in the IDE.
I copied the lastest source with a clone from github and followed the instructions to create and empty sketch and import the GRBL library and ensure that system.h was at the top.
The compile fails with the following error. In searches I have not found anything useful that looks similar .
/usr/share/arduino-1.0.1/hardware/arduino/cores/arduino/wiring.c:298: multiple definition of `__vector_16'
grbl/stepper.c.o:/usr/share/arduino-1.0.1/libraries/grbl/stepper.c:292: first defined here
I thought this project was very mature and well tested. Why does it not compile?
There does not seem to be any support of any kind directly for this code, so hopefully someone here can help.
Just out of curiosity I downloaded the GRBL zip file and tried to follow the instructions here
I extracted the contents and renamed the folder to Grbl as instructed.
Using Arduino 1.5.6 I then tried to add the library but it was only looking for .zip files.
I then renamed the zip file to grblMaster.zip (to get rid of the hyphen) and tried to reload that. The IDE then said it could not use a lbrary called grbl-master (or something like that - due to the hyphen).
I then opened the zip file with archive manager (on Linux) and renamed the folder in it to grblMaster.
After that the library added properly
Then I imported the library (gbrlMaster) into the empty sketch
When I tried to compile (verify) it there was a tonne of errors
I then moved the line #include <system.h> from where it was (at line 5) to the top of the file and after that it compiled without errors.
One wonders why the GRBL people don't sort this out themselves.
I wonder if you have two copies of the line #include <system.h>