Compile exemple go qml

Try compile


and have many errors

panic: runtime error: cgo argument has Go pointer to Go pointer

goroutine 1 [running, locked to thread]:
gopkg.in/qml.v1.wrapGoValue.func1(0x3f148060, 0x2ec29728, 0x2ec1ab20, 0x5e1ca0)
C:/GOpath/src/gopkg.in/qml.v1/bridge.go:254 +0x47
gopkg.in/qml.v1.wrapGoValue(0x3f0f8480, 0x4df8a0, 0x3f136170, 0x1, 0x0)
C:/GOpath/src/gopkg.in/qml.v1/bridge.go:254 +0x1bb
gopkg.in/qml.v1.packDataValue(0x4df8a0, 0x3f136170, 0x3f136190, 0x3f0f8480, 0x442a01)
C:/GOpath/src/gopkg.in/qml.v1/datatype.go:116 +0x17a
gopkg.in/qml.v1.(*Context).SetVar.func1()
C:/GOpath/src/gopkg.in/qml.v1/qml.go:300 +0x7a
gopkg.in/qml.v1.hookIdleTimer()
C:/GOpath/src/gopkg.in/qml.v1/bridge.go:190 +0x54
gopkg.in/qml.v1._cgoexpwrap_12e053628541_hookIdleTimer()
gopkg.in/qml.v1/_obj/_cgo_gotypes.go:1009 +0x17
gopkg.in/qml.v1._Cfunc_applicationExec()
gopkg.in/qml.v1/_obj/_cgo_gotypes.go:231 +0x33
gopkg.in/qml.v1.Run(0x4fd1c8, 0x0, 0x0)
C:/GOpath/src/gopkg.in/qml.v1/bridge.go:63 +0xba

I set GODEBUG environment and compile successful
GODEBUG=cgocheck=0

That still sounds like a problem that should be fixed in the qml package. You haven’t solved the problem, just disabled the check for it. But go-qml hasn’t been updated in several years from what I can see, and this problem originates with Go 1.6: https://github.com/go-qml/qml/issues/170.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.