MCUdude / MiniCore

Arduino hardware package for ATmega8, ATmega48, ATmega88, ATmega168, ATmega328 and ATmega328PB
Other
979 stars 241 forks source link

MiniCore compile error in Arduino 1.8.5 #98

Closed GreyGnome closed 4 years ago

GreyGnome commented 5 years ago

Hello, I just installed MiniCore into the Arduino IDE and as soon as I attempt to compile I get this error message:

Compiling sketch... "{runtime.tools.avr-gcc.path}/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega8 -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_AVR_ATmega8 -DARDUINO_ARCH_AVR -Wextra -flto -g "-I/home/schwager/.arduino15/packages/MiniCore/hardware/avr/2.0.3/cores/MCUdude_corefiles" "-I/home/schwager/.arduino15/packages/MiniCore/hardware/avr/2.0.3/variants/standard" "/tmp/arduino_build_352211/sketch/Blink.pde.ino.cpp" -o "/tmp/arduino_build_352211/sketch/Blink.pde.ino.cpp.o" fork/exec {runtime.tools.avr-gcc.path}/bin/avr-g++: no such file or directory Error compiling for board ATmega8.

GreyGnome commented 5 years ago

I hacked /home/schwager/.arduino15/packages/MiniCore/hardware/avr/2.0.3/platform.txt and changed the compile.path to be hardcoded to /usr/bin. Blink compiled and uploaded correctly, using a usbasp programmer :-) . All told, this was a quick fix and I appreciate the work!