Xinyuan-LilyGO / LilyGo-LoRa-Series

LILYGO LoRa Series examples
602 stars 168 forks source link

libraries for examples do not work #85

Closed warnerthuis closed 1 year ago

warnerthuis commented 1 year ago

I have the LilyGO TTGO T-Beam V1.1 an installed the libraries in C:\Users\jpfla\Documents\Arduino\libraries as indicated. Then I get the following error: In file included from C:\Users\jpfla\AppData\Local\Temp\arduino_modified_sketch_546438\TinyGPS_Example.ino:7: boards.h:26:10: fatal error: XPowersAXP2101.tpp: No such file or directory

include "XPowersAXP2101.tpp"

      ^~~~~~~~~~~~~~~~~~~~

compilation terminated. I get this error with Arduino IDE 1.8.19 as well as with 2.0.4 and with more examples than this one e.g. TinyGPS_KitchenSink: In file included from C:\Users\jpfla\AppData\Local\Temp\arduino_modified_sketch_825818\TinyGPS_KitchenSink.ino:7: boards.h:26:10: fatal error: XPowersAXP2101.tpp: No such file or directory

include "XPowersAXP2101.tpp"

      ^~~~~~~~~~~~~~~~~~~~

compilation terminated.

lewisxhe commented 1 year ago

Please re clone the repository and re copy the XPowersLib in the lib folder to your arduino libraries directory

warnerthuis commented 1 year ago

Done. Nothing changed.

warnerthuis commented 1 year ago

I'll try on a different pc that is running W10 in stead of W11.

lewisxhe commented 1 year ago

请你查看boards.h 中是否与现在的一致! https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/blob/fea8c3397aa97ffb2e477bbfcfeb9f7d34f8c8d5/examples/GPS/TinyGPS_KitchenSink/boards.h#L26

warnerthuis commented 1 year ago

on the other machine it works ok. So I will (after breakfast) on my main machine remove both ide's and do a clean install. But first breakfast.

lewisxhe commented 1 year ago

No, in fact, you don't need to delete Arduino, you just need to delete Lilygo-Lora-Series this folder, then replace the Xpowerslib in libraries re -replaced with the current Xpowerslib

warnerthuis commented 1 year ago

To be certain I removed both ide's from the pc and deleted all directories also in AppData. Then I installed the V1 version only. Now it works.