sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.57k stars 268 forks source link

Cross-compilation: mac os to windows compile #56

Open deepch opened 7 years ago

deepch commented 7 years ago

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$

swiftdv8 commented 7 years ago

Seeing the same issue trying to cross-compile from ubuntu

krzysztofantczak commented 6 years ago

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