Skip to content

Cannot compile on Windows due to several issues #93

@Sparkwave2

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\[email protected]\gfx
github.com/veandco/go-sdl2/img: build constraints exclude all Go files in C:\Users\Plazm\go\pkg\mod\github.com\veandco\[email protected]\img
github.com/veandco/go-sdl2/ttf: build constraints exclude all Go files in C:\Users\Plazm\go\pkg\mod\github.com\veandco\[email protected]\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

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