go-sciter icon indicating copy to clipboard operation
go-sciter copied to clipboard

Cross-compilation: mac os to windows compile

Open deepch opened this issue 9 years ago • 2 comments

static-ip-171-25:ui$ GOOS=windows GOARCH=386 go build *.go

github.com/oskca/sciter

src/github.com/oskca/sciter/types_string.go:27: undefined: BehaviorEvent src/github.com/oskca/sciter/types_string.go:62: undefined: MouseEvent src/github.com/oskca/sciter/types_string.go:78: undefined: CursorType src/github.com/oskca/sciter/types_string.go:89: undefined: KeyEvent src/github.com/oskca/sciter/types_string.go:100: undefined: FocusEvent src/github.com/oskca/sciter/types_string.go:111: undefined: ScrollEvent src/github.com/oskca/sciter/types_string.go:122: undefined: GestureCmd src/github.com/oskca/sciter/types_string.go:139: undefined: GestureState src/github.com/oskca/sciter/types_string.go:171: undefined: GestureTypeFlag src/github.com/oskca/sciter/types_string.go:197: undefined: DrawEvent src/github.com/oskca/sciter/types_string.go:197: too many errors static-ip-171-25:ui$

deepch avatar Jan 14 '17 19:01 deepch

Seeing the same issue trying to cross-compile from ubuntu

swiftdv8 avatar Jun 09 '17 11:06 swiftdv8

You guys need to use different compiler. For example install ming and try this:

CC=i686-w64-mingw32-gcc GOOS=windows GOARCH=386 go build *.go

krzysztofantczak avatar Oct 01 '17 21:10 krzysztofantczak