Closed cyclamenkde closed 6 years ago
D:\SourceCode\GoProj\src\goWin>go build -ldflags="-H windowsgui" # github.com/lxn/walk ..\github.com\lxn\walk\bitmap.go:58: undefined: win.GdiFlush ..\github.com\lxn\walk\bitmap.go:194: undefined: win.GdiFlush ..\github.com\lxn\walk\bitmap.go:208: undefined: win.SetDIBits ..\github.com\lxn\walk\bitmap.go:247: undefined: win.AlphaBlend ..\github.com\lxn\walk\bitmap.go:258: undefined: win.BLENDFUNCTION ..\github.com\lxn\walk\brush.go:252: undefined: win.CreatePatternBrush ..\github.com\lxn\walk\brush.go:349: undefined: win.TRIVERTEX ..\github.com\lxn\walk\brush.go:360: undefined: win.GRADIENT_TRIANGLE ..\github.com\lxn\walk\brush.go:369: undefined: win.GradientFill ..\github.com\lxn\walk\brush.go:369: undefined: win.GRADIENT_FILL_TRIANGLE ..\github.com\lxn\walk\brush.go:369: too many errors
jun@jun-IdeaCentre-B545:\~/codes/golang/src/goWin$ export GOOS="windows" jun@jun-IdeaCentre-B545:\~/codes/golang/src/goWin$ go build
need to go get -u github.com/lxn/win as well.
compile under Windows: error
D:\SourceCode\GoProj\src\goWin>go build -ldflags="-H windowsgui" # github.com/lxn/walk ..\github.com\lxn\walk\bitmap.go:58: undefined: win.GdiFlush ..\github.com\lxn\walk\bitmap.go:194: undefined: win.GdiFlush ..\github.com\lxn\walk\bitmap.go:208: undefined: win.SetDIBits ..\github.com\lxn\walk\bitmap.go:247: undefined: win.AlphaBlend ..\github.com\lxn\walk\bitmap.go:258: undefined: win.BLENDFUNCTION ..\github.com\lxn\walk\brush.go:252: undefined: win.CreatePatternBrush ..\github.com\lxn\walk\brush.go:349: undefined: win.TRIVERTEX ..\github.com\lxn\walk\brush.go:360: undefined: win.GRADIENT_TRIANGLE ..\github.com\lxn\walk\brush.go:369: undefined: win.GradientFill ..\github.com\lxn\walk\brush.go:369: undefined: win.GRADIENT_FILL_TRIANGLE ..\github.com\lxn\walk\brush.go:369: too many errors
Cross-compile under Ubuntu: Success
jun@jun-IdeaCentre-B545:\~/codes/golang/src/goWin$ export GOOS="windows" jun@jun-IdeaCentre-B545:\~/codes/golang/src/goWin$ go build