User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mission:log:2015:01:20:gentoo-crossdev-compile-avr-gcc-for-arduino-and-cura [2015/04/06 17:08] chronomission:log:2015:01:20:gentoo-crossdev-compile-avr-gcc-for-arduino-and-cura [2016/01/18 09:27] (current) chrono
Line 1: Line 1:
 ====== Emerge gentoo crossdev avr-gcc for Arduino and Cura ====== ====== Emerge gentoo crossdev avr-gcc for Arduino and Cura ======
  
-In  order to update the firmware of our [[mission:resources:picoprint|3D printer]] for dual head extrusion and to compile [[https://github.com/daid/Cura/|Cura]] (an alternative gcode slicer) a working crossdev toolchain was needed. +In  order to update the firmware of our [[mission:resources:picoprint|3D printer]] for dual head extrusion and to compile [[https://github.com/daid/Cura/|Cura]] (an alternative gcode slicer) a working AVR crossdev toolchain was needed. 
  
 The printer firmware uses the Arduino toolkit so the dependency was obvious, the Cura build unfortunately needs a working avr-gcc as well (not that obvious), because it also ships with Ultimaker firmware, which cannot be disabled, even if you don't have an Ultimaker (kinda stupid).  The printer firmware uses the Arduino toolkit so the dependency was obvious, the Cura build unfortunately needs a working avr-gcc as well (not that obvious), because it also ships with Ultimaker firmware, which cannot be disabled, even if you don't have an Ultimaker (kinda stupid). 
Line 42: Line 42:
 ln -s /usr/bin/avr-ar /usr/share/arduino/hardware/tools/avr/bin/avr-ar ln -s /usr/bin/avr-ar /usr/share/arduino/hardware/tools/avr/bin/avr-ar
 ln -s /usr/bin/avr-as /usr/share/arduino/hardware/tools/avr/bin/avr-as ln -s /usr/bin/avr-as /usr/share/arduino/hardware/tools/avr/bin/avr-as
 +ln -s /usr/bin/avr-size /usr/share/arduino/hardware/tools/avr/bin/avr-size
 </code> </code>
 +
 +If you want to use the Software Serial and monitoring feature, you need to install rxtx-2.2_pre2 or newer. This version is still masked in the main portage tree, so you will need to unmask it by adding
 +
 +<code>
 +=dev-java/rxtx-2.2_pre2 ~x86 ~amd64
 +</code>
 +
 +to /etc/portage/package.keywords/arduino and then (re)emerge it
 +
 +<code>
 +$ emerge dev-java/rxtx
 +</code>
 +
 +Also, if you don't want to use the crappy JAVA based Arduino IDE, you can simply use a Makefile like this: https://github.com/sudar/Arduino-Makefile
  
 {{tag>gentoo avr-gcc crossdev arduino cura}} {{tag>gentoo avr-gcc crossdev arduino cura}}