Hi, I’ve never done one of these pull request things but I made an autotools package for compiling and installing grbl on linux machines. I have no idea if you want to use this but I found it makes it easier to install. On a brand new ubuntu box, the install process goes like this:
install the avr build tools by running:
sudo apt-get install gcc-avr avrdude avr-libc
Plug in your arduino Uno and run the following commands:
wget https://github.com/downloads/bubbapizza/grbl/grbl-0.7.tar.gz
tar zxvf grbl-0.7.tar.gz
cd grbl-0.7
./configure
make
make install
Thats it, the firmware should now be installed on your arduino.
You can also change the type of arduino and customize avrdude commands from the ‘configure’ command if you take a look at the README.
评论 (5)
#2 – bubbapizza 于 2012-02-05
To tell you the truth I have no idea if it will work on a Mac or not. The package just uses normal bourne shell stuff so it should in theory.
#3 – chamnit 于 2012-02-06
Good to know. I’ll give it a try this week. I’m currently coding furiously to add work coordinate systems and revamping the g-code parser.
#4 – chamnit 于 2012-02-25
Sorry got distracted with other things that needed to get done. I’ve reviewed these changes. I think this breaks the idea of making it portable across multiple platforms as configure isn’t supported by Windows and you need to install it on *nix machines.
The nice thing about the current Makefile is that it uses the make executable included in the Arduino IDE, which removes this installation requirement at least on *nix machines. It’s not complete, nor fully tested, and needs some Windows compatibility TLC, but we could definitely use something similar to the make install feature you have. Making Grbl easy to compile and install, cross-platform and zero-config, is definitely something that needs to be done, and I’d be grateful with some help on this.
#5 – bubbapizza 于 2012-02-26
Ya I’m not sure how the heck you could do it on windows. You’d probably need cygwin.
原始Issue: https://github.com/grbl/grbl/pull/57
#1 – chamnit 于 2012-02-05
Great thanks! Will this makefile work on Mac systems as well? The basic process that I have been using is laid out in the Wiki area. I explicitly use the avrgcc and avrdude supplied by the Arduino IDE to ensure compatibility across all platforms. Also thanks for the delayus() update. It’s been on the to-do list and got sidetracked with other higher priority tasks.