開発環境
- VSCode
- PlatformIO
- Windows10
- M5Stack Gray
エラー
音声分析がしたくて、このサイトを参考にPlatformIOでやってみた。
http://pages.switch-science.com/letsiot/sound/
arduinoFFT というライブラリをインストールするため [Add to Project] をクリックすると、
こんなエラーが
|-- <arduinoFFT> 1.5.6
Building in release mode
Compiling .pio\build\m5stack-grey\src\main.cpp.o
Generating partitions .pio\build\m5stack-grey\partitions.bin
Compiling .pio\build\m5stack-grey\libde3\FS\FS.cpp.o
Compiling .pio\build\m5stack-grey\libde3\FS\vfs_api.cpp.o
Compiling .pio\build\m5stack-grey\lib8dc\SPIFFS\SPIFFS.cpp.o
Compiling .pio\build\m5stack-grey\libfc5\SPI\SPI.cpp.o
Compiling .pio\build\m5stack-grey\lib4a5\WiFi\ETH.cpp.o
Compiling .pio\build\m5stack-grey\lib4a5\WiFi\WiFi.cpp.o
Compiling .pio\build\m5stack-grey\lib4a5\WiFi\WiFiAP.cpp.o
Compiling .pio\build\m5stack-grey\lib4a5\WiFi\WiFiClient.cpp.o
Compiling .pio\build\m5stack-grey\lib4a5\WiFi\WiFiGeneric.cpp.o
Compiling .pio\build\m5stack-grey\lib4a5\WiFi\WiFiMulti.cpp.o
Compiling .pio\build\m5stack-grey\lib4a5\WiFi\WiFiSTA.cpp.o
Archiving .pio\build\m5stack-grey\libfc5\libSPI.a
Compiling .pio\build\m5stack-grey\lib4a5\WiFi\WiFiScan.cpp.o
Assembler messages:
Fatal error: can't create .pio\build\m5stack-grey\libde3\FS\vfs_api.cpp.o: Permission denied
*** [.pio\build\m5stack-grey\libde3\FS\vfs_api.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio\build\m5stack-grey\lib8dc\SPIFFS\SPIFFS.cpp.o: Permission denied
*** [.pio\build\m5stack-grey\lib8dc\SPIFFS\SPIFFS.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio\build\m5stack-grey\src\main.cpp.o: Permission denied
*** [.pio\build\m5stack-grey\src\main.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio\build\m5stack-grey\lib4a5\WiFi\ETH.cpp.o: Permission denied
*** [.pio\build\m5stack-grey\lib4a5\WiFi\ETH.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio\build\m5stack-grey\lib4a5\WiFi\WiFi.cpp.o: Permission denied
*** [.pio\build\m5stack-grey\lib4a5\WiFi\WiFi.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio\build\m5stack-grey\lib4a5\WiFi\WiFiAP.cpp.o: Permission denied
*** [.pio\build\m5stack-grey\lib4a5\WiFi\WiFiAP.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio\build\m5stack-grey\lib4a5\WiFi\WiFiMulti.cpp.o: Permission denied
*** [.pio\build\m5stack-grey\lib4a5\WiFi\WiFiMulti.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio\build\m5stack-grey\lib4a5\WiFi\WiFiSTA.cpp.o: Permission denied
*** [.pio\build\m5stack-grey\lib4a5\WiFi\WiFiSTA.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio\build\m5stack-grey\lib4a5\WiFi\WiFiClient.cpp.o: Permission denied
*** [.pio\build\m5stack-grey\lib4a5\WiFi\WiFiClient.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio\build\m5stack-grey\lib4a5\WiFi\WiFiGeneric.cpp.o: Permission denied
*** [.pio\build\m5stack-grey\lib4a5\WiFi\WiFiGeneric.cpp.o] Error 1
xtensa-esp32-elf-ar: .pio\build\m5stack-grey\libfc5\SPI\SPI.cpp.o: No such file or directory
*** [.pio\build\m5stack-grey\libfc5\libSPI.a] Error 1
============================================================= [FAILED] Took 32.61 seconds =============================================================
途方に暮れたけど、 PlatformIOのコミュニティサイトに誰がが同じ質問をしていた。 https://community.platformio.org/t/permission-denied-on-windows-10-machine/12915
そこの誰かのコメント > Do you have an Antivirus active which could block stuff? Can you temporarily disable it? >
ウイルスソフトがブロックしてた。
解除したらビルドできた!