second-state / WasmEdge-go

The GO language SDK and API for WasmEdge
https://www.secondstate.io/articles/extend-golang-app-with-webassembly-rust/
Apache License 2.0
107 stars 16 forks source link

Error when building examples #43

Open alanorwick opened 1 year ago

alanorwick commented 1 year ago

Error is: could not determine kind of name for C.WasmEdge_Driver_UniTool

Was attempting to build the Fibonacci example: https://github.com/second-state/WasmEdge-go-examples/tree/master

Running on MacOS with an ARM chip. Any thoughts on how to get the build to work?

hydai commented 1 year ago

Have you installed WasmEdge? If so, what's the version you use?

loredanacirstea commented 10 months ago

I just stumbled on the same issue.

MacOS Monterey 12.7

VERSION=0.13.4
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v $VERSION
# github.com/second-state/WasmEdge-go/wasmedge
../../go/pkg/mod/github.com/second-state/!wasm!edge-go@v0.13.4/wasmedge/cli.go:34:9: could not determine kind of name for C.WasmEdge_Driver_UniTool
make: *** [build] Error 1

But I also tried on a MacOS Catalina 10.15.7 and it worked without errors.