Giter Club home page Giter Club logo

Comments (16)

therecipe avatar therecipe commented on May 12, 2024

Hey

The issue occurred because scene.AddLine2 created a new base QGraphicsLineItem, but assumed that it was a subclass of QGraphicsLineItem.

I fixed this, but if you would want to be able to override virtual functions in QGraphicsLineItem, you would need to create a new QGraphicsLineItem with widgets.NewQGraphicsLineItem and then add it to the scene with scene.AddItem.

This is working for me now:

func NewCanvas() *widgets.QWidget {
    canvas = widgets.NewQWidget(nil, 0)
    scene = widgets.NewQGraphicsScene(nil)
    view = widgets.NewQGraphicsView(nil)

    var font = gui.NewQFont2("Meiryo", 20, 2, false)
    scene.AddText("Hello 世界", font)

    var color = gui.NewQColor2(255, 0, 0, 255)
    var pen = gui.NewQPen3(color)

    scene.AddLine2(0, scene.Height(), scene.Width(), scene.Height(), pen)

    view.SetScene(scene)

    var layout = widgets.NewQVBoxLayout()
    layout.AddWidget(view, 0, 0)

    canvas.SetLayout(layout)

    return canvas
}

I pushed the changes, and also added this as a new example under widgets/graphicsscene.

from qt.

5k3105 avatar 5k3105 commented on May 12, 2024
C:\Users\5k3105\goworksp\src\github.com\therecipe\qt (master)
λ setup

go run ./internal/setup/check.go

if 0 NEQ 0 exit /b 0

go run C:\Users\5k3105\goworksp/src/github.com/therecipe/qt/internal/setup/generate.go
________________________Generate________________________
core                     funcs:  4037 (-  981)   15s
androidextras            funcs:    43 (-    3)   0
gui                      funcs: 18704 (-  866)   14s
network                  funcs:   607 (-  267)   3s
sql                      funcs:   294 (-   71)   0
xml                      funcs:   323 (-  117)   1s
dbus                     funcs:   175 (-   81)   0
nfc                      funcs:   111 (-   37)   0
script                   funcs:   209 (-   37)   0
sensors                  funcs:   254 (-   11)   1s
positioning              funcs:   179 (-   69)   0
widgets                  funcs:  5090 (-  432)   1m23s
qml                      funcs:   281 (-   37)   1s
websockets               funcs:    71 (-   27)   0
xmlpatterns              funcs:   162 (-   50)   0
bluetooth                funcs:   207 (-  100)   1s
webchannel               funcs:    13 (-    2)   0
svg                      funcs:    60 (-    5)   0
multimedia               funcs:  1155 (-  160)   8s
quick                    funcs:   454 (-   70)   2s
help                     funcs:    91 (-   10)   1s
location                 funcs:   549 (-   41)   0
scripttools              funcs:    14 (-    0)   0
multimediawidgets        funcs:    59 (-    5)   0

if 0 NEQ 0 exit /b 0

go run C:\Users\5k3105\goworksp/src/github.com/therecipe/qt/internal/setup/install.go
________________________Install-desktop________________________
core                                    2m34s
androidextras                           1s
gui                                     2m22s
network                                 38s
sql                                     13s
xml                                     24s
dbus                                    14s
nfc                                     9s
script                                  11s
sensors                                 32s
positioning                             11s
widgets

install.Widgets
output:# github.com/therecipe/qt/widgets
C:\Windows\go-build413094914\github.com\therecipe\qt\widgets\_obj\_cgo_main.c: In function 'crosscall2':
C:\Windows\go-build413094914\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:2:23: warning: unused parameter 'fn' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                       ^
C:\Windows\go-build413094914\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:2:46: warning: unused parameter 'a' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                                              ^
C:\Windows\go-build413094914\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:2:53: warning: unused parameter 'c' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                                                     ^
C:\Windows\go-build413094914\github.com\therecipe\qt\widgets\_obj\_cgo_main.c: In function '_cgo_allocate':
C:\Windows\go-build413094914\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:5:26: warning: unused parameter 'a' [-Wunused-parameter]
 void _cgo_allocate(void *a, int c) { }
                          ^
C:\Windows\go-build413094914\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:5:33: warning: unused parameter 'c' [-Wunused-parameter]
 void _cgo_allocate(void *a, int c) { }
                                 ^
C:\Windows\go-build413094914\github.com\therecipe\qt\widgets\_obj\_cgo_main.c: In function '_cgo_panic':
C:\Windows\go-build413094914\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:6:23: warning: unused parameter 'a' [-Wunused-parameter]
 void _cgo_panic(void *a, int c) { }
                       ^
C:\Windows\go-build413094914\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:6:30: warning: unused parameter 'c' [-Wunused-parameter]
 void _cgo_panic(void *a, int c) { }
                              ^
# github.com/therecipe/qt/widgets
widgets\qapplication.go: In function '_cgo_04be3ca5e49c_Cfunc_QApplication_QApplication_AboutQt':
widgets\qapplication.go:115:49: warning: unused variable 'a' [-Wunused-variable]
 }
                                                 ^
widgets\qapplication.go: In function '_cgo_04be3ca5e49c_Cfunc_QApplication_QApplication_Beep':
widgets\qapplication.go:170:49: warning: unused variable 'a' [-Wunused-variable]
  defer qt.Recovering("QApplication::setStartDragTime")
                                                 ^
widgets\qapplication.go: In function '_cgo_04be3ca5e49c_Cfunc_QApplication_QApplication_CloseAllWindows':
widgets\qapplication.go:179:49: warning: unused variable 'a' [-Wunused-variable]
   C.QApplication_SetStyleSheet(ptr.Pointer(), C.CString(sheet))
                                                 ^
# github.com/therecipe/qt/widgets
widgets\qscrollerproperties.go: In function '_cgo_04be3ca5e49c_Cfunc_QScrollerProperties_QScrollerProperties_UnsetDefaultScrollerProperties':
widgets\qscrollerproperties.go:89:49: warning: unused variable 'a' [-Wunused-variable]
  QScrollerProperties__FrameRate                      = QScrollerProperties__ScrollMetric(19)
                                                 ^
# github.com/therecipe/qt/widgets
widgets\qtooltip.go: In function '_cgo_04be3ca5e49c_Cfunc_QToolTip_QToolTip_HideText':
widgets\qtooltip.go:33:49: warning: unused variable 'a' [-Wunused-variable]
 }
                                                 ^
# github.com/therecipe/qt/widgets
widgets\qwhatsthis.go: In function '_cgo_04be3ca5e49c_Cfunc_QWhatsThis_QWhatsThis_EnterWhatsThisMode':
widgets\qwhatsthis.go:46:49: warning: unused variable 'a' [-Wunused-variable]

                                                 ^
widgets\qwhatsthis.go: In function '_cgo_04be3ca5e49c_Cfunc_QWhatsThis_QWhatsThis_HideText':
widgets\qwhatsthis.go:55:49: warning: unused variable 'a' [-Wunused-variable]

                                                 ^
widgets\qwhatsthis.go: In function '_cgo_04be3ca5e49c_Cfunc_QWhatsThis_QWhatsThis_LeaveWhatsThisMode':
widgets\qwhatsthis.go:76:49: warning: unused variable 'a' [-Wunused-variable]

                                                 ^
# github.com/therecipe/qt/widgets
widgets\widgets.cpp:2028:51: warning: multi-character character constant [-Wmultichar]
  QList<QByteArray> aList = QByteArray(argv).split(',,,');
                                                   ^
widgets\widgets.cpp: In function 'void* QApplication_NewQApplication(int, char*)':
widgets\widgets.cpp:2028:56: warning: overflow in implicit constant conversion [-Woverflow]
  QList<QByteArray> aList = QByteArray(argv).split(',,,');
                                                        ^
widgets\widgets.cpp: At global scope:
widgets\widgets.cpp:9443:121: warning: unused parameter 'ok' [-Wunused-parameter]
 int QInputDialog_QInputDialog_GetInt(void* parent, char* title, char* label, int value, int min, int max, int step, int ok, int flags){

          ^
widgets\widgets.cpp:9447:125: warning: unused parameter 'ok' [-Wunused-parameter]
 char* QInputDialog_QInputDialog_GetItem(void* parent, char* title, char* label, char* items, int current, int editable, int ok, int flags, int inputMethodHints){

              ^
widgets\widgets.cpp:9451:106: warning: unused parameter 'ok' [-Wunused-parameter]
 char* QInputDialog_QInputDialog_GetMultiLineText(void* parent, char* title, char* label, char* text, int ok, int flags, int inputMethodHints){
                                                                                                          ^
widgets\widgets.cpp:9455:107: warning: unused parameter 'ok' [-Wunused-parameter]
 char* QInputDialog_QInputDialog_GetText(void* parent, char* title, char* label, int mode, char* text, int ok, int flags, int inputMethodHints){
                                                                                                           ^
# github.com/therecipe/qt/widgets
fatal error: runtime: failed to release pages

runtime stack:
runtime.throw(0x7a44c0, 0x20)
        c:/go/src/runtime/panic.go:527 +0x7f
runtime.sysFree(0x0, 0x10000000, 0x1c2fdb8)
        c:/go/src/runtime/mem_windows.go:86 +0x5b
runtime.mHeap_SysAlloc(0xb23640, 0x100000, 0x0)
        c:/go/src/runtime/malloc.go:418 +0x4a1
runtime.mHeap_Grow(0xb23640, 0x8, 0x0)
        c:/go/src/runtime/mheap.go:628 +0x52
runtime.mHeap_AllocSpanLocked(0xb23640, 0x1, 0x730754a8)
        c:/go/src/runtime/mheap.go:532 +0x574
runtime.mHeap_Alloc_m(0xb23640, 0x1, 0xe, 0x0, 0x730754a8)
        c:/go/src/runtime/mheap.go:425 +0x281
runtime.mHeap_Alloc.func1()
        c:/go/src/runtime/mheap.go:484 +0x3d
runtime.systemstack(0x1c2feb4)
        c:/go/src/runtime/asm_386.s:283 +0x81
runtime.mHeap_Alloc(0xb23640, 0x1, 0xe, 0x27f0100, 0x1ccc)
        c:/go/src/runtime/mheap.go:485 +0x5a
runtime.mCentral_Grow(0xb288a0, 0x0)
        c:/go/src/runtime/mcentral.go:190 +0x8e
runtime.mCentral_CacheSpan(0xb288a0, 0x730754a8)
        c:/go/src/runtime/mcentral.go:86 +0x439
runtime.mCache_Refill(0x350254, 0xe, 0x730754a8)
        c:/go/src/runtime/mcache.go:118 +0xae
runtime.mallocgc.func2()
        c:/go/src/runtime/malloc.go:614 +0x2b
runtime.systemstack(0x1212e000)
        c:/go/src/runtime/asm_386.s:267 +0x57
runtime.mstart()
        c:/go/src/runtime/proc1.go:668

goroutine 1 [running]:
runtime.systemstack_switch()
        c:/go/src/runtime/asm_386.s:222 fp=0x6329f670 sp=0x6329f66c
runtime.mallocgc(0xd0, 0x760540, 0x0, 0x72d7fee0)
        c:/go/src/runtime/malloc.go:615 +0x65a fp=0x6329f6d8 sp=0x6329f670
runtime.newobject(0x760540, 0x72d7fee0)
        c:/go/src/runtime/malloc.go:763 +0x41 fp=0x6329f6ec sp=0x6329f6d8
cmd/internal/obj/x86.stacksplit(0x1217f500, 0x72d7fee0, 0x0, 0xc, 0x3d76b020)
        c:/go/src/cmd/internal/obj/x86/obj6.go:970 +0x21f fp=0x6329f818 sp=0x6329f6ec
cmd/internal/obj/x86.preprocess(0x1217f500, 0x51c2bf80)
        c:/go/src/cmd/internal/obj/x86/obj6.go:501 +0x61e fp=0x6329fa94 sp=0x6329f818
cmd/internal/obj.Writeobjdirect(0x1217f500, 0x1f7fcc20)
        c:/go/src/cmd/internal/obj/objfile.go:296 +0x2fb fp=0x6329fbe8 sp=0x6329fa94
cmd/compile/internal/gc.dumpobj()
        c:/go/src/cmd/compile/internal/gc/obj.go:96 +0xccb fp=0x6329fd38 sp=0x6329fbe8
cmd/compile/internal/gc.Main()
        c:/go/src/cmd/compile/internal/gc/lex.go:492 +0x1a8d fp=0x6329feb8 sp=0x6329fd38
cmd/compile/internal/x86.Main()
        c:/go/src/cmd/compile/internal/x86/galign.go:108 +0x53e fp=0x6329ff24 sp=0x6329feb8
main.main()
        c:/go/src/cmd/compile/main.go:24 +0xb2 fp=0x6329ff90 sp=0x6329ff24
runtime.main()
        c:/go/src/runtime/proc.go:111 +0x234 fp=0x6329ffb8 sp=0x6329ff90
runtime.goexit()
        c:/go/src/runtime/asm_386.s:1662 +0x1 fp=0x6329ffbc sp=0x6329ffb8

error:exit status 2

exit status 1

if 1 NEQ 0 exit /b 1

warning: LF will be replaced by CRLF in androidextras/androidextras_android.cpp.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in androidextras/androidextras_android.go.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in androidextras/androidextras_android.h.
The file will have its original line endings in your working directory.
C:\Users\5k3105\goworksp\src\github.com\therecipe\qt (master)
λ cd C:\Users\5k3105\goworksp\src\tv\deploy\windows

from qt.

therecipe avatar therecipe commented on May 12, 2024

Hey

I looked into this and got a similar issue: cc1plus.exe: out of memory.

It seems like cc1plus.exe is allocating 2 GB or more while compiling the widgets module, which will crash the cc1plus.exe.

I read somewhere that this can happen if you use a wrong encoding (UTF-8 / UTF-16), but I will need to investigate further.

from qt.

therecipe avatar therecipe commented on May 12, 2024

Hey

I solved it.
While compiling, the cc1plus.exe was allocating around 2GB and crashed, because 32bit applications can't handle that much memory.
But if you set the /LARGEADDRESSAWARE flag in the pe header from cc1plus.exe, it seems to work just fine.

So I added a functions, which patches the cc1plus.exe before installing the modules.

I did test this under Win10 x64 with 4GB and go1.5.2 windows/amd64, and will also test it tommorrow under WinXP x86.

I hope it also works for you now.

from qt.

5k3105 avatar 5k3105 commented on May 12, 2024

I'm on win7 32-bit. Thank you for all your work. I'm getting the same error:

λ setup

go run ./internal/setup/check.go

if 0 NEQ 0 exit /b 0

go run C:\Users\5k3105\goworksp/src/github.com/therecipe/qt/internal/setup/generate.go
________________________Generate________________________
core                     funcs:  4037 (-  981)   18s
androidextras            funcs:    43 (-    3)   0
gui                      funcs: 18704 (-  866)   17s
network                  funcs:   607 (-  267)   3s
sql                      funcs:   294 (-   71)   1s
xml                      funcs:   323 (-  117)   0
dbus                     funcs:   175 (-   81)   0
nfc                      funcs:   111 (-   37)   0
script                   funcs:   209 (-   37)   0
sensors                  funcs:   254 (-   11)   2s
positioning              funcs:   179 (-   69)   0
widgets                  funcs:  5088 (-  434)   3m4s
qml                      funcs:   281 (-   37)   1s
websockets               funcs:    71 (-   27)   0
xmlpatterns              funcs:   162 (-   50)   0
bluetooth                funcs:   207 (-  100)   1s
webchannel               funcs:    13 (-    2)   0
svg                      funcs:    60 (-    5)   0
multimedia               funcs:  1155 (-  160)   12s
quick                    funcs:   454 (-   70)   3s
help                     funcs:    91 (-   10)   3s
location                 funcs:   549 (-   41)   1s
scripttools              funcs:    14 (-    0)   0
multimediawidgets        funcs:    59 (-    5)   1s
uitools                  funcs:    17 (-    0)   0

if 0 NEQ 0 exit /b 0

go run C:\Users\5k3105\goworksp/src/github.com/therecipe/qt/internal/setup/install.go
________________________Install-desktop________________________
core                                    2m18s
androidextras                           1s
gui                                     2m10s
network                                 32s
sql                                     14s
xml                                     19s
dbus                                    13s
nfc                                     9s
script                                  10s
sensors                                 34s
positioning                             11s
widgets

install.Widgets
output:# github.com/therecipe/qt/widgets
C:\Windows\go-build016299518\github.com\therecipe\qt\widgets\_obj\_cgo_main.c: In function 'crosscall2':
C:\Windows\go-build016299518\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:2:23: warning: unused parameter 'fn' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                       ^
C:\Windows\go-build016299518\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:2:46: warning: unused parameter 'a' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                                              ^
C:\Windows\go-build016299518\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:2:53: warning: unused parameter 'c' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                                                     ^
C:\Windows\go-build016299518\github.com\therecipe\qt\widgets\_obj\_cgo_main.c: In function '_cgo_allocate':
C:\Windows\go-build016299518\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:5:26: warning: unused parameter 'a' [-Wunused-parameter]
 void _cgo_allocate(void *a, int c) { }
                          ^
C:\Windows\go-build016299518\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:5:33: warning: unused parameter 'c' [-Wunused-parameter]
 void _cgo_allocate(void *a, int c) { }
                                 ^
C:\Windows\go-build016299518\github.com\therecipe\qt\widgets\_obj\_cgo_main.c: In function '_cgo_panic':
C:\Windows\go-build016299518\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:6:23: warning: unused parameter 'a' [-Wunused-parameter]
 void _cgo_panic(void *a, int c) { }
                       ^
C:\Windows\go-build016299518\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:6:30: warning: unused parameter 'c' [-Wunused-parameter]
 void _cgo_panic(void *a, int c) { }
                              ^
# github.com/therecipe/qt/widgets
widgets\qapplication.go: In function '_cgo_d36e4431f44c_Cfunc_QApplication_QApplication_AboutQt':
widgets\qapplication.go:180:49: warning: unused variable 'a' [-Wunused-variable]
  }
                                                 ^
widgets\qapplication.go: In function '_cgo_d36e4431f44c_Cfunc_QApplication_QApplication_Beep':
widgets\qapplication.go:235:49: warning: unused variable 'a' [-Wunused-variable]
  defer qt.Recovering("QApplication::windowIcon")
                                                 ^
widgets\qapplication.go: In function '_cgo_d36e4431f44c_Cfunc_QApplication_QApplication_CloseAllWindows':
widgets\qapplication.go:244:49: warning: unused variable 'a' [-Wunused-variable]
 }
                                                 ^
# github.com/therecipe/qt/widgets
widgets\qscrollerproperties.go: In function '_cgo_d36e4431f44c_Cfunc_QScrollerProperties_QScrollerProperties_UnsetDefaultScrollerProperties':
widgets\qscrollerproperties.go:89:49: warning: unused variable 'a' [-Wunused-variable]
  QScrollerProperties__FrameRate                      = QScrollerProperties__ScrollMetric(19)
                                                 ^
# github.com/therecipe/qt/widgets
widgets\qtooltip.go: In function '_cgo_d36e4431f44c_Cfunc_QToolTip_QToolTip_HideText':
widgets\qtooltip.go:33:49: warning: unused variable 'a' [-Wunused-variable]
 }
                                                 ^
# github.com/therecipe/qt/widgets
widgets\qwhatsthis.go: In function '_cgo_d36e4431f44c_Cfunc_QWhatsThis_QWhatsThis_EnterWhatsThisMode':
widgets\qwhatsthis.go:46:49: warning: unused variable 'a' [-Wunused-variable]

                                                 ^
widgets\qwhatsthis.go: In function '_cgo_d36e4431f44c_Cfunc_QWhatsThis_QWhatsThis_HideText':
widgets\qwhatsthis.go:55:49: warning: unused variable 'a' [-Wunused-variable]

                                                 ^
widgets\qwhatsthis.go: In function '_cgo_d36e4431f44c_Cfunc_QWhatsThis_QWhatsThis_LeaveWhatsThisMode':
widgets\qwhatsthis.go:76:49: warning: unused variable 'a' [-Wunused-variable]

                                                 ^
# github.com/therecipe/qt/widgets
widgets\widgets.cpp:3654:51: warning: multi-character character constant [-Wmultichar]
  QList<QByteArray> aList = QByteArray(argv).split(',,,');
                                                   ^
widgets\widgets.cpp: In function 'void* QApplication_NewQApplication(int, char*)':
widgets\widgets.cpp:3654:56: warning: overflow in implicit constant conversion [-Woverflow]
  QList<QByteArray> aList = QByteArray(argv).split(',,,');
                                                        ^
widgets\widgets.cpp: At global scope:
widgets\widgets.cpp:19207:121: warning: unused parameter 'ok' [-Wunused-parameter]
 int QInputDialog_QInputDialog_GetInt(void* parent, char* title, char* label, int value, int min, int max, int step, int ok, int flags){

          ^
widgets\widgets.cpp:19211:125: warning: unused parameter 'ok' [-Wunused-parameter]
 char* QInputDialog_QInputDialog_GetItem(void* parent, char* title, char* label, char* items, int current, int editable, int ok, int flags, int inputMethodHints){

              ^
widgets\widgets.cpp:19215:106: warning: unused parameter 'ok' [-Wunused-parameter]
 char* QInputDialog_QInputDialog_GetMultiLineText(void* parent, char* title, char* label, char* text, int ok, int flags, int inputMethodHints){
                                                                                                          ^
widgets\widgets.cpp:19219:107: warning: unused parameter 'ok' [-Wunused-parameter]
 char* QInputDialog_QInputDialog_GetText(void* parent, char* title, char* label, int mode, char* text, int ok, int flags, int inputMethodHints){
                                                                                                           ^

cc1plus.exe: out of memory allocating 888512 bytes

error:exit status 2

exit status 1

if 1 NEQ 0 exit /b 1

warning: LF will be replaced by CRLF in androidextras/androidextras_android.cpp.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in androidextras/androidextras_android.go.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in androidextras/androidextras_android.h.
The file will have its original line endings in your working directory.
C:\Users\5k3105\goworksp\src\github.com\therecipe\qt (master)
λ

from qt.

therecipe avatar therecipe commented on May 12, 2024

Hey

I made some changes, but it's still not working on my WinXP/Win7 32-bit system either.
The memory overhead from the cc1plus.exe is under control, but it's still not working because the go tool compile is also running out of memory.

So, I will need to investigate further.

from qt.

5k3105 avatar 5k3105 commented on May 12, 2024

Thank you for all your work.

from qt.

therecipe avatar therecipe commented on May 12, 2024

Hey

You are welcome :)

I looked into this the last few days and it seems like it's maybe going to work with a go version >= 1.7, because there are a few related issues to be fixed.

But, I will keep this in mind and inform you once I make some significant progress.

Until then, you can still use this.

from qt.

5k3105 avatar 5k3105 commented on May 12, 2024

That branch gives me errors as well:

C:\Users\5k3105\goworksp\src\github.com\therecipe\qt (master)
λ setup

go run ./internal/setup/check.go

if 0 NEQ 0 exit /b 0

go run C:\Users\5k3105\goworksp/src/github.com/therecipe/qt/internal/setup/generate.go
________________________Generate________________________
core                     funcs:  4037 (-  981)   50s
androidextras            funcs:    43 (-    3)   0
gui                      funcs: 18704 (-  866)   41s
network                  funcs:   607 (-  267)   5s
sql                      funcs:   294 (-   71)   1s
xml                      funcs:   323 (-  117)   1s
dbus                     funcs:   175 (-   81)   1s
nfc                      funcs:   111 (-   37)   1s
script                   funcs:   209 (-   37)   0
sensors                  funcs:   254 (-   11)   3s
positioning              funcs:   179 (-   69)   0
widgets                  funcs:  5088 (-  434)   6m35s
qml                      funcs:   281 (-   37)   1s
websockets               funcs:    71 (-   27)   0
xmlpatterns              funcs:   162 (-   50)   0
bluetooth                funcs:   207 (-  100)   1s
webchannel               funcs:    13 (-    2)   0
svg                      funcs:    60 (-    5)   0
multimedia               funcs:  1155 (-  160)   21s
quick                    funcs:   454 (-   70)   6s
help                     funcs:    91 (-   10)   3s
location                 funcs:   549 (-   41)   1s
scripttools              funcs:    14 (-    0)   0
multimediawidgets        funcs:    59 (-    5)   1s
uitools                  funcs:    17 (-    0)   0

if 0 NEQ 0 exit /b 0

go run C:\Users\5k3105\goworksp/src/github.com/therecipe/qt/internal/setup/install.go
________________________Install-desktop________________________
core                                    1m21s
androidextras                           2s
gui                                     1m6s
network                                 19s
sql                                     11s
xml                                     10s
dbus                                    8s
nfc                                     6s
script                                  7s
sensors                                 15s
positioning                             8s
widgets

install.Widgets
output:# github.com/therecipe/qt/widgets
C:\Windows\go-build130299614\github.com\therecipe\qt\widgets\_obj\_cgo_main.c: In function 'crosscall2':
C:\Windows\go-build130299614\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:2:23: warning: unused parameter '
fn' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                       ^
C:\Windows\go-build130299614\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:2:46: warning: unused parameter '
a' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                                              ^
C:\Windows\go-build130299614\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:2:53: warning: unused parameter '
c' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                                                     ^
C:\Windows\go-build130299614\github.com\therecipe\qt\widgets\_obj\_cgo_main.c: In function '_cgo_allocate':
C:\Windows\go-build130299614\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:5:26: warning: unused parameter '
a' [-Wunused-parameter]
 void _cgo_allocate(void *a, int c) { }
                          ^
C:\Windows\go-build130299614\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:5:33: warning: unused parameter '
c' [-Wunused-parameter]
 void _cgo_allocate(void *a, int c) { }
                                 ^
C:\Windows\go-build130299614\github.com\therecipe\qt\widgets\_obj\_cgo_main.c: In function '_cgo_panic':
C:\Windows\go-build130299614\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:6:23: warning: unused parameter '
a' [-Wunused-parameter]
 void _cgo_panic(void *a, int c) { }
                       ^
C:\Windows\go-build130299614\github.com\therecipe\qt\widgets\_obj\_cgo_main.c:6:30: warning: unused parameter '
c' [-Wunused-parameter]
 void _cgo_panic(void *a, int c) { }
                              ^
# github.com/therecipe/qt/widgets
widgets\widgets.go: In function '_cgo_65f4b19b5e20_Cfunc_QApplication_QApplication_AboutQt':
widgets\widgets.go:8006:49: warning: unused variable 'a' [-Wunused-variable]
   signal.(func(*gui.QDragEnterEvent))(gui.NewQDragEnterEventFromPointer(event))
                                                 ^
widgets\widgets.go: In function '_cgo_65f4b19b5e20_Cfunc_QApplication_QApplication_Beep':
widgets\widgets.go:8061:49: warning: unused variable 'a' [-Wunused-variable]
   C.QAbstractSlider_DragLeaveEvent(ptr.Pointer(), gui.PointerFromQDragLeaveEvent(event))
                                                 ^
widgets\widgets.go: In function '_cgo_65f4b19b5e20_Cfunc_QApplication_QApplication_CloseAllWindows':
widgets\widgets.go:8070:49: warning: unused variable 'a' [-Wunused-variable]
  }
                                                 ^
widgets\widgets.go: In function '_cgo_65f4b19b5e20_Cfunc_QScrollerProperties_QScrollerProperties_UnsetDefaultSc
rollerProperties':
widgets\widgets.go:73024:49: warning: unused variable 'a' [-Wunused-variable]
  defer qt.Recovering("QHeaderView::closeEvent")
                                                 ^
widgets\widgets.go: In function '_cgo_65f4b19b5e20_Cfunc_QToolTip_QToolTip_HideText':
widgets\widgets.go:99814:49: warning: unused variable 'a' [-Wunused-variable]
  defer qt.Recovering("callback QMenu::focusOutEvent")
                                                 ^
widgets\widgets.go: In function '_cgo_65f4b19b5e20_Cfunc_QWhatsThis_QWhatsThis_EnterWhatsThisMode':
widgets\widgets.go:106755:49: warning: unused variable 'a' [-Wunused-variable]
 }
                                                 ^
widgets\widgets.go: In function '_cgo_65f4b19b5e20_Cfunc_QWhatsThis_QWhatsThis_HideText':
widgets\widgets.go:106764:49: warning: unused variable 'a' [-Wunused-variable]
 }
                                                 ^
widgets\widgets.go: In function '_cgo_65f4b19b5e20_Cfunc_QWhatsThis_QWhatsThis_LeaveWhatsThisMode':
widgets\widgets.go:106785:49: warning: unused variable 'a' [-Wunused-variable]
 func (ptr *QPlainTextEdit) ResizeEventDefault(e gui.QResizeEvent_ITF) {
                                                 ^
# github.com/therecipe/qt/widgets
widgets\widgets.cpp:19207:121: warning: unused parameter 'ok' [-Wunused-parameter]
 int QInputDialog_QInputDialog_GetInt(void* parent, char* title, char* label, int value, int min, int max, int
step, int ok, int flags){

          ^
widgets\widgets.cpp:19211:125: warning: unused parameter 'ok' [-Wunused-parameter]
 char* QInputDialog_QInputDialog_GetItem(void* parent, char* title, char* label, char* items, int current, int
editable, int ok, int flags, int inputMethodHints){

              ^
widgets\widgets.cpp:19215:106: warning: unused parameter 'ok' [-Wunused-parameter]
 char* QInputDialog_QInputDialog_GetMultiLineText(void* parent, char* title, char* label, char* text, int ok, i
nt flags, int inputMethodHints){
                                                                                                          ^
widgets\widgets.cpp:19219:107: warning: unused parameter 'ok' [-Wunused-parameter]
 char* QInputDialog_QInputDialog_GetText(void* parent, char* title, char* label, int mode, char* text, int ok,
int flags, int inputMethodHints){
                                                                                                           ^
# github.com/therecipe/qt/widgets
fatal error: runtime: failed to release pages

runtime stack:
runtime.throw(0x7a44c0, 0x20)
        c:/go/src/runtime/panic.go:527 +0x7f
runtime.sysFree(0x0, 0x10000000, 0x6fd34)
        c:/go/src/runtime/mem_windows.go:86 +0x5b
runtime.mHeap_SysAlloc(0xb23640, 0x100000, 0x0)
        c:/go/src/runtime/malloc.go:418 +0x4a1
runtime.mHeap_Grow(0xb23640, 0x8, 0x0)
        c:/go/src/runtime/mheap.go:628 +0x52
runtime.mHeap_AllocSpanLocked(0xb23640, 0x1, 0x72faec8c)
        c:/go/src/runtime/mheap.go:532 +0x574
runtime.mHeap_Alloc_m(0xb23640, 0x1, 0x2, 0x0, 0x72faec8c)
        c:/go/src/runtime/mheap.go:425 +0x281
runtime.mHeap_Alloc.func1()
        c:/go/src/runtime/mheap.go:484 +0x3d
runtime.systemstack(0x6fe30)
        c:/go/src/runtime/asm_386.s:283 +0x81
runtime.mHeap_Alloc(0xb23640, 0x1, 0x2, 0x27f0100, 0x3716)
        c:/go/src/runtime/mheap.go:485 +0x5a
runtime.mCentral_Grow(0xb27ee0, 0x0)
        c:/go/src/runtime/mcentral.go:190 +0x8e
runtime.mCentral_CacheSpan(0xb27ee0, 0x72faec8c)
        c:/go/src/runtime/mcentral.go:86 +0x439
runtime.mCache_Refill(0x240000, 0x2, 0x72faec8c)
        c:/go/src/runtime/mcache.go:118 +0xae
runtime.mallocgc.func2()
        c:/go/src/runtime/malloc.go:614 +0x2b
runtime.systemstack(0xb16b00)
        c:/go/src/runtime/asm_386.s:267 +0x57
runtime.mstart()
        c:/go/src/runtime/proc1.go:668

goroutine 1 [running]:
runtime.systemstack_switch()
        c:/go/src/runtime/asm_386.s:222 fp=0x5cfa1098 sp=0x5cfa1094
runtime.mallocgc(0x10, 0x74d5a0, 0x0, 0x72cebff0)
        c:/go/src/runtime/malloc.go:615 +0x65a fp=0x5cfa1100 sp=0x5cfa1098
runtime.newobject(0x74d5a0, 0x72cebff0)
        c:/go/src/runtime/malloc.go:763 +0x41 fp=0x5cfa1114 sp=0x5cfa1100
cmd/compile/internal/gc.list(0x72cebf70, 0x2c593c20, 0x72cebf00)
        c:/go/src/cmd/compile/internal/gc/syntax.go:409 +0xec fp=0x5cfa1130 sp=0x5cfa1114
cmd/compile/internal/gc.ordermapassign(0x2c593c20, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:409 +0x5d fp=0x5cfa11c4 sp=0x5cfa1130
cmd/compile/internal/gc.orderstmt(0x2c593c20, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:474 +0x15b fp=0x5cfa133c sp=0x5cfa11c4
cmd/compile/internal/gc.orderstmtlist(0x2c58b2f0, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:262 +0x35 fp=0x5cfa1348 sp=0x5cfa133c
cmd/compile/internal/gc.orderinit(0x2c593ec0, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:310 +0x2c fp=0x5cfa1354 sp=0x5cfa1348
cmd/compile/internal/gc.orderexpr(0x2c5940c4, 0x5cfa19d4, 0x2c593f20)
        c:/go/src/cmd/compile/internal/gc/order.go:973 +0x57 fp=0x5cfa13c0 sp=0x5cfa1354
cmd/compile/internal/gc.orderstmt(0x2c5940c0, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:473 +0x141 fp=0x5cfa1538 sp=0x5cfa13c0
cmd/compile/internal/gc.orderstmtlist(0x2c58b400, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:262 +0x35 fp=0x5cfa1544 sp=0x5cfa1538
cmd/compile/internal/gc.orderinit(0x2c594480, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:310 +0x2c fp=0x5cfa1550 sp=0x5cfa1544
cmd/compile/internal/gc.orderexpr(0x2c58b200, 0x5cfa19d4, 0x0)
        c:/go/src/cmd/compile/internal/gc/order.go:973 +0x57 fp=0x5cfa15bc sp=0x5cfa1550
cmd/compile/internal/gc.orderexprlist(0x2c58b200, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:946 +0x41 fp=0x5cfa15cc sp=0x5cfa15bc
cmd/compile/internal/gc.orderstmt(0x2c593620, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:488 +0x230 fp=0x5cfa1744 sp=0x5cfa15cc
cmd/compile/internal/gc.orderstmtlist(0x2c58b210, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:262 +0x35 fp=0x5cfa1750 sp=0x5cfa1744
cmd/compile/internal/gc.orderinit(0x2c5935c0, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:310 +0x2c fp=0x5cfa175c sp=0x5cfa1750
cmd/compile/internal/gc.orderstmt(0x2c5935c0, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:461 +0xa9 fp=0x5cfa18d4 sp=0x5cfa175c
cmd/compile/internal/gc.orderstmtlist(0x2c58b220, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:262 +0x35 fp=0x5cfa18e0 sp=0x5cfa18d4
cmd/compile/internal/gc.orderinit(0x2c5944e0, 0x5cfa19d4)
        c:/go/src/cmd/compile/internal/gc/order.go:310 +0x2c fp=0x5cfa18ec sp=0x5cfa18e0
cmd/compile/internal/gc.orderexpr(0x1d4b79e0, 0x5cfa19d4, 0x0)
        c:/go/src/cmd/compile/internal/gc/order.go:973 +0x57 fp=0x5cfa1958 sp=0x5cfa18ec
cmd/compile/internal/gc.orderexpr(0x5cfa19d0, 0x5cfa19d4, 0x0)
        c:/go/src/cmd/compile/internal/gc/order.go:1168 +0xa01 fp=0x5cfa19c4 sp=0x5cfa1958
cmd/compile/internal/gc.orderexprinplace(0x1d4b7a40, 0x5cfa1b74)
        c:/go/src/cmd/compile/internal/gc/order.go:281 +0x4d fp=0x5cfa19e4 sp=0x5cfa19c4
cmd/compile/internal/gc.orderstmt(0x1d4b7a40, 0x5cfa1b74)
        c:/go/src/cmd/compile/internal/gc/order.go:669 +0x16e2 fp=0x5cfa1b5c sp=0x5cfa19e4
cmd/compile/internal/gc.orderstmtlist(0x1d4b2400, 0x5cfa1b74)
        c:/go/src/cmd/compile/internal/gc/order.go:262 +0x35 fp=0x5cfa1b68 sp=0x5cfa1b5c
cmd/compile/internal/gc.orderblock(0x1d4b73ec)
        c:/go/src/cmd/compile/internal/gc/order.go:271 +0x44 fp=0x5cfa1b84 sp=0x5cfa1b68
cmd/compile/internal/gc.order(0x1d4b73e0)
        c:/go/src/cmd/compile/internal/gc/order.go:57 +0xeb fp=0x5cfa1bc8 sp=0x5cfa1b84
cmd/compile/internal/gc.compile(0x1d4b73e0)
        c:/go/src/cmd/compile/internal/gc/pgen.go:390 +0x4de fp=0x5cfa1d04 sp=0x5cfa1bc8
cmd/compile/internal/gc.funccompile(0x1d4b73e0)
        c:/go/src/cmd/compile/internal/gc/dcl.go:1484 +0x198 fp=0x5cfa1d40 sp=0x5cfa1d04
cmd/compile/internal/gc.Main()
        c:/go/src/cmd/compile/internal/gc/lex.go:473 +0x1a08 fp=0x5cfa1ec0 sp=0x5cfa1d40
cmd/compile/internal/x86.Main()
        c:/go/src/cmd/compile/internal/x86/galign.go:108 +0x53e fp=0x5cfa1f2c sp=0x5cfa1ec0
main.main()
        c:/go/src/cmd/compile/main.go:24 +0xb2 fp=0x5cfa1f98 sp=0x5cfa1f2c
runtime.main()
        c:/go/src/runtime/proc.go:111 +0x234 fp=0x5cfa1fc0 sp=0x5cfa1f98
runtime.goexit()
        c:/go/src/runtime/asm_386.s:1662 +0x1 fp=0x5cfa1fc4 sp=0x5cfa1fc0

error:exit status 2

exit status 1

if 1 NEQ 0 exit /b 1

warning: LF will be replaced by CRLF in androidextras/androidextras.go.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in androidextras/androidextras_android.cpp.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in androidextras/androidextras_android.go.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in androidextras/androidextras_android.h.
The file will have its original line endings in your working directory.
C:\Users\5k3105\goworksp\src\github.com\therecipe\qt (master)
λ

from qt.

therecipe avatar therecipe commented on May 12, 2024

Hey

I did setup a fresh Win7 x86 system with 4GB and this should work, but I won't vouch for it.

  1. Install the Go 1.6Beta

https://storage.googleapis.com/golang/go1.6beta2.windows-386.msi
2. Clone this branch

https://github.com/therecipe/qt/tree/e00bb8e973cd6ebd917f5baf21508bb0817fb8f7
3. Download (right click the Raw button) and replace this file: qt/internal/setup/check.go

https://github.com/therecipe/qt/blob/ce0d07fb80404db9503f6665b8a55f4046c0b3bf/internal/setup/check.go
4. Download (right click the Raw button) and replace this file: qt/internal/setup/install.go

https://github.com/therecipe/qt/blob/ce0d07fb80404db9503f6665b8a55f4046c0b3bf/internal/setup/install.go
5. Enable the 3GB switch (info: https://msdn.microsoft.com/en-us/library/windows/hardware/ff556232(v=vs.85).aspx)

Open the cmd as admin and run: bcdedit /set IncreaseUserVa 3072
6. Restart your pc

Open the cmd as admin and run: shutdown -f -r -t 0
7. Run the setup.bat

Open the cmd as admin and run:

cd %GOPATH%\src\github.com\therecipe\qt

setup.bat
  1. Disable the 3GB switch

    Open the cmd as admin and run: bcdedit /deletevalue IncreaseUserVa

  2. Restart your pc

    Open the cmd as admin and run: shutdown -f -r -t 0

Hope this works for you.

from qt.

5k3105 avatar 5k3105 commented on May 12, 2024

No. Same thing with 'increaseuserva 3072'.

Thanks for trying. I should just switch to 64 bit right? Or declare the widget then additem instead of adding with addline, addrect etc?

from qt.

therecipe avatar therecipe commented on May 12, 2024

Hey

Yes, switching to 64 bit would be the simplest solution.
The final applications, will still be able run on windows with 32 bit, regardless if you compile them on a pc with 32 or 64 bit.

You should be able to use this branch https://github.com/therecipe/qt/tree/fe67fdc7a16f8018b55690f51e980900f8eccbc7 with go 1.5, the 1.6beta will complain if you run the setup.
(You could also, run go run generate.go && go run install.go in qt/internal/setup, if you don't want to downgrade from 1.6 to 1.5)

And yes, you should be able to use your example: https://github.com/therecipe/qt/blob/ce0d07fb80404db9503f6665b8a55f4046c0b3bf/internal/examples/widgets/graphicsscene/graphicsscene.go

If you replace this line:

scene.AddLine2(0, scene.Height(), scene.Width(), scene.Height(), pen)

with these lines:

var line = widgets.NewQGraphicsLineItem3(0, scene.Height(), scene.Width(), scene.Height(), nil)
line.SetPen(pen)
scene.AddItem(line)

from qt.

5k3105 avatar 5k3105 commented on May 12, 2024

I installed Win7 x64. Everything compiles but when it attempts to test the examples I get errors:

if 0 NEQ 0 exit /b 0

go run C:\Users\5k3105\goworksp/src/github.com/therecipe/qt/internal/setup/test.go
_________________________Test-desktop__________________________
widgets\line_edits

test.widgets\line_edits
output:

build
output:# github.com/therecipe/qt/internal/examples/widgets/line_edits
c:\go\pkg\tool\windows_amd64\link.exe: running g++ failed: exit status 1
C:\Windows\go-link-150103551/000002.o:(.text+0x59660): multiple definition of `__chkstk_ms'
C:\Windows\go-link-150103551/000001.o:(.text+0x643e0): first defined here
C:\Windows\go-link-150103551/000003.o:(.text+0x187240): multiple definition of `__chkstk_ms'
C:\Windows\go-link-150103551/000001.o:(.text+0x643e0): first defined here
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI18QAbstractAnimation+0x6f2ba964): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI10QEventLoop+0xbcaea560): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI18QAbstractItemModel+0xf2ba9558): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI19QAbstractProxyModel+0x2ba95490): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI14QAbstractState+0xaea55210): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI19QAbstractTransition+0xba954814): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI9QIODevice+0xea552020): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI7QBuffer+0xa954805c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI16QCoreApplication+0x95480518): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI11QFileDevice+0x548050b0): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI5QFile+0x52014298): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI16QEventTransition+0x48050a40): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI11QFinalState+0x201428d4): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI13QHistoryState+0x8050a328): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI19QIdentityProxyModel+0x1428c78): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI19QItemSelectionModel+0x50a31b0): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI9QMimeData+0x1428c690): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI15QPauseAnimation+0x50a31a1c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI8QProcess+0x428c6844): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI17QVariantAnimation+0xa31a0ec): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI18QPropertyAnimation+0x28c68384): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI9QSaveFile+0x8c683764): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI9QSettings+0x31a0dd6c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI17QSignalTransition+0xc683758c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI21QSortFilterProxyModel+0x1a0dd604): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI6QState+0x683757e0): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI13QStateMachine+0xa0dd5f60): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI14QTemporaryFile+0x83757d58): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI7QThread+0x3757d4b0): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI9QTimeLine+0xdd5f529c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI6QTimer+0x757d4a4c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI11QTranslator+0xd5f52910): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI28MyQAbstractNativeEventFilter+0x5f529034): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI9MyQBuffer+0x7d4a4098): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI18MyQCoreApplication+0xf529023c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI8MyQEvent+0xd4a408c0): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI12MyQEventLoop+0x529022dc): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI18MyQEventTransition+0x4a408b48): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI7MyQFile+0x29022cf0): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI13MyQFinalState+0xa408b39c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI15MyQHistoryState+0x9022ce48): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI21MyQIdentityProxyModel+0x408b38f4): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI21MyQItemSelectionModel+0x22ce3a0): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI11MyQMimeData+0x8b38e50): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI9MyQObject+0x22ce3918): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI17MyQPauseAnimation+0x8b38e43c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI10MyQProcess+0x2ce390c4): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI20MyQPropertyAnimation+0xb38e42e8): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI11MyQRunnable+0xce390b70): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI11MyQSaveFile+0x38e42d98): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI11MyQSettings+0xe390b638): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI19MyQSignalTransition+0x8e42d8b8): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI23MyQSortFilterProxyModel+0x390b62b0): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI8MyQState+0xe42d8a8c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI15MyQStateMachine+0x90b62a0c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI16MyQTemporaryFile+0x42d8a804): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI12MyQTextCodec+0xb629fe4): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI13MyQTextStream+0x2d8a7f68): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI9MyQThread+0xb629fd78): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI11MyQTimeLine+0xd8a7f5bc): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI8MyQTimer+0x629fd6c8): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI13MyQTranslator+0x8a7f5afc): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI19MyQVariantAnimation+0x29fd6bc8): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI26MyQXmlStreamEntityResolver+0xa7f5aef0): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI7QObject+0x9bcaea60): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI26QAbstractNativeEventFilter+0xcaea5530): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI6QEvent+0xa552014c): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI11QTextStream+0x55201434): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI9QRunnable+0xa31a0de0): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI10QTextCodec+0xdd5f534): Cannot get section contents - auto-import exception
C:\Windows\go-link-150103551/000001.o:(.rdata$_ZTI24QXmlStreamEntityResolver+0x57d4a418): Cannot get section contents - auto-import exception
C:/Qt/Qt5.5.1/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: C:\Windows\go-link-150103551/000001.o: bad reloc address 0x2 in section `.text$_ZN19MyQVariantAnimationD1Ev[__ZN19MyQVariantAnimationD1Ev]'
collect2.exe: error: ld returned 1 exit status


error:exit status 2


error:exit status 1

exit status 1

C:\Users\5k3105\goworksp\src\github.com\therecipe\qt (master)
λ

from qt.

5k3105 avatar 5k3105 commented on May 12, 2024

Oh. Is it that I installed Go 1.5.3?

from qt.

therecipe avatar therecipe commented on May 12, 2024

Hey

Sorry, I had just tested it with the 1.6Beta2 on windows, but it's fixed now for 1.5.x.
So, just clone and run the setup again.

from qt.

5k3105 avatar 5k3105 commented on May 12, 2024

Thanks. Everything is working now :)

from qt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.