suapapa / arscons

!! DEPRECATED !! scons script for Arduino sketch
76 stars 19 forks source link

Linux : change default avr-g++ folder #16

Closed roipoussiere closed 11 years ago

roipoussiere commented 11 years ago

On Linux Ubuntu, the avr-g++ default folder is /usr/bin

So on the SConstruct file, replace this line : AVR_HOME = resolve_var('AVR_HOME', path.join(ARDUINO_HOME, 'hardware/tools/avr/bin')) by this line : AVR_HOME = resolve_var('AVR_HOME', '/usr/bin/')

suapapa commented 11 years ago

On linux, /usr/bin is in $PATH. so don't need to set AVR_HOME. In Sconstruct, line 118, It set nothing for AVR_HOME for linux.

# For Ubuntu Linux (9.10 or higher)
ARDUINO_HOME        = resolve_var('ARDUINO_HOME', '/usr/share/arduino/')
ARDUINO_PORT        = resolve_var('ARDUINO_PORT', getUsbTty('/dev/ttyUSB*'))
SKETCHBOOK_HOME     = resolve_var('SKETCHBOOK_HOME',
                                  path.expanduser('~/share/arduino/sketchbook/'))
AVR_HOME            = resolve_var('AVR_HOME', '')
LateralGs commented 11 years ago

The AVR_HOME path is incorrectly set for linux platforms as the original comment points out. It looks like commit bb206967f9f0abf65b83716f2206153dc33b7437 is to blame for the problem and should be changed back to the original empty string for the path.