HelTecAutomation / Heltec_ESP32

Arduino library for Heltec ESP32 (or ESP32+LoRa) based boards
Other
580 stars 219 forks source link

Getting these error when trying to upload a sketch with Plaform.io any ideas? #58

Open ArtofWar-dev opened 3 years ago

ArtofWar-dev commented 3 years ago

Executing task in folder X: C:\Users\ArtofWar.platformio\penv\Scripts\pio.exe run <

Processing heltec_wifi_lora_32_V2 (platform: espressif32; board: heltec_wifi_lora_32_V2; framework: arduino)
----------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/heltec_wifi_lora_32_V2.html PLATFORM: Espressif 32 (2.1.0) > Heltec WiFi LoRa 32 (V2) HARDWARE: ESP32 240MHz, 320KB RAM, 8MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:


compilation terminated. In file included from .pio\libdeps\heltec_wifi_lora_32_V2\Heltec ESP32 Dev-Boards\src\BMP180.cpp:1:0: .pio\libdeps\heltec_wifi_lora_32_V2\Heltec ESP32 Dev-Boards\src\BMP180.h:5:18: fatal error: Wire.h: No such file or directory


compilation terminated. In file included from .pio\libdeps\heltec_wifi_lora_32_V2\Heltec ESP32 Dev-Boards\src\lora\LoRa.cpp:1:0: .pio\libdeps\heltec_wifi_lora_32_V2\Heltec ESP32 Dev-Boards\src\lora\LoRa.h:5:17: fatal error: SPI.h: No such file or directory


compilation terminated. [.pio\build\heltec_wifi_lora_32_V2\libd3c\Heltec ESP32 Dev-Boards\heltec.cpp.o] Error 1 [.pio\build\heltec_wifi_lora_32_V2\libd3c\Heltec ESP32 Dev-Boards\BMP180.cpp.o] Error 1 *** [.pio\build\heltec_wifi_lora_32_V2\libd3c\Heltec ESP32 Dev-Boards\lora\LoRa.cpp.o] Error 1 ========================================== [FAILED] Took 6.73 seconds ==========================================The terminal process "C:\Users\ArtofWar.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

kevs-oc commented 3 years ago

I was getting the same error when trying to compile a sketch using the v1.1.0 library after importing it into PlatformIO. I had to delete the BMP and Heltec files from the .pio/libdeps/Heltec ESP32 Dev-Boards/src folder under my project folder. Once I did that, everything worked.

I did notice that I only received this error if I had another library imported into my project. If I just had this library, it worked fine.

I did not try rolling back to the 1.0.9 version, but I have used that in older projects with no issues.