- Arduino 1.8.12
报错:
fork/exec /Users/XXXXX/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++: bad CPU type in executable
解决:
cd ~/Library/Arduino15/packages/arduino/tools/avr-gcc
mv 4.8.1-arduino5 orig.4.8.1
ln -s /Applications/Arduino.app/Contents/Java/hardware/tools/avr 4.8.1-arduino5
参考自:
- Bad CPU type in executable
- [SOLVED] avr-g++: bad CPU type in executable // Mac Os 10.15.2 Catalina
- Arduino IDE no longer compiles on macOS 10.15 Catalina #8974
截屏2020-04-28 16.33.48.png
网友评论