Arduino 1.8.7闪烁卡死于编译iMac 10.14.1

时间:2018-12-02 21:12:19

标签: java arduino

您好:我正在尝试使用IDE 1.8.7在Arduino上运行Blink草图。我似乎停留在以下几点:

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger = machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware / Users / conorpower / Library / Arduino15 /软件包-tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools / Users / conorpower / Library / Arduino15 / packages -built-库中/Applications/Arduino.app/Contents/Java/libraries -libraries / Users / conorpower / Documents / Arduino / libraries -fqbn = arduino:avr:uno -vid-pid = 0X2341_0X0043 -ide-version = 10807 -build-路径/ var / folders / sj / 5xbm18s95jx6xry14qj2ftfh0000gn / T / arduino_build_823983 -warnings = none -build-cache /var/folders/sj/5xbm18s95jx6xry14qj2ftfh0000gn/T/arduino_cache_603_perrn=data-per-n=-prefs=75.prefs。 gcc.path = / Applications / Arduino.app / Contents / Java / hardware / tools / avr -prefs = runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path = / Applications / Arduino.app /内容/ Java /硬件/工具/ AVR -prefs = runtime.tools.avrdude.path = / Applications / Arduino.app / Contents / Java / hardware / tools / avr -prefs = runtime.tools.avrdude-6.3.0-arduino14.path = / Applications / Arduino.app / Contents / Java / hardware / tools / avr -prefs = runtime.tools.arduinoOTA.path = / Applications / Arduino.app / Contents / Java / hardware / tools / avr -prefs = runtime.tools.arduinoOTA-1.2.1。路径= / Applications / Arduino.app / Contents / Java / hardware / tools / avr -verbose /var/folders/sj/5xbm18s95jx6xry14qj2ftfh0000gn/T/untitled1719876965.tmp/sketch_dec02b/sketch_dec02b.ino /Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger = machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware / Users / conorpower / Library / Arduino15 / packages -tools / Applications /Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools / Users / conorpower / Library / Arduino15 / packages-内置库/ Applications /Arduino.app/Contents/Java/libraries -libraries / Users / conorpower / Documents / Arduino / libraries -fqbn = arduino:avr:uno -vid-pid = 0X2341_0X0043 -ide-version = 10807 -build-path / var / folders / sj / 5xbm18s95jx6xry14qj2ftfh0000gn / T / arduino_build_823983 -warnings = none -build-cache / var / folders / sj / 5xbm18s95jx6xry14qj2ftfh0000gn / T / arduino_cache_603529 -prefs_pre-fs = pre。应用程序/Arduino.app/内容/ Java /硬件/工具/ avr -prefs = runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path = /应用程序/Arduino.app/Contents/Java/硬件/ tools / avr -prefs = runtime.tools.avrdude.path = /应用程序/Arduino.app/Contents/Java/hardware/tools/avr -prefs = runtime.tools.avrdude-6.3.0-arduino14.path = / Applications / Arduino.app / Contents / Java / hardware / tools / avr -prefs = runtime.tools.arduinoOTA.path = / Applications / Arduino.app / Contents / Java / hardware / tools / avr -prefs = runtime.tools.arduinoOTA-1.2.1.path = /Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /var/folders/sj/5xbm18s95jx6xry14qj2ftfh0000gn/T/untitled1719876965.tmp/sketch_dec02b/sketch_dec02b.ino 使用文件夹中的平台上的板“ uno”:/Applications/Arduino.app/Contents/Java/hardware/arduino/avr 使用平台中位于文件夹/Applications/Arduino.app/Contents/Java/hardware/arduino/avr

中的核心“ arduino”

检测使用的库... /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std = gnu ++ 11 -fpermissive -fno-exceptions -ffunction-sections -fdata-部分-fno-threadsafe-statics -Wno-error =缩小-flto -w -x c ++ -E -CC -mmcu = atmega328p -DF_CPU = 16000000L -DARDUINO = 10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I / Applications / Arduino.app / Contents / Java /硬件/ arduino / avr / cores / arduino -I / Applications / Arduino.app / Contents / Java / hardware / arduino / avr / variants / standard / var / folders / sj / 5xbm18s95jx6xry14qj2ftfh0000gn / T / arduino_build_823983 / sketch / sketch_dec02 .ino.cpp -o / dev / null

通常,我可以解决这个问题,但是,我确实坚持这一点。它似乎与Java有关。我安装了最新的Java。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

以下解决了我的问题;它不明显:

Apple在升级到操作系统时不再包含命令行工具包。这些是运行Arduino和一些Python编辑器所必需的。

执行以下操作:

  1. 转到https://developer.apple.com/download/more/

  2. 登录。不用担心,只需使用您的Apple ID登录即可。您不必成为开发人员。

  3. 在随后的列表中搜索与Mac升级相对应的Command_Line_Tools软件包。我的情况是10.14。

  4. 下载并安装该软件包。在开始安装软件包之前,可能需要一段时间才能打开它。

  5. 那之后Arduino应该可以正常运行了。