Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on go1.16.6 linux/amd64 #313

Open
immortalt opened this issue Aug 13, 2021 · 3 comments
Open

Can't install on go1.16.6 linux/amd64 #313

immortalt opened this issue Aug 13, 2021 · 3 comments

Comments

@immortalt
Copy link

I finished the previous steps to install sdk, but I failed to run the last command:

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

the error is:

EOF
/snap/go/7954/pkg/tool/linux_amd64/compile -o $WORK/b001/_pkg_.a -trimpath "$WORK/b001=>" -p github.com/sciter-sdk/go-sciter -buildid VgaeZjs39xGnGslqjW5p/VgaeZjs39xGnGslqjW5p -goversion go1.16.6 -D "" -importcfg $WORK/b001/importcfg -pack -c=4 /home/lenovo/go/pkg/mod/github.com/sciter-sdk/[email protected]/generate.go /home/lenovo/go/pkg/mod/github.com/sciter-sdk/[email protected]/types_string.go /home/lenovo/go/pkg/mod/github.com/sciter-sdk/[email protected]/value.go /home/lenovo/go/pkg/mod/github.com/sciter-sdk/[email protected]/wrapper.go $WORK/b001/_cgo_gotypes.go $WORK/b001/sciter.cgo1.go $WORK/b001/sciter_linux.cgo1.go $WORK/b001/types.cgo1.go $WORK/b001/utils.cgo1.go $WORK/b001/_cgo_import.go
# github.com/sciter-sdk/go-sciter
/home/lenovo/go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:1025:142: cannot use _cgo1 (type *_Ctype_HWINDOW) as type **_Ctype_struct__GtkWidget in argument to _Cfunc_SciterGetElementHwnd

which is very similar to #245.
What should I do now to install the sdk?

@laoshaw
Copy link

laoshaw commented Nov 18, 2021

this happens with go 1.17.2 as well

@vikulin
Copy link

vikulin commented Feb 17, 2022

Confirmed for golang 1.17.7. Full log:

$ cd examples/simple 
$ go build                   
# github.com/sciter-sdk/go-sciter
../../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:110:85: cannot use _cgo0 (type _Ctype_HWINDOW) as type unsafe.Pointer in argument to _Cfunc_SciterDataReady
../../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:141:85: cannot use _cgo0 (type _Ctype_HWINDOW) as type unsafe.Pointer in argument to _Cfunc_SciterDataReadyAsync
../../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:151:120: cannot use _cgo0 (type _Ctype_HWINDOW) as type unsafe.Pointer in argument to _Cfunc_SciterLoadFile
../../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:174:104: cannot use _cgo0 (type _Ctype_HWINDOW) as type unsafe.Pointer in argument to _Cfunc_SciterLoadHtml
../../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:242:142: cannot use _cgo0 (type _Ctype_HWINDOW) as type unsafe.Pointer in argument to _Cfunc_SciterSetCallback
../../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:296:60: cannot use _cgo0 (type _Ctype_HWINDOW) as type unsafe.Pointer in argument to _Cfunc_SciterSetCSS
../../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:319:110: cannot use _cgo0 (type _Ctype_HWINDOW) as type unsafe.Pointer in argument to _Cfunc_SciterSetMediaType
../../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:330:96: cannot use _cgo0 (type _Ctype_HWINDOW) as type unsafe.Pointer in argument to _Cfunc_SciterGetMinWidth
../../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:339:106: cannot use _cgo0 (type _Ctype_HWINDOW) as type unsafe.Pointer in argument to _Cfunc_SciterGetMinHeight
../../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:359:48: cannot use _cgo0 (type _Ctype_HWINDOW) as type unsafe.Pointer in argument to _Cfunc_SciterCall
../../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:359:48: too many errors
$

@vikulin
Copy link

vikulin commented Feb 17, 2022

This solution works for me: #245 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants