therecipe / qt

Qt binding for Go (Golang) with support for Windows / macOS / Linux / FreeBSD / Android / iOS / Sailfish OS / Raspberry Pi / AsteroidOS / Ubuntu Touch / JavaScript / WebAssembly
GNU Lesser General Public License v3.0
10.47k stars 747 forks source link

Msys2 windows installation + webkit #380

Closed averrin closed 7 years ago

averrin commented 7 years ago

Can i install webkit with msys2? I cant use regular installation due to #376. I tried pacman -S mingw-w64-x86_64-qtwebkit and copying webkit files to empty folder like C:\Qt\Qt5.8.0\mingw53_32 and C:\msys64\mingw64\qt5-static but still no luck:

time="2017-06-28T21:59:01+03:00" level=error msg="failed to run command" cmd="C:\msys64\mingw64\qt5-static\bin\qmake C:\Users\averr_000\Documents\go\src\github.com\therecipe\qt\webkit.pro -spec win32-g++ CONFIG+=release" env= error="exite="run qmake for windows on windows"
Info: creating stash file C:\Users\averr_000\Documents\go\src\github.com\therecipe\qt\webkit\.qmake.stash
Project ERROR: Unknown module(s) in QT: webkit webkitwidgets
therecipe commented 7 years ago

Hey

Can i install webkit with msys2?

I haven't tested it myself yet, but if they provide binaries for the webkit. Then it should work somehow. I will look into it.

therecipe commented 7 years ago

The webkit module should be supported now with: https://github.com/therecipe/qt/commit/9127474fe466369177aeef9e78ca8c547411eedc

Just install mingw-w64-i686-qtwebkit or mingw-w64-x86-qtwebkit, then set QT_WEBKIT=true and re-run the setup.

averrin commented 7 years ago

I will try it today. If it works i will be happy :smile:

therecipe commented 7 years ago

Btw, I also looked into https://github.com/therecipe/qt/issues/376 again, and I think the issue may be that your *.syso is probably malformed.

averrin commented 7 years ago

I still getting no buildable Go source files in C:\Users\averr_000\Documents\go\src\github.com\therecipe\qt\webengine =( I will try remove everything and reinstall.

therecipe commented 7 years ago

github.com\therecipe\qt\webengine

Yeah, you will need to use github.com\therecipe\qt\webkit instead :D

averrin commented 7 years ago

Hmm… Now im at setup progress and:

$ ~/Documents/go/bin/qtsetup.exe -qt_version 5.9.0 full
time="2017-07-13T22:07:18+03:00" level=info msg="running: 'qtsetup prep'"
time="2017-07-13T22:07:25+03:00" level=info msg="running: 'qtsetup check windows' [docker=false] [vagrant=false]"
time="2017-07-13T22:07:25+03:00" level=info msg="GOOS:                        'windows'"
time="2017-07-13T22:07:25+03:00" level=info msg="GOARCH:                      'amd64'"
time="2017-07-13T22:07:25+03:00" level=info msg="GOVERSION:                   'go1.8.1'"
time="2017-07-13T22:07:25+03:00" level=info msg="GOROOT:                   *  'C:\\Go\\'"
time="2017-07-13T22:07:25+03:00" level=info msg="GOPATH:                   *  'C:\\Users\\averr_000\\Documents\\go'"
time="2017-07-13T22:07:25+03:00" level=info msg="GOBIN:                       'C:\\Users\\averr_000\\Documents\\go\\bin'"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_HASH:                     '9127474fe466369177aeef9e78ca8c547411eedc'"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_VERSION:               *  '5.9.0'"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_VERSION_MAJOR:            '5.9'"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_DIR:                      'C:\\Qt\\Qt5.9.0'"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_STUB:                     'true'"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_DEBUG:                    'false'"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_QMAKE_DIR:                ''"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_WEBKIT:                *  'true'"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_MSYS2:                 *  'true'"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_MSYS2_DIR:                'C:\\msys64\\mingw64'"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_MSYS2_ARCH:               'amd64'"
time="2017-07-13T22:07:25+03:00" level=info msg="QT_MSYS2_STATIC:             'false'"
time="2017-07-13T22:07:25+03:00" level=info msg="running: 'qtsetup generate windows' [docker=false] [vagrant=false]"
time="2017-07-13T22:07:53+03:00" level=warning msg=parser.LoadModule error=EOF module=WebKit

Last line is normal?

therecipe commented 7 years ago

Could be that you need to set QT_VERSION=5.8.0, even though it will be 5.9.1.

averrin commented 7 years ago

By default its use 5.8 but i already installed 5.9.1. But last line didnt change after i specify 5.9.1 as qt_version.

averrin commented 7 years ago

And can you get example how i should "use github.com\therecipe\qt\webkit instead :D"? I thought qwebkit was removed in 5.6…

therecipe commented 7 years ago

Yeah, you will need to unset QT_VERSION and run the setup without "-qt_version", so just qtsetup full

qwebkit was removed in 5.6…

Yes, but it's coming back in 5.10 or so, and you can already test the alpha when you install mingw-w64-x86-qtwebkit

averrin commented 7 years ago

Yeah, you will need to unset QT_VERSION and run the setup without "-qt_version", so just qtsetup full

Are you sure?

$ echo $QT_VERSION

averrin@onyx MINGW64 ~
$ ./Documents/go/bin/qtsetup.exe check
time="2017-07-13T22:37:47+03:00" level=info msg="running: 'qtsetup check windows' [docker=false] [vagrant=false]"
time="2017-07-13T22:37:47+03:00" level=info msg="GOOS:                        'windows'"
time="2017-07-13T22:37:47+03:00" level=info msg="GOARCH:                      'amd64'"
time="2017-07-13T22:37:47+03:00" level=info msg="GOVERSION:                   'go1.8.1'"
time="2017-07-13T22:37:47+03:00" level=info msg="GOROOT:                   *  'C:\\Go\\'"
time="2017-07-13T22:37:47+03:00" level=info msg="GOPATH:                   *  'C:\\Users\\averr_000\\Documents\\go'"
time="2017-07-13T22:37:47+03:00" level=info msg="GOBIN:                       'C:\\Users\\averr_000\\Documents\\go\\bin'"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_HASH:                     '9127474fe466369177aeef9e78ca8c547411eedc'"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_VERSION:                  '5.8.0'"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_VERSION_MAJOR:            '5.8'"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_DIR:                      'C:\\Qt\\Qt5.8.0'"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_STUB:                     'true'"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_DEBUG:                    'false'"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_QMAKE_DIR:                ''"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_WEBKIT:                   'false'"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_MSYS2:                    'true'"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_MSYS2_DIR:                'C:\\msys64\\mingw64'"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_MSYS2_ARCH:               'amd64'"
time="2017-07-13T22:37:47+03:00" level=info msg="QT_MSYS2_STATIC:             'false'"

Maybe i need run some upgrade command?

averrin commented 7 years ago

So, i changed WebEngine to Webkit like

        widgets.NewQApplication(len(os.Args), os.Args)
        var window = widgets.NewQMainWindow(nil, 0)

        var centralWidget = widgets.NewQWidget(nil, 0)
        centralWidget.SetLayout(widgets.NewQVBoxLayout())

        var wview = webkit.NewQWebkitView(nil)
        wview.Load(core.NewQUrl3(link, 0))
        centralWidget.Layout().AddWidget(wview)

        window.SetCentralWidget(centralWidget)
        window.Show()

and got

time="2017-07-13T22:38:13+03:00" level=error msg="failed to run command" cmd="C:\\msys64\\mingw64\\bin\\qmake C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing.pro -spec win32-g++ CONFIG+=release" env= error="exit status 3" func=RunCmdOptional name="run qmake for windows on windows"
Info: creating stash file C:\Users\averr_000\Documents\go\src\github.com\therecipe\qt\purchasing\.qmake.stash
Project ERROR: Unknown module(s) in QT: purchasing

time="2017-07-13T22:38:13+03:00" level=error msg="failed to load C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release" error="open C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release: The system cannot find the file specified."
time="2017-07-13T22:38:32+03:00" level=error msg="failed to run command" cmd="go build -p 4 -v -ldflags=\"-s\" \"-w\" \"-H=windowsgui\" -o C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\averrin\\norp_toolkit\\deploy\\windows\\norp_toolkit.exe -tags=\"minimal\"" env="GOOS=windows GOPATH=C:/Users/averr_000/Documents/go TMP=C:\\msys64\\tmp TEMP=C:\\msys64\\tmp GOARCH=amd64 CGO_ENABLED=1 PATH=C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\local\\bin;C:\\msys64\\usr\\bin;C:\\msys64\\usr\\bin;C:\\Windows\\System32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\msys64\\usr\\bin\\site_perl;C:\\msys64\\usr\\bin\\vendor_perl;C:\\msys64\\usr\\bin\\core_perl;C:\\Go\\bin;C:\\msys64\\mingw64\\bin GOROOT=C:\\Go\\" error="exit status 2" func=RunCmd name="build for windows on windows"
golang.org/x/crypto/poly1305
github.com/therecipe/qt
golang.org/x/crypto/salsa20/salsa
golang.org/x/crypto/acme
github.com/therecipe/qt/core
github.com/therecipe/qt/webkit
golang.org/x/crypto/nacl/secretbox
github.com/bwmarrin/discordgo
golang.org/x/crypto/acme/autocert
github.com/labstack/echo
github.com/labstack/echo/middleware
# github.com/therecipe/qt/webkit
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c: In function 'crosscall2':
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c:2:23: warning: unused parameter 'fn' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int, __SIZE_TYPE__), void *a, int c, __SIZE_TYPE__ ctxt) { }
                       ^~
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c:2:61: warning: unused parameter 'a' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int, __SIZE_TYPE__), void *a, int c, __SIZE_TYPE__ ctxt) { }
                                                             ^
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c:2:68: warning: unused parameter 'c' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int, __SIZE_TYPE__), void *a, int c, __SIZE_TYPE__ ctxt) { }
                                                                    ^
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c:2:85: warning: unused parameter 'ctxt' [-Wunused-parameter]
 void crosscall2(void(*fn)(void*, int, __SIZE_TYPE__), void *a, int c, __SIZE_TYPE__ ctxt) { }
                                                                                     ^~~~
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c: In function '_cgo_release_context':
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c:4:41: warning: unused parameter 'ctxt' [-Wunused-parameter]
 void _cgo_release_context(__SIZE_TYPE__ ctxt) { }
                                         ^~~~
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c: In function '_cgo_allocate':
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c:6:26: warning: unused parameter 'a' [-Wunused-parameter]
 void _cgo_allocate(void *a, int c) { }
                          ^
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c:6:33: warning: unused parameter 'c' [-Wunused-parameter]
 void _cgo_allocate(void *a, int c) { }
                                 ^
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c: In function '_cgo_panic':
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c:7:23: warning: unused parameter 'a' [-Wunused-parameter]
 void _cgo_panic(void *a, int c) { }
                       ^
C:\msys64\tmp\go-build244902514\github.com\therecipe\qt\webkit\_obj\_cgo_main.c:7:30: warning: unused parameter 'c' [-Wunused-parameter]
 void _cgo_panic(void *a, int c) { }
                              ^
# github.com/therecipe/qt/core
g++: error: ..\..\therecipe\qt\core\core-minimal.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
therecipe commented 7 years ago

Mh, did you re-ran the full setup? With QT_WEBKIT=true set? (You will also need to have it set when you run qtdeploy later)

The last package that is installed, should be "webkit". Just before the example are beeing build.

averrin commented 7 years ago

Last check was done in clean console. Install has time="2017-07-13T22:07:25+03:00" level=info msg="QT_WEBKIT: * 'true'"

averrin commented 7 years ago

Full install log:

$ ~/Documents/go/bin/qtsetup.exe
time="2017-07-13T22:19:53+03:00" level=info msg="running: 'qtsetup prep'"
time="2017-07-13T22:19:54+03:00" level=info msg="running: 'qtsetup check windows' [docker=false] [vagrant=false]"
time="2017-07-13T22:19:54+03:00" level=info msg="GOOS:                        'windows'"
time="2017-07-13T22:19:54+03:00" level=info msg="GOARCH:                      'amd64'"
time="2017-07-13T22:19:54+03:00" level=info msg="GOVERSION:                   'go1.8.1'"
time="2017-07-13T22:19:54+03:00" level=info msg="GOROOT:                   *  'C:\\Go\\'"
time="2017-07-13T22:19:54+03:00" level=info msg="GOPATH:                   *  'C:\\Users\\averr_000\\Documents\\go'"
time="2017-07-13T22:19:54+03:00" level=info msg="GOBIN:                       'C:\\Users\\averr_000\\Documents\\go\\bin'"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_HASH:                     '9127474fe466369177aeef9e78ca8c547411eedc'"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_VERSION:               *  '5.9.1'"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_VERSION_MAJOR:            '5.9.1'"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_DIR:                      'C:\\Qt\\Qt5.9.1'"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_STUB:                     'true'"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_DEBUG:                    'false'"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_QMAKE_DIR:                ''"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_WEBKIT:                *  'true'"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_MSYS2:                 *  'true'"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_MSYS2_DIR:                'C:\\msys64\\mingw64'"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_MSYS2_ARCH:               'amd64'"
time="2017-07-13T22:19:54+03:00" level=info msg="QT_MSYS2_STATIC:             'false'"
time="2017-07-13T22:19:54+03:00" level=info msg="running: 'qtsetup generate windows' [docker=false] [vagrant=false]"
time="2017-07-13T22:20:07+03:00" level=warning msg=parser.LoadModule error=EOF module=WebKit
time="2017-07-13T22:20:07+03:00" level=info msg="generating stub qt/core"
time="2017-07-13T22:20:11+03:00" level=info msg="generating stub qt/androidextras"
time="2017-07-13T22:20:11+03:00" level=info msg="generating stub qt/gui"
time="2017-07-13T22:20:16+03:00" level=info msg="generating stub qt/network"
time="2017-07-13T22:20:17+03:00" level=info msg="generating stub qt/xml"
time="2017-07-13T22:20:17+03:00" level=info msg="generating stub qt/dbus"
time="2017-07-13T22:20:18+03:00" level=info msg="generating stub qt/nfc"
time="2017-07-13T22:20:18+03:00" level=info msg="generating stub qt/script"
time="2017-07-13T22:20:18+03:00" level=info msg="generating stub qt/sensors"
time="2017-07-13T22:20:19+03:00" level=info msg="generating stub qt/positioning"
time="2017-07-13T22:20:19+03:00" level=info msg="generating stub qt/widgets"
time="2017-07-13T22:20:29+03:00" level=info msg="generating stub qt/sql"
time="2017-07-13T22:20:30+03:00" level=info msg="generating stub qt/qml"
time="2017-07-13T22:20:30+03:00" level=info msg="generating stub qt/websockets"
time="2017-07-13T22:20:31+03:00" level=info msg="generating stub qt/xmlpatterns"
time="2017-07-13T22:20:31+03:00" level=info msg="generating stub qt/bluetooth"
time="2017-07-13T22:20:31+03:00" level=info msg="generating stub qt/webchannel"
time="2017-07-13T22:20:31+03:00" level=info msg="generating stub qt/svg"
time="2017-07-13T22:20:32+03:00" level=info msg="generating stub qt/multimedia"
time="2017-07-13T22:20:34+03:00" level=info msg="generating stub qt/quick"
time="2017-07-13T22:20:35+03:00" level=info msg="generating stub qt/help"
time="2017-07-13T22:20:36+03:00" level=info msg="generating stub qt/location"
time="2017-07-13T22:20:37+03:00" level=info msg="generating stub qt/scripttools"
time="2017-07-13T22:20:37+03:00" level=info msg="generating stub qt/uitools"
time="2017-07-13T22:20:37+03:00" level=info msg="generating stub qt/winextras"
time="2017-07-13T22:20:37+03:00" level=info msg="generating stub qt/testlib"
time="2017-07-13T22:20:37+03:00" level=info msg="generating stub qt/serialport"
time="2017-07-13T22:20:37+03:00" level=info msg="generating stub qt/serialbus"
time="2017-07-13T22:20:37+03:00" level=info msg="generating stub qt/printsupport"
time="2017-07-13T22:20:38+03:00" level=info msg="generating stub qt/designer"
time="2017-07-13T22:20:39+03:00" level=info msg="generating stub qt/scxml"
time="2017-07-13T22:20:40+03:00" level=info msg="generating stub qt/gamepad"
time="2017-07-13T22:20:40+03:00" level=info msg="generating stub qt/purchasing"
time="2017-07-13T22:20:40+03:00" level=info msg="generating stub qt/datavisualization"
time="2017-07-13T22:20:40+03:00" level=info msg="generating stub qt/charts"
time="2017-07-13T22:20:42+03:00" level=info msg="generating stub qt/speech"
time="2017-07-13T22:20:42+03:00" level=info msg="generating stub qt/quickcontrols2"
time="2017-07-13T22:20:42+03:00" level=info msg="generating stub qt/sailfish"
time="2017-07-13T22:20:42+03:00" level=info msg="generating stub qt/remoteobjects"
time="2017-07-13T22:20:42+03:00" level=info msg="generating stub qt/webkit"
time="2017-07-13T22:20:42+03:00" level=info msg="running: 'qtsetup install windows' [docker=false] [vagrant=false]"
time="2017-07-13T22:20:42+03:00" level=info msg="installing stub qt/core"
time="2017-07-13T22:20:48+03:00" level=info msg="installing stub qt/androidextras"
time="2017-07-13T22:20:48+03:00" level=info msg="installing stub qt/gui"
time="2017-07-13T22:20:53+03:00" level=info msg="installing stub qt/network"
time="2017-07-13T22:20:56+03:00" level=info msg="installing stub qt/xml"
time="2017-07-13T22:20:57+03:00" level=info msg="installing stub qt/dbus"
time="2017-07-13T22:20:58+03:00" level=info msg="installing stub qt/nfc"
time="2017-07-13T22:20:58+03:00" level=info msg="installing stub qt/script"
time="2017-07-13T22:20:59+03:00" level=info msg="installing stub qt/sensors"
time="2017-07-13T22:21:02+03:00" level=info msg="installing stub qt/positioning"
time="2017-07-13T22:21:03+03:00" level=info msg="installing stub qt/widgets"
time="2017-07-13T22:21:30+03:00" level=info msg="installing stub qt/sql"
time="2017-07-13T22:21:31+03:00" level=info msg="installing stub qt/qml"
time="2017-07-13T22:21:33+03:00" level=info msg="installing stub qt/websockets"
time="2017-07-13T22:21:33+03:00" level=info msg="installing stub qt/xmlpatterns"
time="2017-07-13T22:21:34+03:00" level=info msg="installing stub qt/bluetooth"
time="2017-07-13T22:21:35+03:00" level=info msg="installing stub qt/webchannel"
time="2017-07-13T22:21:36+03:00" level=info msg="installing stub qt/svg"
time="2017-07-13T22:21:37+03:00" level=info msg="installing stub qt/multimedia"
time="2017-07-13T22:21:43+03:00" level=info msg="installing stub qt/quick"
time="2017-07-13T22:21:46+03:00" level=info msg="installing stub qt/help"
time="2017-07-13T22:21:49+03:00" level=info msg="installing stub qt/location"
time="2017-07-13T22:21:50+03:00" level=info msg="installing stub qt/scripttools"
time="2017-07-13T22:21:51+03:00" level=info msg="installing stub qt/uitools"
time="2017-07-13T22:21:52+03:00" level=info msg="installing stub qt/winextras"
time="2017-07-13T22:21:54+03:00" level=info msg="installing stub qt/testlib"
time="2017-07-13T22:21:54+03:00" level=info msg="installing stub qt/serialport"
time="2017-07-13T22:21:55+03:00" level=info msg="installing stub qt/serialbus"
time="2017-07-13T22:21:57+03:00" level=info msg="installing stub qt/printsupport"
time="2017-07-13T22:22:00+03:00" level=info msg="installing stub qt/designer"
time="2017-07-13T22:22:03+03:00" level=info msg="installing stub qt/scxml"
time="2017-07-13T22:22:05+03:00" level=info msg="installing stub qt/gamepad"
time="2017-07-13T22:22:06+03:00" level=info msg="installing stub qt/purchasing"
time="2017-07-13T22:22:06+03:00" level=info msg="installing stub qt/datavisualization"
time="2017-07-13T22:22:07+03:00" level=info msg="installing stub qt/charts"
time="2017-07-13T22:22:11+03:00" level=info msg="installing stub qt/speech"
time="2017-07-13T22:22:11+03:00" level=info msg="installing stub qt/quickcontrols2"
time="2017-07-13T22:22:12+03:00" level=info msg="installing stub qt/sailfish"
time="2017-07-13T22:22:13+03:00" level=info msg="installing stub qt/remoteobjects"
time="2017-07-13T22:22:13+03:00" level=info msg="installing stub qt/webkit"
time="2017-07-13T22:22:14+03:00" level=info msg="running: 'qtsetup test windows' [docker=false] [vagrant=false]"
time="2017-07-13T22:22:14+03:00" level=info msg="testing qml\\application"
time="2017-07-13T22:22:42+03:00" level=error msg="failed to run command" cmd="C:\\msys64\\mingw64\\bin\\qmake C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing.pro -spec win32-g++ CONFIG+=release" env= error="exit status 3" func=RunCmdOptional name="run qmake for windows on windows"
Info: creating stash file C:\Users\averr_000\Documents\go\src\github.com\therecipe\qt\purchasing\.qmake.stash
Project ERROR: Unknown module(s) in QT: purchasing

time="2017-07-13T22:22:42+03:00" level=error msg="failed to load C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release" error="open C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release: The system cannot find the file specified."
time="2017-07-13T22:23:24+03:00" level=info msg="testing qml\\drawer_nav_x"
time="2017-07-13T22:23:56+03:00" level=error msg="failed to run command" cmd="C:\\msys64\\mingw64\\bin\\qmake C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing.pro -spec win32-g++ CONFIG+=release" env= error="exit status 3" func=RunCmdOptional name="run qmake for windows on windows"
Info: creating stash file C:\Users\averr_000\Documents\go\src\github.com\therecipe\qt\purchasing\.qmake.stash
Project ERROR: Unknown module(s) in QT: purchasing

time="2017-07-13T22:23:56+03:00" level=error msg="failed to load C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release" error="open C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release: The system cannot find the file specified."
time="2017-07-13T22:24:54+03:00" level=info msg="testing qml\\gallery"
time="2017-07-13T22:25:20+03:00" level=error msg="failed to run command" cmd="C:\\msys64\\mingw64\\bin\\qmake C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing.pro -spec win32-g++ CONFIG+=release" env= error="exit status 3" func=RunCmdOptional name="run qmake for windows on windows"
Info: creating stash file C:\Users\averr_000\Documents\go\src\github.com\therecipe\qt\purchasing\.qmake.stash
Project ERROR: Unknown module(s) in QT: purchasing

time="2017-07-13T22:25:20+03:00" level=error msg="failed to load C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release" error="open C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release: The system cannot find the file specified."
time="2017-07-13T22:26:06+03:00" level=info msg="testing quick\\calc"
time="2017-07-13T22:26:32+03:00" level=error msg="failed to run command" cmd="C:\\msys64\\mingw64\\bin\\qmake C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing.pro -spec win32-g++ CONFIG+=release" env= error="exit status 3" func=RunCmdOptional name="run qmake for windows on windows"
Info: creating stash file C:\Users\averr_000\Documents\go\src\github.com\therecipe\qt\purchasing\.qmake.stash
Project ERROR: Unknown module(s) in QT: purchasing

time="2017-07-13T22:26:32+03:00" level=error msg="failed to load C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release" error="open C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release: The system cannot find the file specified."
time="2017-07-13T22:27:21+03:00" level=info msg="testing widgets\\line_edits"
time="2017-07-13T22:27:50+03:00" level=error msg="failed to run command" cmd="C:\\msys64\\mingw64\\bin\\qmake C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing.pro -spec win32-g++ CONFIG+=release" env= error="exit status 3" func=RunCmdOptional name="run qmake for windows on windows"
Info: creating stash file C:\Users\averr_000\Documents\go\src\github.com\therecipe\qt\purchasing\.qmake.stash
Project ERROR: Unknown module(s) in QT: purchasing

time="2017-07-13T22:27:50+03:00" level=error msg="failed to load C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release" error="open C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release: The system cannot find the file specified."
time="2017-07-13T22:28:59+03:00" level=info msg="testing widgets\\pixel_editor"
time="2017-07-13T22:29:24+03:00" level=error msg="failed to run command" cmd="C:\\msys64\\mingw64\\bin\\qmake C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing.pro -spec win32-g++ CONFIG+=release" env= error="exit status 3" func=RunCmdOptional name="run qmake for windows on windows"
Info: creating stash file C:\Users\averr_000\Documents\go\src\github.com\therecipe\qt\purchasing\.qmake.stash
Project ERROR: Unknown module(s) in QT: purchasing

time="2017-07-13T22:29:24+03:00" level=error msg="failed to load C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release" error="open C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release: The system cannot find the file specified."
time="2017-07-13T22:30:26+03:00" level=info msg="testing widgets\\textedit"
time="2017-07-13T22:30:59+03:00" level=error msg="failed to run command" cmd="C:\\msys64\\mingw64\\bin\\qmake C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing.pro -spec win32-g++ CONFIG+=release" env= error="exit status 3" func=RunCmdOptional name="run qmake for windows on windows"
Info: creating stash file C:\Users\averr_000\Documents\go\src\github.com\therecipe\qt\purchasing\.qmake.stash
Project ERROR: Unknown module(s) in QT: purchasing

time="2017-07-13T22:30:59+03:00" level=error msg="failed to load C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release" error="open C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\purchasing\\Makefile.Release: The system cannot find the file specified."

It has warnings but all test apps were run

therecipe commented 7 years ago

Yeah, the "QT: purchasing" error/warning is expected.

Mh, then you should be able to compile this example:

package main

import (
    "os"

    "github.com/therecipe/qt/core"
    "github.com/therecipe/qt/webkit"
    "github.com/therecipe/qt/widgets"
)

func main() {
    widgets.NewQApplication(len(os.Args), os.Args)

    view := webkit.NewQWebView(nil)
    view.Load(core.NewQUrl3("http://www.google.com/", 0))
    view.Show()

    widgets.QApplication_Exec()
}

From within the mingw64 shell with QT_WEBKIT=true and QT_VERSION=5.8.0 set.

averrin commented 7 years ago

It didnt complie with 5.9:

time="2017-07-13T23:15:43+03:00" level=panic msg="failed to save C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\winextras\\winextras-minimal.cpp" error="open C:\\Users\\averr_000\\Documents\\go\\src\\github.com\\therecipe\\qt\\winextras\\winextras-minimal.cpp: The system cannot find the path specified."
panic: (*logrus.Entry) (0x7f6880,0xc044dedf40)

I need remove everything again and install 5.8 from pacman?

averrin commented 7 years ago

First good news: after reinstalling with 5.8 your example works!

therecipe commented 7 years ago

Awesome :) But it will only work with the "shared" version, so don't expect it to work when you set QT_MSYS2_STATIC=true.

You can also still find the old docs here: http://doc.qt.io/archives/qt-5.5/qwebview.html I think most of that should still work.

averrin commented 7 years ago

And the second one: my main app works too. Thanks, you did awesome work. But its some kind of magic. Why people loves windows so mush?..

therecipe commented 7 years ago

No, problem. You are welcome :) And I have no idea, windows is always a pain to deal with :D