1

我正在尝试将此捆绑包与我的 textmate 一起使用: https ://github.com/nasser/arduino.tmbundle

我已经成功安装了它,但是在我的桌面中保存的一个基本的 blink.ino 草图中,当我尝试 Bundles > Arduino > Compile 时,我在一个单独的窗口中得到了这个弹出窗口:

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w       -fno-exceptions -ffunction-sections -fdata-sections -DF_CPU=16000000L -DARDUINO=100 -I/Users/neiljohari/Desktop/Programming/Arduino/Blink -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/libraries/EEPROM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Esplora/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/GSM/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/LiquidCrystal/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Motor/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Motor/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Motor/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Motor/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/SD/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/SD/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/SPI/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Servo/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareSerial/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Stepper/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/TFT/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/WiFi/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/WiFi/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/WiFi/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/WiFi/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Wire/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/SD/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/SD/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/SD/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/TFT/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/TFT/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/WiFi/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/WiFi/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/WiFi/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/TFT/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/WiFi/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Wire/utility/ -I/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/include/avr -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/standard -mmcu=atmega328p applet/Blink.cpp -o applet/Blink.o
applet/Blink.cpp:1:22: error: WProgram.h: No such file or directory
applet/Blink.cpp: In function 'void setup()':
applet/Blink.cpp:18: error: 'OUTPUT' was not declared in this scope
applet/Blink.cpp:18: error: 'pinMode' was not declared in this scope
applet/Blink.cpp: In function 'void loop()':
applet/Blink.cpp:23: error: 'HIGH' was not declared in this scope
applet/Blink.cpp:23: error: 'digitalWrite' was not declared in this scope
make: *** [applet/Blink.o] Error 1

它没有上传到我的板上。我不理解这个错误,因为我习惯了 Arduino IDE,但我仍然希望使用 TextMate。

4

1 回答 1

1

我解决了自己的问题,我是这样做的:首先,我使用 Arduino IDE 创建了一个新草图,并将其保存在我想要的位置。

然后我删除了 Arduino 使用的库中的冲突文件夹,从 TextMate 到那里,你去:Bundles > Arduino > Open Arduino Libraries

从那里你删除冲突的文件夹,首先它抱怨Esplora,所以把它扔进垃圾箱。然后是 RobotController 和 Motors,然后是 WiFi。

如果有人有不需要我删除此类库的解决方案,请说出来,但现在,这很好用。

于 2013-10-12T23:21:53.993 回答