Open neclepsio opened 5 years ago
It should be related to https://github.com/golang/proposal/blob/master/design/27539-internal-abi.md#compatibility.
I was able to make it work removing the Refs
function from assembly and adding this definition in a Windows-only file:
package cdata
import (
"golang.org/x/sys/windows"
)
func Ref() uintptr {
return uintptr(windows.GetCurrentThreadId())
}
Maybe this leaks a pointer so it shoud be modified to return a uint32
, along with guiMainRef
and guiPaintRef
in bridge.go
(and fixing related compilation errors). I suppose Linux and MacOS can use a similar approach using syscall.Gettid
.
Your solution is only working in windows?
In neclepsio/qml-go there is a fix tested under Windows and Linux.
Thanks a lot, i merged your changes in my fork and i still had to rename the assembler files to get it working :)
Compiling using Go 1.12 gives the following error: