Stream: wamr

Topic: using wasmr on esp-idf


view this post on Zulip organo (Mar 15 2023 at 04:03):

I downloaded the example code for running wasmr on the esp32, and it failed to compile as it couldn't find arpa/inet.h. The reason for this is that espressif has recently modularized the esp-idf, and this header is in esp_lwip. I added lwip to set (COMPONENTS ${IDF_TARGET} lwip main freertos esptool_py wamr). This fixed that issue, but then I keep getting that it can't find esp_timer.h. This is in esp_timer component, but adding it to the set doesn't fix the issue

view this post on Zulip Notification Bot (Mar 15 2023 at 05:49):

This topic was moved here from #general > using wasmr on esp-idf by Bailey Hayes.

view this post on Zulip Wang Xin (Mar 15 2023 at 06:51):

@dongsheng.yan Hi dongsheng, do you have any idea about this issue?

view this post on Zulip dongsheng.yan (Mar 16 2023 at 04:02):

organo said:

I downloaded the example code for running wasmr on the esp32, and it failed to compile as it couldn't find arpa/inet.h. The reason for this is that espressif has recently modularized the esp-idf, and this header is in esp_lwip. I added lwip to set (COMPONENTS ${IDF_TARGET} lwip main freertos esptool_py wamr). This fixed that issue, but then I keep getting that it can't find esp_timer.h. This is in esp_timer component, but adding it to the set doesn't fix the issue

hi, @organo , you are testing wamr or wasmer on esp32? and what's version esp-idf installed in your system?

view this post on Zulip organo (Mar 16 2023 at 18:20):

hi @dongsheng.yan, wamr and ESP-IDF v5.1-dev-3972-g1559b6309f

view this post on Zulip dongsheng.yan (Mar 23 2023 at 08:12):

organo said:

hi dongsheng.yan, wamr and ESP-IDF v5.1-dev-3972-g1559b6309f

@organo , could you check if this PR fix your isssue? https://github.com/bytecodealliance/wasm-micro-runtime/pull/2050

WebAssembly Micro Runtime (WAMR). Contribute to bytecodealliance/wasm-micro-runtime development by creating an account on GitHub.

Last updated: Oct 23 2024 at 20:03 UTC