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.49k
stars
748
forks
source link
qtwebview fails on OSX for OSX, but works on Android #253
Basically webview works fine on android, but does not work on OSX.
Has never worked for me on OSX.
Here are the steps i went through:
$GOPATH/bin/qtsetup
INFO[0000] running: 'qtsetup prep'
INFO[0000] successfully created qtrcc symlink in your PATH (/usr/local/bin/qtrcc)
INFO[0000] successfully created qtmoc symlink in your PATH (/usr/local/bin/qtmoc)
INFO[0000] successfully created qtminimal symlink in your PATH (/usr/local/bin/qtminimal)
INFO[0000] successfully created qtdeploy symlink in your PATH (/usr/local/bin/qtdeploy)
INFO[0000] running: 'qtsetup check darwin'
INFO[0000] GOOS: 'darwin'
INFO[0000] GOARCH: 'amd64'
INFO[0000] GOVERSION: 'go1.8'
INFO[0000] GOROOT: * '/usr/local/opt/go/libexec'
INFO[0000] GOPATH: * '/Users/apple/workspace/go'
INFO[0000] GOBIN: '/Users/apple/workspace/go/bin'
INFO[0000] QT_HASH: '2df4e957c6300ad4447848e60c8cea05d03098ca'
INFO[0000] QT_VERSION: '5.8.0'
INFO[0000] QT_VERSION_MAJOR: '5.8'
INFO[0000] QT_DIR: * '/Users/apple/Qt5.8.0'
INFO[0000] QT_STUB: 'false'
INFO[0000] QT_DEBUG: 'false'
INFO[0000] QT_QMAKE_DIR: ''
INFO[0000] QT_HOMEBREW: 'false'
INFO[0000] XCODE_DIR: '/Applications/Xcode.app'
INFO[0000] running: 'qtsetup generate darwin'
INFO[0009] generating full qt/core
INFO[0018] generating full qt/androidextras
INFO[0019] generating full qt/gui
INFO[0029] generating full qt/network
INFO[0032] generating full qt/xml
INFO[0035] generating full qt/dbus
INFO[0037] generating full qt/nfc
INFO[0039] generating full qt/script
INFO[0041] generating full qt/sensors
INFO[0044] generating full qt/positioning
INFO[0046] generating full qt/widgets
INFO[0068] generating full qt/sql
INFO[0071] generating full qt/macextras
INFO[0073] generating full qt/qml
INFO[0075] generating full qt/websockets
INFO[0077] generating full qt/xmlpatterns
INFO[0079] generating full qt/bluetooth
INFO[0082] generating full qt/webchannel
INFO[0084] generating full qt/svg
INFO[0086] generating full qt/multimedia
INFO[0093] generating full qt/quick
INFO[0096] generating full qt/help
INFO[0099] generating full qt/location
INFO[0102] generating full qt/scripttools
INFO[0103] generating full qt/uitools
INFO[0105] generating full qt/webengine
INFO[0108] generating full qt/testlib
INFO[0109] generating full qt/serialport
INFO[0111] generating full qt/serialbus
INFO[0113] generating full qt/printsupport
INFO[0116] generating full qt/designer
INFO[0119] generating full qt/scxml
INFO[0121] generating full qt/gamepad
INFO[0123] generating full qt/purchasing
INFO[0125] generating full qt/datavisualization
INFO[0128] generating full qt/charts
INFO[0132] generating full qt/speech
INFO[0134] generating full qt/quickcontrols2
INFO[0135] generating full qt/sailfish
INFO[0135] generating full qt/webview
INFO[0137] running: 'qtsetup install darwin'
INFO[0137] installing full qt/core
INFO[0174] installing full qt/androidextras
INFO[0174] installing full qt/gui
INFO[0212] installing full qt/network
INFO[0228] installing full qt/xml
INFO[0234] installing full qt/dbus
INFO[0240] installing full qt/nfc
INFO[0245] installing full qt/script
INFO[0249] installing full qt/sensors
INFO[0257] installing full qt/positioning
INFO[0263] installing full qt/widgets
INFO[0349] installing full qt/sql
INFO[0359] installing full qt/macextras
INFO[0363] installing full qt/qml
INFO[0370] installing full qt/websockets
INFO[0374] installing full qt/xmlpatterns
INFO[0379] installing full qt/bluetooth
INFO[0387] installing full qt/webchannel
INFO[0390] installing full qt/svg
INFO[0396] installing full qt/multimedia
INFO[0426] installing full qt/quick
INFO[0438] installing full qt/help
INFO[0450] installing full qt/location
INFO[0455] installing full qt/scripttools
INFO[0458] installing full qt/uitools
INFO[0461] installing full qt/webengine
INFO[0471] installing full qt/testlib
INFO[0475] installing full qt/serialport
INFO[0478] installing full qt/serialbus
INFO[0484] installing full qt/printsupport
INFO[0491] installing full qt/designer
ERRO[0495] failed to run command cmd="go install -p 4 -v github.com/therecipe/qt/designer" env= error="exit status 2" func=RunCmdOptionalError name="install designer"
github.com/therecipe/qt/designer
# github.com/therecipe/qt/designer
In file included from ../../therecipe/qt/designer/designer.cpp:25:
/Users/apple/Qt5.8.0/5.8/clang_64/lib/QtDesigner.framework/Headers/QDesignerCustomWidgetCollectionInterface:4:4: warning: Header <QtDesigner/QDesignerCustomWidgetCollectionInterface> is deprecated. Please include <QtUiPlugin/QDesignerCustomWidgetCollectionInterface> instead. [-W#warnings]
/Users/apple/Qt5.8.0/5.8/clang_64/lib/QtDesigner.framework/Headers/QDesignerCustomWidgetCollectionInterface:8:10: fatal error: 'QtUiPlugin/QDesignerCustomWidgetCollectionInterface' file not found
INFO[0495] installing full qt/scxml
INFO[0500] installing full qt/gamepad
INFO[0504] installing full qt/purchasing
INFO[0507] installing full qt/datavisualization
INFO[0526] installing full qt/charts
INFO[0546] installing full qt/speech
INFO[0549] installing full qt/quickcontrols2
INFO[0550] installing full qt/sailfish
INFO[0550] installing full qt/webview
ERRO[0551] failed to install the following 1 package(s):
ERRO[0551] designer
ERRO[0551] you may want to run 'qtsetup install darwin' if you depend on these 1 package(s)
INFO[0551] running: 'qtsetup test darwin'
INFO[0551] testing qml/application
INFO[0622] testing qml/drawer_nav_x
INFO[0640] testing qml/gallery
INFO[0653] testing quick/calc
INFO[0665] testing widgets/line_edits
INFO[0684] testing widgets/pixel_editor
INFO[0702] testing widgets/textedit
so i did what it said !
x-MacBook-Pro:Pipeline-Editor apple$ qtsetup install darwin
INFO[0000] running: 'qtsetup install darwin'
INFO[0000] installing full qt/core
INFO[0000] installing full qt/androidextras
INFO[0000] installing full qt/gui
INFO[0000] installing full qt/network
INFO[0000] installing full qt/xml
INFO[0000] installing full qt/dbus
INFO[0000] installing full qt/nfc
INFO[0000] installing full qt/script
INFO[0000] installing full qt/sensors
INFO[0000] installing full qt/positioning
INFO[0001] installing full qt/widgets
INFO[0001] installing full qt/sql
INFO[0001] installing full qt/macextras
INFO[0001] installing full qt/qml
INFO[0001] installing full qt/websockets
INFO[0001] installing full qt/xmlpatterns
INFO[0001] installing full qt/bluetooth
INFO[0001] installing full qt/webchannel
INFO[0001] installing full qt/svg
INFO[0002] installing full qt/multimedia
INFO[0002] installing full qt/quick
INFO[0002] installing full qt/help
INFO[0002] installing full qt/location
INFO[0002] installing full qt/scripttools
INFO[0002] installing full qt/uitools
INFO[0002] installing full qt/webengine
INFO[0002] installing full qt/testlib
INFO[0002] installing full qt/serialport
INFO[0003] installing full qt/serialbus
INFO[0003] installing full qt/printsupport
INFO[0003] installing full qt/designer
ERRO[0007] failed to run command cmd="go install -p 4 -v github.com/therecipe/qt/designer" env= error="exit status 2" func=RunCmdOptionalError name="install designer"
github.com/therecipe/qt/designer
# github.com/therecipe/qt/designer
In file included from ../../therecipe/qt/designer/designer.cpp:25:
/Users/apple/Qt5.8.0/5.8/clang_64/lib/QtDesigner.framework/Headers/QDesignerCustomWidgetCollectionInterface:4:4: warning: Header <QtDesigner/QDesignerCustomWidgetCollectionInterface> is deprecated. Please include <QtUiPlugin/QDesignerCustomWidgetCollectionInterface> instead. [-W#warnings]
/Users/apple/Qt5.8.0/5.8/clang_64/lib/QtDesigner.framework/Headers/QDesignerCustomWidgetCollectionInterface:8:10: fatal error: 'QtUiPlugin/QDesignerCustomWidgetCollectionInterface' file not found
INFO[0007] installing full qt/scxml
INFO[0007] installing full qt/gamepad
INFO[0007] installing full qt/purchasing
INFO[0007] installing full qt/datavisualization
INFO[0007] installing full qt/charts
INFO[0007] installing full qt/speech
INFO[0007] installing full qt/quickcontrols2
INFO[0008] installing full qt/sailfish
INFO[0008] installing full qt/webview
ERRO[0008] failed to install the following 1 package(s):
ERRO[0008] designer
ERRO[0008] you may want to run 'qtsetup install darwin' if you depend on these 1 package(s)
x-MacBook-Pro:Pipeline-Editor apple$
anyway, when i went to the directory and tried a deploy i got it to build for OSX and android.
On OSX just opens the icon in the bottom tray and nothing else at all.
On Android it works !
osx, golang 1.8
Basically webview works fine on android, but does not work on OSX. Has never worked for me on OSX.
Here are the steps i went through:
so i did what it said !
anyway, when i went to the directory and tried a deploy i got it to build for OSX and android. On OSX just opens the icon in the bottom tray and nothing else at all. On Android it works !