joshmarinacci / ElectronIDE

New web based Arduino IDE
BSD 3-Clause "New" or "Revised" License
246 stars 50 forks source link

Not finding avrdude on linux (Ubuntu 14.04) #41

Closed riban-bw closed 10 years ago

riban-bw commented 10 years ago

Having followed the README instructions to install ElectronIDE on Ubuntu14.04 I have a working copy but clicking on the run button fails to load hex to board. ElectronIDE attempts to access avrdude at:

$HOME/ElectronIDE/downloads/platforms/1.0.5/linux/hardware/tools/avr/bin/avrdude

but it is actually downloaded to:

$HOME/ElectronIDE/downloads/platforms/1.0.5/linux/hardware/tools/avrdude

riban-bw commented 10 years ago

I note that avrdude is at different location in linux tar download compared with windows and darwin downloads.

tallsam commented 10 years ago

I can confirm this bug.

/bin/sh: 1: /home/sam/ElectronIDE/downloads/platforms/1.0.5/linux/hardware/tools/avr/bin/avrdude: not found
joshmarinacci commented 10 years ago

I think I've fixed this now. The platform.js object will return a different path if the os is linux. Please verify that this works on your machine. thx.

tallsam commented 10 years ago

Looking better, avrdude.conf is located in the same dir as the binary so it needs another small fix.

joshmarinacci commented 10 years ago

Just pushed back a fix. Can you try it again? Thx.

tallsam commented 10 years ago

all working, cheers.

riban-bw commented 10 years ago

Confirm this works now - thanks.