wasmer icon indicating copy to clipboard operation
wasmer copied to clipboard

There is error when I am tryin to run converted raylib game from wasm to apple M1

Open lvdpower opened this issue 2 years ago • 0 comments

Describe the bug

There is error when I am tryin to run converted raylib game from wasm to apple M1
(I have compiled to webassembly this game and it run via browser good)

https://github.com/zf3/raylib-games-wasm/blob/main/README.md

But I am trying to convert it to native and I have this error.

timur@Mac-mini-timur arkanoid % ./wasmer create-exe arkanoid.wasm -o ./program
Compiler: cranelift Target: aarch64-apple-darwin Format: Symbols Using libwasmer file: /Users/timur/.wasmer/lib/libwasmer.a Using path /Users/timur/.wasmer/lib/libwasmer.a as libwasmer path. ✔ Native executable compiled successfully to ./program.

timur@Mac-mini-timur arkanoid % ./program Error getting WASI imports! Error len: 44 Failed to resolve import "env" "glViewport"

echo "`wasmer -V` | `rustc -V` | `uname -m`"

Steps to reproduce

Expected behavior

Actual behavior

Additional context

lvdpower avatar Sep 11 '22 18:09 lvdpower