Issue:
When trying to compile from source on a Linux machine platformio/pioarduino complains that the given platform espressif32 does not have Arduino support. On Windows the same error is shown.
Error: This board doesn't support Arduino framework!
The compiler also complains that it can't find the Network lib-dep or the include /root/.platformio/packages/framework-arduinoespressif32/libraries/Network/src. Changing the path does nothing. Looking inside of the path, there is no Network folder/lib inside the framework with espressif32.
src/main.cpp:1:10: fatal error: Network.h: No such file or directory
How to reproduce:
Get a fresh install of platformio/pioarduino on Linux or Windows (doesn't matter). Alternatively delete the folders inside .platformio/platforms and .platformio/packages related to espressif. Clone repo, start compiling with pio run.
Possible solution/workaround:
My workaround and possible fix is changing the platform to the stable git version of pioarduino's platform-espressif32 as this version has the folder Network in the libraries dir. Also for compiling I changed the include path from a hard-coded to using a platformio variable, so the installation path of platformio doesn't matter. Now the code compiles. Bonus: The code compiles on Windows too.
Question:
Is there a recommended configuration for platformio and/or changes to platformio.ini for compiling this project? This seams like an upstream issue, I don't know if this workaround is suitable for a fix/PR.
Issue:
When trying to compile from source on a Linux machine platformio/pioarduino complains that the given platform
espressif32does not have Arduino support. On Windows the same error is shown.The compiler also complains that it can't find the
Networklib-dep or the include/root/.platformio/packages/framework-arduinoespressif32/libraries/Network/src. Changing the path does nothing. Looking inside of the path, there is noNetworkfolder/lib inside the framework withespressif32.How to reproduce:
Get a fresh install of platformio/pioarduino on Linux or Windows (doesn't matter). Alternatively delete the folders inside
.platformio/platformsand.platformio/packagesrelated to espressif. Clone repo, start compiling withpio run.Possible solution/workaround:
My workaround and possible fix is changing the platform to the stable git version of pioarduino's platform-espressif32 as this version has the folder Network in the libraries dir. Also for compiling I changed the include path from a hard-coded to using a platformio variable, so the installation path of platformio doesn't matter. Now the code compiles. Bonus: The code compiles on Windows too.
Question:
Is there a recommended configuration for platformio and/or changes to platformio.ini for compiling this project? This seams like an upstream issue, I don't know if this workaround is suitable for a fix/PR.