Skip to content

Cannot compile on Windows due to several issues #93

Description

@Sparkwave2

When trying to compile using go run ./ the following errors display:

github.com/veandco/go-sdl2/gfx: build constraints exclude all Go files in C:\Users\Plazm\go\pkg\mod\github.com\veandco\go-sdl2@v0.4.35\gfx
github.com/veandco/go-sdl2/img: build constraints exclude all Go files in C:\Users\Plazm\go\pkg\mod\github.com\veandco\go-sdl2@v0.4.35\img
github.com/veandco/go-sdl2/ttf: build constraints exclude all Go files in C:\Users\Plazm\go\pkg\mod\github.com\veandco\go-sdl2@v0.4.35\ttf

I tried compiling using go run ./build_script/main.go -b and it behaved differently, instead outputting this

< Beginning build to "bin\windows-0.8-Release-64" for windows. >
<Assets copied.>
<Building binary with args:  [go build -ldflags -s -w -H windowsgui -tags release -o bin\windows-0.8-Release-64\MasterPlan.exe ./] .>
<ERROR:  exit status 1>
< Beginning build to "bin\windows-0.8-Demo-64" for windows. >
<Assets copied.>
<Building binary with args:  [go build -ldflags -s -w -H windowsgui -tags demo -o bin\windows-0.8-Demo-64\MasterPlan.exe ./] .>
<ERROR:  exit status 1>

My Go version is 1.21.0, and I'm building this on Windows 10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions