工作好きな情報系の雑記

[qmk_firmware]"avr-gcc: command not found" has occurred and failed to flash

In Windows 10, when I tried to flash a program to my keyboard through MINGW64, I got an error like this and couldn't flash.

It seems that avr-gcc is not installed.
It should be installed by running "util/qmk_install.sh".
There should be "avr8-gnu-toolchain" directory in "qmk_utils" directory, which located in the same directory as "qmk_firmware."
But i can't find this directory even though I run the command again.

I run make planck/rev5:default and get Making planck/rev5 with keymap default /bin/sh: avr-gcc: command not found sh: avr-gcc: command not found sh: avr-gcc: command not found make: *** [tmk_cor...
Failure to make · Issue #4318 · qmk/qmk_firmware - GitHub

I carefully reviewed the log, and I found that anti-virus software installed on my PC seems to interfere with the command.
I succeed in installing avr-gcc by run the command after disabling the anti-virus software.

Now I can flash a program.
It's a happy ending!

**めっちゃ雑に纏めてます。眠いので許して**# 結論最初から`--recurse-submodules`付きでcloneすればいい話でした((https://docs.qmk.fm/#/newb...
QMK Firmwareでファームウェアをビルドしようとしたらavr-gccでコケた話 - Qiita - Qiita
モバイルバージョンを終了