Skip to content

[Bug] (Compile from source) platformio.ini: platform missing arduino framework or "Network" source #1

@GreenVaildSig

Description

@GreenVaildSig

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions