Skip to content

Build for esp32 fails #883

@1c3t3a

Description

@1c3t3a

Hi there! First of all thanks for putting together WAMR!
I am trying to build the demo in product-mini/platforms/esp-idf, but get an error concerning the headers in core/shared/platform/esp-idf.
When I execute the following in my build folder:

cmake .. -DCMAKE_TOOLCHAIN_FILE=$IDF_PATH/tools/cmake/toolchain-esp32.cmake -DTARGET=esp32 -GNinja
cmake --build .

I get the error

/../wasm-micro-runtime/product-mini/platforms/esp-idf/../../../core/shared/platform/esp-idf/platform_internal.h:18:10: fatal error: FreeRTOS.h: No such file or directory
 #include <FreeRTOS.h>
          ^~~~~~~~~~~~
compilation terminated.

When trying to resolve this by putting freertos/FreeRTOS.h, I end up with the following error:

/platform/esp-idf/platform_internal.h:21:10: fatal error: os_api.h: No such file or directory
 #include <os_api.h>
          ^~~~~~~~~~
compilation terminated.

I neither found the header os_api.h in WAMR nor in ESP-IDF.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions