Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not build qt #14

Closed
xenamorph opened this issue Jan 12, 2016 · 11 comments
Closed

I can not build qt #14

xenamorph opened this issue Jan 12, 2016 · 11 comments

Comments

@xenamorph
Copy link

Windows 10 64-bit, Corei7-4790/16Gb RAM
QT = C:\Qt\Qt5.5.1

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

D:\gosrc\src\github.com\therecipe\qt>if 0 NEQ 0 exit /b 0

D:\gosrc\src\github.com\therecipe\qt>go run d:\gosrc/src/github.com/therecipe/qt/internal/setup/install.go
Install-desktop
core 1m2s
androidextras 0
gui 59s
network 14s
sql 6s
xml 9s
dbus 6s
nfc 4s
script 4s
sensors 16s
positioning 5s
widgets

install.Widgets
output:# github.com/therecipe/qt/widgets
C:\WINDOWS\go-build677055738\github.com\therecipe\qt\widgets_obj_cgo_main.c: In function 'crosscall2':
C:\WINDOWS\go-build677055738\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-build677055738\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-build677055738\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-build677055738\github.com\therecipe\qt\widgets_obj_cgo_main.c: In function '_cgo_allocate':
C:\WINDOWS\go-build677055738\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-build677055738\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-build677055738\github.com\therecipe\qt\widgets_obj_cgo_main.c: In function '_cgo_panic':
C:\WINDOWS\go-build677055738\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-build677055738\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

d:\gosrc\src\github.com\therecipe\qt\widgets\qapplication.go: In function '_cgo_b12e6e04c547_Cfunc_QApplication_QApplication_AboutQt':
d:\gosrc\src\github.com\therecipe\qt\widgets\qapplication.go:180:49: warning: unused variable 'a' [-Wunused-variable]
}
^
d:\gosrc\src\github.com\therecipe\qt\widgets\qapplication.go: In function '_cgo_b12e6e04c547_Cfunc_QApplication_QApplication_Beep':
d:\gosrc\src\github.com\therecipe\qt\widgets\qapplication.go:235:49: warning: unused variable 'a' [-Wunused-variable]
defer qt.Recovering("QApplication::windowIcon")
^
d:\gosrc\src\github.com\therecipe\qt\widgets\qapplication.go: In function '_cgo_b12e6e04c547_Cfunc_QApplication_QApplication_CloseAllWindows':
d:\gosrc\src\github.com\therecipe\qt\widgets\qapplication.go:244:49: warning: unused variable 'a' [-Wunused-variable]
}
^

github.com/therecipe/qt/widgets

d:\gosrc\src\github.com\therecipe\qt\widgets\qscrollerproperties.go: In function '_cgo_b12e6e04c547_Cfunc_QScrollerProperties_QScrollerProperties_UnsetDefaultScrollerProperties':
d:\gosrc\src\github.com\therecipe\qt\widgets\qscrollerproperties.go:89:49: warning: unused variable 'a' [-Wunused-variable]
QScrollerProperties__FrameRate = QScrollerProperties__ScrollMetric(19)
^

github.com/therecipe/qt/widgets

d:\gosrc\src\github.com\therecipe\qt\widgets\qtooltip.go: In function '_cgo_b12e6e04c547_Cfunc_QToolTip_QToolTip_HideText':
d:\gosrc\src\github.com\therecipe\qt\widgets\qtooltip.go:33:49: warning: unused variable 'a' [-Wunused-variable]
}
^

github.com/therecipe/qt/widgets

d:\gosrc\src\github.com\therecipe\qt\widgets\qwhatsthis.go: In function '_cgo_b12e6e04c547_Cfunc_QWhatsThis_QWhatsThis_EnterWhatsThisMode':
d:\gosrc\src\github.com\therecipe\qt\widgets\qwhatsthis.go:46:49: warning: unused variable 'a' [-Wunused-variable]

                                             ^

d:\gosrc\src\github.com\therecipe\qt\widgets\qwhatsthis.go: In function '_cgo_b12e6e04c547_Cfunc_QWhatsThis_QWhatsThis_HideText':
d:\gosrc\src\github.com\therecipe\qt\widgets\qwhatsthis.go:55:49: warning: unused variable 'a' [-Wunused-variable]

                                             ^

d:\gosrc\src\github.com\therecipe\qt\widgets\qwhatsthis.go: In function '_cgo_b12e6e04c547_Cfunc_QWhatsThis_QWhatsThis_LeaveWhatsThisMode':
d:\gosrc\src\github.com\therecipe\qt\widgets\qwhatsthis.go:76:49: warning: unused variable 'a' [-Wunused-variable]

                                             ^

github.com/therecipe/qt/widgets

d:\gosrc\src\github.com\therecipe\qt\widgets\widgets.cpp:3654:51: warning: multi-character character constant [-Wmultichar]
QList aList = QByteArray(argv).split(',,,');
^
d:\gosrc\src\github.com\therecipe\qt\widgets\widgets.cpp: In function 'void* QApplication_NewQApplication(int, char_)':
d:\gosrc\src\github.com\therecipe\qt\widgets\widgets.cpp:3654:56: warning: overflow in implicit constant conversion [-Woverflow]
QList aList = QByteArray(argv).split(',,,');
^
d:\gosrc\src\github.com\therecipe\qt\widgets\widgets.cpp: At global scope:
d:\gosrc\src\github.com\therecipe\qt\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){
^
d:\gosrc\src\github.com\therecipe\qt\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){
^
d:\gosrc\src\github.com\therecipe\qt\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){
^
d:\gosrc\src\github.com\therecipe\qt\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 876984 bytes

error:exit status 2

exit status 1

D:\gosrc\src\github.com\therecipe\qt>if 1 NEQ 0 exit /b 1

D:\gosrc\src\github.com\therecipe\qt>

@therecipe
Copy link
Owner

Hey

Please clone the repo again, the last 2 commits e6a610a and f254a2b should have fixed this issue.

@xenamorph
Copy link
Author

Many thanks! all OK!

@xenamorph xenamorph reopened this Jan 12, 2016
@xenamorph
Copy link
Author

D:\gosrc\src\github.com\therecipe\qt>go run d:\gosrc/src/github.com/therecipe/qt/internal/setup/test.go
Test-desktop_
widgets/line_edits

test.widgets/line_edits
output:

deploy
output:D:\gosrc\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\windows\line_edits.exe 32 bit, release executable
Direct dependencies: Qt5Core Qt5Gui Qt5Widgets
All dependencies : Qt5Core Qt5Gui Qt5Widgets
To be deployed : Qt5Core Qt5Gui Qt5Widgets
Unable to find the platform plugin.

error:exit status 1

error:exit status 1

exit status 1

@therecipe
Copy link
Owner

Hey

Can you check if you got this folder C:\Qt\Qt5.5.1\5.5\mingw492_32\plugins\platforms ?
It should contain a file called qwindows.dll

And what go version are you using ?

@xenamorph
Copy link
Author

C:\Qt\Qt5.5.1\5.5\mingw492_32\plugins\platforms\qwindows.dll - yes

D:\gosrc\src>go version
go version go1.5.2 windows/amd64

@therecipe
Copy link
Owner

Hey

I did set up a fresh Win10 x64 and couldn't reproduce the issue.

Could you run this and post the output here ?

cd %GOPATH%\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\windows

C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\windeployqt.exe .\line_edits.exe --dry-run --list mapping

And could you run this also ?

cd %GOPATH%\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\windows

C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\windeployqt.exe .\line_edits.exe --force

line_edits.exe

@xenamorph
Copy link
Author

D:>gcc --version
gcc (i686-posix-dwarf-rev1, Built by MinGW-W64 project) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

D:\gosrc\src\github.com\therecipe\qt>cd %GOPATH%\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\windows

d:\gosrc\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\windows>C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\windeployqt.exe .\line_edits.exe -force
D:\gosrc\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\windows\line_edits.exe 32 bit, release executable
Direct dependencies: Qt5Core Qt5Gui Qt5Widgets
All dependencies : Qt5Core Qt5Gui Qt5Widgets
To be deployed : Qt5Core Qt5Gui Qt5Widgets
Unable to find the platform plugin.

@therecipe
Copy link
Owner

Hey

Sorry, I did update the last comment.

Could you run this also?

cd %GOPATH%\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\windows

C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\windeployqt.exe .\line_edits.exe --dry-run --list mapping

@xenamorph
Copy link
Author

d:>cd GOPATH%\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\windows

d:\gosrc\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\windows>C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\windeployqt.exe .\line_edits.exe --dry-run --list mapping
Unable to find the platform plugin.

@xenamorph
Copy link
Author

http://stackoverflow.com/questions/29456610/can-not-load-the-qt-platform-plugin-windows
after QTDIR/bin/windeployqt.exe with bin path clone therecipe\qt and launched the build again...

All tests completed successfully!! thank you very much for your work!

***question to another topic,
broadcast of С++ errors QT in golang?

@therecipe
Copy link
Owner

Hey

I'm glad it works for you.

And about the c++ errors, they are currently not catched and will simply throw a "fatal error: unexpected signal during runtime execution" or something similar.
I will look into this, and may add a try and catch block which will broadcast the errors to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants