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.5k stars 748 forks source link

Qtsetup failed? #1205

Open jekoie opened 3 years ago

jekoie commented 3 years ago

I install it by this article, it failed and i don't know how to do now.


D:\go_learn\test>qtsetup
time="2021-01-06T09:57:04+08:00" level=warning msg="failed to create qtenv.bat symlink in your PATH (c:\\go\\bin\\qtenv.bat); please use D:\\Qt\\5.13.0\\mingw73_64\\bin\\qtenv2.bat instead"time="2021-01-06T09:57:04+08:00" level=info msg="running: 'qtsetup prep'"
time="2021-01-06T09:57:04+08:00" level=info msg="successfully created qtrcc symlink in your PATH (c:\\go\\bin\\qtrcc.exe)"        
time="2021-01-06T09:57:04+08:00" level=info msg="successfully created qtmoc symlink in your PATH (c:\\go\\bin\\qtmoc.exe)"        
time="2021-01-06T09:57:04+08:00" level=info msg="successfully created qtminimal symlink in your PATH (c:\\go\\bin\\qtminimal.exe)"
time="2021-01-06T09:57:04+08:00" level=info msg="successfully created qtdeploy symlink in your PATH (c:\\go\\bin\\qtdeploy.exe)"  
time="2021-01-06T09:57:04+08:00" level=info msg="running: 'qtsetup check windows' [docker=false] [vagrant=false]"
time="2021-01-06T09:57:04+08:00" level=info msg="GOOS:                        'windows'"
time="2021-01-06T09:57:04+08:00" level=info msg="GOARCH:                      'amd64'"
time="2021-01-06T09:57:04+08:00" level=info msg="GOVERSION:                   'go1.15.6'"
time="2021-01-06T09:57:04+08:00" level=info msg="GOROOT:                      'c:\\go'"
time="2021-01-06T09:57:04+08:00" level=info msg="GOPATH:                   *  'C:\\Users\\jett\\go'"     
time="2021-01-06T09:57:04+08:00" level=info msg="GOBIN:                       'C:\\Users\\jett\\go\\bin'"
time="2021-01-06T09:57:04+08:00" level=info msg="GOMOD:                       'D:\\go_learn\\test\\go.mod'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_HASH:                     'v0.0.0-20200904063919-c0c124a5770d'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_API:                   *  '5.13.0'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_VERSION:               *  '5.13.0'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_DIR:                   *  'D:\\Qt'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_STUB:                     'false'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_DEBUG:                    'false'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_QMAKE_DIR:                ''"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_WEBKIT:                   'false'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_STATIC:                   'false'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_GEN_GO:                   'false'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_GEN_OPENGL:               'false'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_GEN_QUICK_EXTRAS:         'false'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_RESOURCES_BIG:            'false'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_NOT_CACHED:               'false'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_DEBUG_CONSOLE:            'false'"
time="2021-01-06T09:57:04+08:00" level=info msg="QT_MSYS2:                    'false'"
time="2021-01-06T09:57:04+08:00" level=info msg="running: 'qtsetup generate windows' [docker=false] [vagrant=false]"
time="2021-01-06T09:57:08+08:00" level=info msg="generating full qt/core"
time="2021-01-06T09:57:21+08:00" level=info msg="generating full qt/androidextras"
time="2021-01-06T09:57:21+08:00" level=info msg="generating full qt/gui"
time="2021-01-06T09:57:37+08:00" level=info msg="generating full qt/network"
time="2021-01-06T09:57:41+08:00" level=info msg="generating full qt/xml"
time="2021-01-06T09:57:42+08:00" level=info msg="generating full qt/dbus"
time="2021-01-06T09:57:44+08:00" level=info msg="generating full qt/nfc"
time="2021-01-06T09:57:45+08:00" level=info msg="generating full qt/script"
time="2021-01-06T09:57:46+08:00" level=info msg="generating full qt/sensors"
time="2021-01-06T09:57:50+08:00" level=info msg="generating full qt/positioning"
time="2021-01-06T09:57:51+08:00" level=info msg="generating full qt/widgets"
time="2021-01-06T09:58:23+08:00" level=info msg="generating full qt/sql"
time="2021-01-06T09:58:25+08:00" level=info msg="generating full qt/qml"
time="2021-01-06T09:58:27+08:00" level=info msg="generating full qt/websockets"
time="2021-01-06T09:58:28+08:00" level=info msg="generating full qt/xmlpatterns"
time="2021-01-06T09:58:29+08:00" level=info msg="generating full qt/bluetooth"
time="2021-01-06T09:58:31+08:00" level=info msg="generating full qt/webchannel"
time="2021-01-06T09:58:32+08:00" level=info msg="generating full qt/svg"
time="2021-01-06T09:58:33+08:00" level=info msg="generating full qt/multimedia"
time="2021-01-06T09:58:46+08:00" level=info msg="generating full qt/quick"
time="2021-01-06T09:58:50+08:00" level=info msg="generating full qt/help"
time="2021-01-06T09:58:53+08:00" level=info msg="generating full qt/location"
time="2021-01-06T09:58:55+08:00" level=info msg="generating full qt/scripttools"
time="2021-01-06T09:58:55+08:00" level=info msg="generating full qt/uitools"
time="2021-01-06T09:58:56+08:00" level=info msg="generating full qt/winextras"
time="2021-01-06T09:58:57+08:00" level=info msg="generating full qt/testlib"
time="2021-01-06T09:58:57+08:00" level=info msg="generating full qt/serialport"
time="2021-01-06T09:58:58+08:00" level=info msg="generating full qt/serialbus"
time="2021-01-06T09:58:59+08:00" level=info msg="generating full qt/printsupport"
time="2021-01-06T09:59:02+08:00" level=info msg="generating full qt/designer"
time="2021-01-06T09:59:05+08:00" level=info msg="generating full qt/scxml"
time="2021-01-06T09:59:06+08:00" level=info msg="generating full qt/gamepad"
time="2021-01-06T09:59:07+08:00" level=info msg="generating full qt/purchasing"
time="2021-01-06T09:59:08+08:00" level=info msg="generating full qt/datavisualization    [GPLv3]"
time="2021-01-06T09:59:12+08:00" level=info msg="generating full qt/charts               [GPLv3]"
time="2021-01-06T09:59:20+08:00" level=info msg="generating full qt/virtualkeyboard      [GPLv3]"
time="2021-01-06T09:59:21+08:00" level=info msg="generating full qt/speech"
time="2021-01-06T09:59:22+08:00" level=info msg="generating full qt/quickcontrols2"
time="2021-01-06T09:59:22+08:00" level=info msg="generating full qt/sailfish"
time="2021-01-06T09:59:22+08:00" level=info msg="generating full qt/remoteobjects"
time="2021-01-06T09:59:26+08:00" level=info msg="running: 'qtsetup install windows' [docker=false] [vagrant=false]"
time="2021-01-06T09:59:26+08:00" level=info msg="installing full qt/core"
github.com/therecipe/qt/core
# github.com/therecipe/qt/core
core.cpp:159:10: fatal error: QScriptExtensionPlugin: No such file or directory
 #include <QScriptExtensionPlugin>
          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

time="2021-01-06T10:01:15+08:00" level=error msg="failed to install 'core'; aborting setup"
starwork commented 3 years ago

QT_DIR -->>D:\Qt-->>D:\Qt\Qt5.13.0

Setting up environment for Qt:
PATH add: D:\Qt\Qt5.13.0\Tools\mingw73_64\bin D:\Qt\Qt5.13.0\5.13.0\mingw73_64\bin D:\Qt\Qt5.13.0\Tools\mingw73_64\opt\bin

starwork commented 3 years ago

SEE : https://blog.csdn.net/weixin_30617561/article/details/96078022

jekoie commented 3 years ago

@starwork I use Qt5.13 is different with Qt.5.11, the csdn blog you had given me not correct for me.I just remain QT_DIR environment variable that work fine now.