wasmerio / wasmer-go

🐹🕸️ WebAssembly runtime for Go
https://pkg.go.dev/github.com/wasmerio/wasmer-go
MIT License
2.84k stars 161 forks source link

Unable to Run wasmer-go using GOOS=linux GOARCH=amd64 #326

Open ErKiran opened 2 years ago

ErKiran commented 2 years ago

Summary

When I build my project using GOOS=linux GOARCH=amd64 it gives me error `# nepse-backend/utils
utils/utils.go:159:12: undefined: wasmer.NewEngine

utils/utils.go:160:11: undefined: wasmer.NewStore
utils/utils.go:162:15: undefined: wasmer.NewModule
utils/utils.go:164:18: undefined: wasmer.NewImportObject
utils/utils.go:165:17: undefined: wasmer.NewInstance`

But I can build my project on my default machine with No Issue. I am building my project on Mac M1. Also, I can build it GOOS=darwin GOARCH=amd64 go build .

RonaldinhoL commented 5 months ago

same here, i am just run the simplest demo in windows