Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 250 forks source link

error on compile avr-g++: error: '-DUSB_MANUFACTURER=Unknown': No such file or directory #338

Closed dajiangqingzhou closed 7 years ago

dajiangqingzhou commented 8 years ago

HI everybody,thanks for looking my issues! Sorry for my pool English.

here is the question, when i use the SUBLIME TEXT 3(Build 3103) to compile any arduino file,it return an errot as follow: C:\Users\XXXX\Documents\Arduino\libraries\IRremote\AnalogReadSerial\AnalogReadSerial.ino.cpp.o... avr-g++: error: '-DUSB_MANUFACTURER=Unknown': No such file or directory

avr-g++: error: '-DUSB_PRODUCT=Arduino Leonardo': No such file or directory

Thank you all!

arthursdp commented 8 years ago

Same here using Arduino 1.6.6 and ST3.

The bug persists even after I updated to new-stino, with the latest patch that should have fixed this bug (d9c538d)

Edit : I updated Arduino to 1.6.7. The bug is still there.

gepd commented 8 years ago

@dajiangqingzhou @arthursdp guys this plugin won't be updated anymore, please read this https://github.com/Robot-Will/Stino/issues/331 with a possible alternative you may like

davidcorbin commented 8 years ago

The issue is that Stino can't find the Android IDE avr compiler. Fix this by selecting the Arduino IDE application folder. On Windows, it's C:\Program Files (x86)\Arduino. 2016-03-29 15_46_58-greenshot

ckblau commented 8 years ago

A possible reason is that in .\preset\platform_avr.txt, some " was replaced with ' . Changing this might help. @dajiangqingzhou 经验证,把 .\preset\platform_avr.txt 这个文件里的单引号改成双引号,可以解决这个问题,但似乎源代码有误,所以仍无法完成编译,正在研究这个问题。 如果可以的话,使用Uno就没有问题,这个问题只出现在Leonardo等少数板中。

dajiangqingzhou commented 8 years ago

@chkb123456 thank you!

sibinsivalal commented 7 years ago

I believe you need to set the board preference ! under Menu>Arduino>Board>"which ever board you are on" for me its Arduino/Genuino UNO. board preference

Robot-Will commented 7 years ago

I have fixed the problems, please try the newest version.