go-qml / qml

QML support for the Go language
Other
1.96k stars 189 forks source link

several errors in Windows #128

Closed noliar closed 9 years ago

noliar commented 9 years ago

Reason of first push: I run the example ( "painting-es2"). But I get a error to install "gl/es2" package. And in Windows, the linker of OpenGL is not "GL". It should be "opengl32". I test it in Windows 8.1 with Go1.3.3 and Qt5.3.2.

noliar commented 9 years ago

Reason of second push: When I use Go1.4rc(or rc2), Qt5.4rc and MinGW64( 32bit, 4.9.1), I've got several errors like this: "cpp/capi.cpp:1:24: fatal error: QApplication: No such file or directory".

So I have to change it from QApplication to QtWidgets/QApplication to make installation correct.

noliar commented 9 years ago

Reason of 3rd push: When I run a exe which is built in Go1.4rc(or rc2), Qt5.4rc and MinGW64( 32bit, 4.9.1) , I've got several errors like this: (signal arrived during cgo execution;gopkg.in/qml%2ev1._Cfunc_idleTimerInit();F:/GOPATH/src/gopkg.in/qml.v1/:191 +0x3f)

It's wrong with idleTimerInit during runtime. And I just test a method named idleTimerInit (void idleTimerInit(){static IdleTimer __singleton;}) . I get the same error. So I changed the declaration of "singleton" member.

By the way, the reason I built it with MinGW64(32 bit ,4.9.1) is that Qt5.4 is built with MinGW64 4.9.1. And MinGW is still 4.8.1.