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

go get sciter-sdk error #285

Closed Ja7ad closed 3 years ago

Ja7ad commented 3 years ago

hi

on install sciter-sdk i get error.

go version go1.15.7 windows/amd64

go get -x github.com/sciter-sdk/go-sciter

error while install :

mkdir -p D:\Project\go\pkg\mod\cache\vcs # git3 https://github.com/sciter-sdk/go-sciter
# lock D:\Project\go\pkg\mod\cache\vcs\6135312d29d808934a34c58764249f8b617a869a386da1740ffe1cf28eb3460e.lock# D:\Project\go\pkg\mod\cache\vcs\6135312d29d808934a34c58764249f8b617a869a386da1740ffe1cf28eb3460e for git3 https://github.com/sciter-sdk/go-sciter
cd D:\Project\go\pkg\mod\cache\vcs\6135312d29d808934a34c58764249f8b617a869a386da1740ffe1cf28eb3460e; git ls-remote -q origin
1.800s # cd D:\Project\go\pkg\mod\cache\vcs\6135312d29d808934a34c58764249f8b617a869a386da1740ffe1cf28eb3460e; git ls-remote -q origin
WORK=C:\Users\Moein\AppData\Local\Temp\go-build192866701
mkdir -p $WORK\b001\
cat >$WORK\b001\importcfg << 'EOF' # internal
# import config
packagefile fmt=c:\go\pkg\windows_amd64\fmt.a
packagefile runtime=c:\go\pkg\windows_amd64\runtime.a
EOF
cd D:\Project\go\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0
"c:\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "$WORK\\b001\\_pkg_.a" -trimpath "$WORK\\b001=>" -p github.com/sciter-sdk/go-sciter -complete -buildid QZUzdKUkqiPdSSzhlgLK/QZUzdKUkqiPdSSzhlgLK -goversion go1.15.7 -D "" -importcfg "$WORK\\b001\\importcfg" -pack -c=4 "D:\\Project\\go\\pkg\\mod\\github.com\\sciter-sdk\\go-sciter@v0.5.0\\generate.go" "D:\\Project\\go\\pkg\\mod\\github.com\\sciter-sdk\\go-sciter@v0.5.0\\types_string.go" "D:\\Project\\go\\pkg\\mod\\github.com\\sciter-sdk\\go-sciter@v0.5.0\\value.go" "D:\\Project\\go\\pkg\\mod\\github.com\\sciter-sdk\\go-sciter@v0.5.0\\wrapper.go"
# github.com/sciter-sdk/go-sciter
..\..\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0\types_string.go:27:9: undefined: BehaviorEvent
..\..\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0\types_string.go:62:9: undefined: MouseEvent
..\..\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0\types_string.go:78:9: undefined: CursorType
..\..\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0\types_string.go:89:9: undefined: KeyEvent
..\..\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0\types_string.go:100:9: undefined: FocusEvent
..\..\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0\types_string.go:111:9: undefined: ScrollEvent
..\..\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0\types_string.go:122:9: undefined: GestureCmd
..\..\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0\types_string.go:139:9: undefined: GestureState
..\..\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0\types_string.go:171:9: undefined: GestureTypeFlag
..\..\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0\types_string.go:197:9: undefined: DrawEvent
..\..\pkg\mod\github.com\sciter-sdk\go-sciter@v0.5.0\types_string.go:197:9: too many errors
Ja7ad commented 3 years ago

oh I found my problem , CGO_ENABLED not enabled I enable via :

go env -w CGO_ENABLED=1