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.38k stars 735 forks source link

qtsetup error #1081

Open k0sf opened 4 years ago

k0sf commented 4 years ago

Mac os qt5.14.1

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' [docker=false] [vagrant=false] INFO[0000] GOOS: 'darwin'
INFO[0000] GOARCH: 'amd64'
INFO[0000] GOVERSION: 'go1.14'
INFO[0000] GOROOT: '/usr/local/go' INFO[0000] GOPATH: '/Users/goldking/go' INFO[0000] GOBIN: '/Users/goldking/go/bin' INFO[0000] GOMOD: '/Users/goldking/Documents/Code-Go/qthello/go.mod' INFO[0000] QT_HASH: 'v0.0.0-20200126204426-5074eb6d8c41' INFO[0000] QT_API: '5.14.1'
INFO[0000] QT_VERSION:
'5.14.1'
INFO[0000] QT_DIR: * '/usr/local/Cellar/qt/5.14.1' INFO[0000] QT_STUB: 'false'
INFO[0000] QT_DEBUG: 'false'
INFO[0000] QT_QMAKE_DIR: ''
INFO[0000] QT_WEBKIT: 'false'
INFO[0000] QT_STATIC: 'false'
INFO[0000] QT_GEN_TSD: 'false'
INFO[0000] QT_GEN_OPENGL: 'false'
INFO[0000] QT_GEN_QUICK_EXTRAS: 'false'
INFO[0000] QT_RESOURCES_BIG: 'false'
INFO[0000] QT_NOT_CACHED: 'false'
INFO[0000] QT_HOMEBREW: 'true'
INFO[0000] QT_MACPORTS: 'false'
INFO[0000] QT_NIX: 'false'
INFO[0000] QT_FELGO: 'false'
INFO[0000] XCODE_DIR: '/Applications/Xcode.app' INFO[0000] QT_PKG_CONFIG: 'false'
INFO[0000] running: 'qtsetup generate darwin' [docker=false] [vagrant=false] WARN[0000] parser.LoadModule error=EOF module=RemoteObjects WARN[0000] parser.LoadModule error=EOF module=SerialBus WARN[0000] parser.LoadModule error=EOF module=AndroidExtras WARN[0000] parser.LoadModule error=EOF module=Script WARN[0000] parser.LoadModule error=EOF module=WebSockets WARN[0000] parser.LoadModule error=EOF module=Core WARN[0000] parser.LoadModule error=EOF module=Quick WARN[0000] parser.LoadModule error=EOF module=Bluetooth WARN[0000] parser.LoadModule error=EOF module=Designer WARN[0000] parser.LoadModule error=EOF module=Gui WARN[0000] parser.LoadModule error=EOF module=XmlPatterns WARN[0000] parser.LoadModule error=EOF module=Speech WARN[0000] parser.LoadModule error=EOF module=SerialPort WARN[0000] parser.LoadModule error=EOF module=Gamepad WARN[0000] parser.LoadModule error=EOF module=WebChannel WARN[0000] parser.LoadModule error=EOF module=Sql WARN[0000] parser.LoadModule error=EOF module=Help WARN[0000] parser.LoadModule error=EOF module=ScriptTools WARN[0000] parser.LoadModule error=EOF module=Location WARN[0000] parser.LoadModule error=EOF module=Qml WARN[0000] parser.LoadModule error=EOF module=MacExtras WARN[0000] parser.LoadModule error=EOF module=Network WARN[0000] parser.LoadModule error=EOF module=Purchasing WARN[0000] parser.LoadModule error=EOF module=Sensors WARN[0000] parser.LoadModule error=EOF module=PrintSupport WARN[0000] parser.LoadModule error=EOF module=Multimedia WARN[0000] parser.LoadModule error=EOF module=Positioning WARN[0000] parser.LoadModule error=EOF module=Widgets WARN[0000] parser.LoadModule error=EOF module=DBus WARN[0000] parser.LoadModule error=EOF module=WebEngine WARN[0000] parser.LoadModule error=EOF module=WebView WARN[0000] parser.LoadModule error=EOF module=TestLib WARN[0000] parser.LoadModule error=EOF module=UiTools WARN[0000] parser.LoadModule error=EOF module=Xml WARN[0000] parser.LoadModule error=EOF module=Nfc WARN[0000] parser.LoadModule error=EOF module=Scxml WARN[0000] parser.LoadModule error=EOF module=QuickControls2 WARN[0000] parser.LoadModule error=EOF module=Svg INFO[0000] generating full qt/core
INFO[0000] generating full qt/androidextras
INFO[0000] generating full qt/gui
INFO[0001] generating full qt/network
INFO[0002] generating full qt/xml
INFO[0003] generating full qt/dbus
INFO[0003] generating full qt/nfc
INFO[0004] generating full qt/script
INFO[0005] generating full qt/sensors
INFO[0005] generating full qt/positioning
INFO[0006] generating full qt/widgets
INFO[0007] generating full qt/sql
INFO[0007] generating full qt/macextras
INFO[0008] generating full qt/qml
INFO[0009] generating full qt/websockets
INFO[0010] generating full qt/xmlpatterns
INFO[0010] generating full qt/bluetooth
INFO[0011] generating full qt/webchannel
INFO[0012] generating full qt/svg
INFO[0012] generating full qt/multimedia
INFO[0013] generating full qt/quick
INFO[0014] generating full qt/help
INFO[0014] generating full qt/location
INFO[0015] generating full qt/scripttools
INFO[0016] generating full qt/uitools
INFO[0017] generating full qt/webengine
INFO[0017] generating full qt/testlib
INFO[0018] generating full qt/serialport
INFO[0019] generating full qt/serialbus
INFO[0019] generating full qt/printsupport
INFO[0020] generating full qt/designer
INFO[0021] generating full qt/scxml
INFO[0022] generating full qt/gamepad
INFO[0022] generating full qt/purchasing
INFO[0023] generating full qt/datavisualization [GPLv3] INFO[0024] generating full qt/charts [GPLv3] INFO[0024] generating full qt/virtualkeyboard [GPLv3] INFO[0025] generating full qt/speech
INFO[0026] generating full qt/quickcontrols2
INFO[0026] generating full qt/sailfish
INFO[0026] generating full qt/webview
INFO[0027] generating full qt/remoteobjects
WARN[0029] parser.LoadModule error=EOF module=Qml WARN[0029] parser.LoadModule error=EOF module=Core INFO[0029] running: 'qtsetup install darwin' [docker=false] [vagrant=false] INFO[0029] installing full qt/core
github.com/therecipe/qt/core

github.com/therecipe/qt/core

vendor/github.com/therecipe/qt/core/core.go:15:42: undefined: NewQByteArrayFromPointer

ERRO[0031] failed to install 'core'; aborting setup

jxltom commented 4 years ago

Same issue with https://github.com/therecipe/qt/issues/1041

k0sf commented 4 years ago

#1041同样的问题

How should it be solved? I haven't solved this problem until now

jxltom commented 4 years ago

#1041同样的问题

How should it be solved? I haven't solved this problem until now

Make sure github.com/therecipe/qt/internal/binding/files/docs/5.13.0 in vendor directory exists if you can using Qt5.13.0. You can git clone it vendor directory or copy it manually from GOPATH because go mod vendor doesn't copy all the files...

k0sf commented 4 years ago

#1041同样的问题

应该如何解决? 直到现在我还没有解决这个问题

确保github.com/therecipe/qt/internal/binding/files/docs/5.13.0vendor目录中,如果你能使用Qt5.13.0。您可以git clone它的vendor目录或从中手动复制它,GOPATH因为go mod vendor不会复制所有文件...

I have manually copied all the files to the vendor directory, and executing qtsetup is still the same error. I am using qt5.14.1

#1041同样的问题

How should it be solved? I haven't solved this problem until now

Make sure github.com/therecipe/qt/internal/binding/files/docs/5.13.0 in vendor directory exists if you can using Qt5.13.0. You can git clone it vendor directory or copy it manually from GOPATH because go mod vendor doesn't copy all the files...

I have manually copied all the files to the vendor directory, and executing qtsetup is still the same error. I am using qt5.14.1

jxltom commented 4 years ago

If you are using 5.14, you need to use docs for 5.14 but there is no support for it in https://github.com/therecipe/qt/tree/master/internal/binding/files/docs

k0sf commented 4 years ago

https://github.com/therecipe/qt/tree/master/internal/binding/files/docs

里面并没有5.14啊 There is no 5.14 in it

k0sf commented 4 years ago

如果您使用的是5.14,则需要使用5.14的文档,但是在 https://github.com/therecipe/qt/tree/master/internal/binding/files/docs

Which version do you use?

jxltom commented 4 years ago

Why don't you use Qt5.13.0, it's fully supported.

k0sf commented 4 years ago

为什么不使用Qt5.13.0,它得到了完全支持。

Okay, then I use 5.13.0.