From cbde30929fe4a9e3097b298a505d22d81e4052fd Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 1 Sep 2009 20:24:18 +0200 Subject: add details on cross-compiler compilation --- src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt') diff --git a/src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt b/src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt index 908bb10..dbd1391 100644 --- a/src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt +++ b/src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt @@ -18,6 +18,21 @@ I start by downloading the sources for the Arduino_ software. You see, I run a 64-bit machine, and the pre-built Linux binaries are 32 bits. Not good enough. +Of course, I have to build the cross-compiling tool-chain… easy +enough: crossdev_ has a special target for it:: + + # crossdev -t avr + +Only it does not work: ``avr-libc-headers`` requires the compiler to +be already build. I don't go fixing it the proper way, I just follow +the `hint found in a mailing list post`_, and do (after the failed +``crossdev`` run): + + # USE='-nls -fortran -gtk -openmp -mudflap' emerge -v cross-avr/gcc + # crossdev -t avr + +and I have a (hopefully) working cross-compiler. + Then, following the `Arduino instructions`_, I say:: ~/arduino-src/build/linux$ ./make.sh @@ -124,6 +139,8 @@ the appropriate boards. We'll see if it actually works. .. _CupCake: http://wiki.makerbot.com/cupcake .. _`MakerBot instructions`: http://wiki.makerbot.com/cupcake-motherboard-firmware-update +.. _crossdev: http://en.gentoo-wiki.com/wiki/Crossdev +.. _`hint found in a mailing list post`: http://www.mail-archive.com/avr-libc-dev@nongnu.org/msg03019.html .. _Arduino: http://arduino.cc/ .. _`Arduino instructions`: http://code.google.com/p/arduino/wiki/BuildingArduino .. _Sanguino: http://sanguino.cc/ -- cgit v1.2.3