I had a production-ready app written in go-qml running on windows building from msys2, but I haven't worked on it for a while. I'm surprised it is crashing for you. I also used MXE from linux to cross compile, but if you aren't using Linux I wouldn't recommend that.
I never tried running in 64-bit. Can you send the panic you are getting in 32-bit?
$ cd ~/mygo/src/gopkg.in/qml.v1/examples/controls/tableview
$ go build
$ ./tableview.exe
Exception 0xc0000005 0x0 0x1 0x1
PC=0x1
signal arrived during external code execution
gopkg.in/qml%2ev1._Cfunc_componentCreateWindow(0x3a8bb80, 0x0, 0x0)
??:0 +0x33
gopkg.in/qml%2ev1.(*Common).CreateWindow.func1()
c:/msys64/home/ben/mygo/src/gopkg.in/qml.v1/qml.go:750 +0x3e
gopkg.in/qml%2ev1.hookIdleTimer()
c:/msys64/home/ben/mygo/src/gopkg.in/qml.v1/bridge.go:190 +0x53
gopkg.in/qml%2ev1._Cfunc_applicationExec()
??:0 +0x2f
gopkg.in/qml%2ev1.Run(0x54e5bc, 0x0, 0x0)
c:/msys64/home/ben/mygo/src/gopkg.in/qml.v1/bridge.go:63 +0x142
main.main()
c:/msys64/home/ben/mygo/src/gopkg.in/qml.v1/examples/controls/tableview/tableview.go:10 +0x26
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
c:/go/src/runtime/asm_386.s:1662 +0x1
goroutine 5 [chan receive]:
gopkg.in/qml%2ev1.RunMain(0x13ca0020)
c:/msys64/home/ben/mygo/src/gopkg.in/qml.v1/bridge.go:88 +0xb3
gopkg.in/qml%2ev1.(*Common).CreateWindow(0x13c7c010, 0x0, 0x8)
c:/msys64/home/ben/mygo/src/gopkg.in/qml.v1/qml.go:751 +0xfd
main.run(0x0, 0x0)
c:/msys64/home/ben/mygo/src/gopkg.in/qml.v1/examples/controls/tableview/tableview.go:24 +0x85
gopkg.in/qml%2ev1.Run.func1(0x13c283c0, 0x54e5bc)
c:/msys64/home/ben/mygo/src/gopkg.in/qml.v1/bridge.go:60 +0x2a
created by gopkg.in/qml%2ev1.Run
c:/msys64/home/ben/mygo/src/gopkg.in/qml.v1/bridge.go:62 +0x13d
eax 0x1
ebx 0x3a43130
ecx 0x34a2fbb0
edx 0x34a415b0
edi 0x1fc
esi 0x38270000
ebp 0x34ea2e78
esp 0xa99cec
eip 0x1
eflags 0x210206
cs 0x23
fs 0x53
gs 0x2b
I had a production-ready app written in go-qml running on windows building from msys2, but I haven't worked on it for a while. I'm surprised it is crashing for you. I also used MXE from linux to cross compile, but if you aren't using Linux I wouldn't recommend that.
import QtQuick 2.2
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.2
ApplicationWindow {
id: window
visible: true
title: "Table View Example"
ListModel {
id: largeModel
Component.onCompleted: {
// 5 items works OK... but 5000 does not :-(
for (var i=0 ; i< 5000; ++i)
largeModel.append({"name":"Person "+i})
}
}
TableView {
id: tabView
anchors.fill: parent
TableViewColumn {
id: nameColumn
title: "Name"
role: "name"
movable: false
resizable: false
}
model: largeModel
}
}
$ qmlscene.exe crashy.qml
Segmentation fault
I have no problem with 64 bit msys2 packages. What kind of problem you are suspicious of?
I also have some problem of this kind. Setting the environment variable QT_OPENGL=angle solves them for me (that is, if I understand correctly, using Direct3D instead of OpenGL with a compatibility layer).