Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an errror when compiling to wasm #584

Closed
ThePuzzledDev opened this issue Dec 4, 2023 · 2 comments
Closed

Getting an errror when compiling to wasm #584

ThePuzzledDev opened this issue Dec 4, 2023 · 2 comments

Comments

@ThePuzzledDev
Copy link

Go version: go version go1.21.4 linux/amd64
Go-SDL2 version: 0.4.36
SDL2 version: 2.28.5
OS: JS
Architecture: WASM

When I attempt to compile to wasm I get the error: github.com/veandco/go-sdl2/img: build constraints exclude all Go files in /home/usr/.go/pkg/mod/github.com/veandco/[email protected]/img.

I'm using the command: env GOOS=js GOARCH=wasm go build -o wasm/game.wasm .
I've also tried env GOOS=js GOARCH=wasm CC=gcc go build -o wasm/game.wasm . aswell as env GOOS=js GOARCH=wasm CGOENABLED=1 CC=gcc go build -o wasm/game.wasm .

@ThePuzzledDev ThePuzzledDev changed the title Getting and errror when compiling to wasm Getting an errror when compiling to wasm Dec 4, 2023
@veeableful
Copy link
Contributor

Hi @Debuholden, unfortunately we don't currently support WASM.

@ThePuzzledDev
Copy link
Author

ThePuzzledDev commented Dec 6, 2023

Ok, thanks for letting me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants