You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 .
The text was updated successfully, but these errors were encountered:
ThePuzzledDev
changed the title
Getting and errror when compiling to wasm
Getting an errror when compiling to wasm
Dec 4, 2023
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 asenv GOOS=js GOARCH=wasm CGOENABLED=1 CC=gcc go build -o wasm/game.wasm .
The text was updated successfully, but these errors were encountered: