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

can't run example app on macos #958

Open wkj89 opened 5 years ago

wkj89 commented 5 years ago

some env info

INFO[0000] running: 'qtsetup check darwin' [docker=false] [vagrant=false]
INFO[0000] GOOS:                        'darwin'
INFO[0000] GOARCH:                      'amd64'
INFO[0000] GOVERSION:                   'go1.12.6'
INFO[0000] GOROOT:                      '/usr/local/go'
INFO[0000] GOPATH:                   *  '/Users/wkj89/go'
INFO[0000] GOBIN:                       '/Users/wkj89/go/bin'
INFO[0000] GOMOD:                       ''
INFO[0000] QT_HASH:                     'fatal: Not a git repository (or any of the parent directories): .git'
INFO[0000] QT_API:                      ''
INFO[0000] QT_VERSION:               *  '5.13.0'
INFO[0000] QT_DIR:                   *  '/usr/local/Cellar/qt'
INFO[0000] QT_STUB:                     'false'
INFO[0000] QT_DEBUG:                    'false'
INFO[0000] QT_QMAKE_DIR:                ''
INFO[0000] QT_WEBKIT:                   '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'

pwd:~/go/src/github.com/therecipe/qt/internal/examples/qml/application

go run application.go
QQmlApplicationEngine failed to load component
qrc:/qml/application.qml:-1 No such file or directory

cmd: cat application.go

package main

import (
    "os"

    "github.com/therecipe/qt/core"
    "github.com/therecipe/qt/gui"
    "github.com/therecipe/qt/qml"
)

func main() {
    core.QCoreApplication_SetAttribute(core.Qt__AA_EnableHighDpiScaling, true)

    gui.NewQGuiApplication(len(os.Args), os.Args)

    var app = qml.NewQQmlApplicationEngine(nil)
    app.Load(core.NewQUrl3("qrc:/qml/application.qml", 0))

    gui.QGuiApplication_Exec()
}

cmd: qtdeploy -debug test desktop (well, nothing happened)

DEBU[0000] running Deploy                                comply=false docker=false fast=false ldFlags= mode=test path=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application quickcompiler=false target=darwin useuic=true
DEBU[0000] start Rcc                                     path=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application target=darwin
DEBU[0000] get imports                                   fields.level=0 path=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application
DEBU[0000] Execute                                       _func=RunCmd cmd="go version" dir= env= name="get go version"
DEBU[0000] Execute                                       _func=RunCmd cmd="go list std" dir= env= name="go list std"
DEBU[0001] Execute                                       _func=RunCmd cmd="go list -tags= -e -f {{join .TestImports \"|\"}}|{{join .XTestImports \"|\"}}|{{join .Deps \"|\"}}" dir=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application env="TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners LC_TERMINAL_VERSION=3.3.2 Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render COLORFGBG=12;8 ITERM_PROFILE=Default XPC_FLAGS=0x0 LANG=zh_CN.UTF-8 PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application SHELL=/bin/zsh TERM_PROGRAM_VERSION=3.3.2 TERM_PROGRAM=iTerm.app PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS LC_TERMINAL=iTerm2 COLORTERM=truecolor TERM=xterm-256color HOME=/Users/wkj89 TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ USER=wkj89 XPC_SERVICE_NAME=0 LOGNAME=wkj89 ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 SHLVL=1 OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS ZSH=/Users/wkj89/.oh-my-zsh PAGER=less LESS=-R LSCOLORS=Gxfxcxdxbxegedabagacad ETCDCTL_API=3 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 DATASTORE_TYPE=kubernetes KUBECONFIG=/Users/wkj89/.kube/config GOPATH=/Users/wkj89/go PYENV_ROOT=/Users/wkj89/.pyenv PYENV_SHELL=zsh PYENV_VIRTUALENV_INIT=1 HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles GOPROXY=https://goproxy.cn PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig LDFLAGS=-L/usr/local/opt/qt/lib QT_DIR=/usr/local/Cellar/qt QT_VERSION=5.13.0 CPPFLAGS=-I/usr/local/opt/qt/include QT_HOMEBREW=true http_proxy=http://127.0.0.1:1087/ https_proxy=http://127.0.0.1:1087/ LC_CTYPE=zh_CN.UTF-8 _=/Users/wkj89/go/bin/qtdeploy GO111MODULE=off CGO_ENABLED=0 QT_DIR=/usr/local/Cellar/qt XPC_SERVICE_NAME=0 LOGNAME=wkj89 LSCOLORS=Gxfxcxdxbxegedabagacad QT_VERSION=5.13.0 SHLVL=1 KUBECONFIG=/Users/wkj89/.kube/config PYENV_SHELL=zsh CPPFLAGS=-I/usr/local/opt/qt/include ITERM_PROFILE=Default PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application LC_TERMINAL_VERSION=3.3.2 TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners SHELL=/bin/zsh TERM_PROGRAM=iTerm.app LC_TERMINAL=iTerm2 USER=wkj89 ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig PAGER=less PYENV_ROOT=/Users/wkj89/.pyenv GOPROXY=https://goproxy.cn _=/Users/wkj89/go/bin/qtdeploy TERM=xterm-256color PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS XPC_FLAGS=0x0 LANG=zh_CN.UTF-8 __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render ZSH=/Users/wkj89/.oh-my-zsh GOOS=darwin TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D ETCDCTL_API=3 HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles LC_CTYPE=zh_CN.UTF-8 GO111MODULE=off GOARCH=amd64 CGO_ENABLED=1 LESS=-R PYENV_VIRTUALENV_INIT=1 COLORFGBG=12;8 GOROOT=/usr/local/go TERM_PROGRAM_VERSION=3.3.2 COLORTERM=truecolor DATASTORE_TYPE=kubernetes LDFLAGS=-L/usr/local/opt/qt/lib http_proxy=http://127.0.0.1:1087/ https_proxy=http://127.0.0.1:1087/ GOPATH=/Users/wkj89/go HOME=/Users/wkj89 QT_HOMEBREW=true" name="go list deps"
DEBU[0001] Execute                                       _func=RunCmd cmd="go list -tags= -find -e -f {{.Name}}" dir=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application env="TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners LC_TERMINAL_VERSION=3.3.2 Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render COLORFGBG=12;8 ITERM_PROFILE=Default XPC_FLAGS=0x0 LANG=zh_CN.UTF-8 PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application SHELL=/bin/zsh TERM_PROGRAM_VERSION=3.3.2 TERM_PROGRAM=iTerm.app PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS LC_TERMINAL=iTerm2 COLORTERM=truecolor TERM=xterm-256color HOME=/Users/wkj89 TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ USER=wkj89 XPC_SERVICE_NAME=0 LOGNAME=wkj89 ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 SHLVL=1 OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS ZSH=/Users/wkj89/.oh-my-zsh PAGER=less LESS=-R LSCOLORS=Gxfxcxdxbxegedabagacad ETCDCTL_API=3 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 DATASTORE_TYPE=kubernetes KUBECONFIG=/Users/wkj89/.kube/config GOPATH=/Users/wkj89/go PYENV_ROOT=/Users/wkj89/.pyenv PYENV_SHELL=zsh PYENV_VIRTUALENV_INIT=1 HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles GOPROXY=https://goproxy.cn PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig LDFLAGS=-L/usr/local/opt/qt/lib QT_DIR=/usr/local/Cellar/qt QT_VERSION=5.13.0 CPPFLAGS=-I/usr/local/opt/qt/include QT_HOMEBREW=true http_proxy=http://127.0.0.1:1087/ https_proxy=http://127.0.0.1:1087/ LC_CTYPE=zh_CN.UTF-8 _=/Users/wkj89/go/bin/qtdeploy GO111MODULE=off CGO_ENABLED=0 XPC_FLAGS=0x0 QT_VERSION=5.13.0 CPPFLAGS=-I/usr/local/opt/qt/include LC_CTYPE=zh_CN.UTF-8 Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render USER=wkj89 __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles http_proxy=http://127.0.0.1:1087/ CGO_ENABLED=1 COLORFGBG=12;8 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 TERM_PROGRAM=iTerm.app PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig TERM_PROGRAM_VERSION=3.3.2 LDFLAGS=-L/usr/local/opt/qt/lib PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS SHLVL=1 PAGER=less GOPATH=/Users/wkj89/go TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ QT_DIR=/usr/local/Cellar/qt ITERM_PROFILE=Default COLORTERM=truecolor SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners GO111MODULE=off OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS KUBECONFIG=/Users/wkj89/.kube/config QT_HOMEBREW=true LC_TERMINAL_VERSION=3.3.2 HOME=/Users/wkj89 ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D LC_TERMINAL=iTerm2 LOGNAME=wkj89 PYENV_SHELL=zsh GOROOT=/usr/local/go LANG=zh_CN.UTF-8 GOPROXY=https://goproxy.cn GOARCH=amd64 PYENV_VIRTUALENV_INIT=1 XPC_SERVICE_NAME=0 ZSH=/Users/wkj89/.oh-my-zsh LSCOLORS=Gxfxcxdxbxegedabagacad TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D ETCDCTL_API=3 TERM=xterm-256color PYENV_ROOT=/Users/wkj89/.pyenv GOOS=darwin DATASTORE_TYPE=kubernetes https_proxy=http://127.0.0.1:1087/ _=/Users/wkj89/go/bin/qtdeploy PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application SHELL=/bin/zsh LESS=-R" name="run go list"
DEBU[0001] running cgoTemplate                           mode=3 module=main path=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application pkg= target=darwin
DEBU[0001] Execute                                       _func=RunCmd cmd="go list -find -e -f {{.Dir}} github.com/therecipe/qt" dir= env="TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners LC_TERMINAL_VERSION=3.3.2 Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render COLORFGBG=12;8 ITERM_PROFILE=Default XPC_FLAGS=0x0 LANG=zh_CN.UTF-8 PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application SHELL=/bin/zsh TERM_PROGRAM_VERSION=3.3.2 TERM_PROGRAM=iTerm.app PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS LC_TERMINAL=iTerm2 COLORTERM=truecolor TERM=xterm-256color HOME=/Users/wkj89 TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ USER=wkj89 XPC_SERVICE_NAME=0 LOGNAME=wkj89 ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 SHLVL=1 OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS ZSH=/Users/wkj89/.oh-my-zsh PAGER=less LESS=-R LSCOLORS=Gxfxcxdxbxegedabagacad ETCDCTL_API=3 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 DATASTORE_TYPE=kubernetes KUBECONFIG=/Users/wkj89/.kube/config GOPATH=/Users/wkj89/go PYENV_ROOT=/Users/wkj89/.pyenv PYENV_SHELL=zsh PYENV_VIRTUALENV_INIT=1 HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles GOPROXY=https://goproxy.cn PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig LDFLAGS=-L/usr/local/opt/qt/lib QT_DIR=/usr/local/Cellar/qt QT_VERSION=5.13.0 CPPFLAGS=-I/usr/local/opt/qt/include QT_HOMEBREW=true http_proxy=http://127.0.0.1:1087/ https_proxy=http://127.0.0.1:1087/ LC_CTYPE=zh_CN.UTF-8 _=/Users/wkj89/go/bin/qtdeploy GO111MODULE=off CGO_ENABLED=0" name=utils.GoQtPkgPath
DEBU[0001] Execute                                       _func=RunCmd cmd="/usr/local/opt/qt5/bin/qmake -query QT_INSTALL_PREFIX" dir= env= name="query install prefix path for darwin on darwin"
DEBU[0001] skipping cgo generation
DEBU[0001] Execute                                       _func=RunCmd cmd="/usr/local/opt/qt5/bin/rcc -project -o /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/rcc.qrc" dir=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/qml env= name="execute rcc *.qrc on darwin for darwin"
DEBU[0001] saved file len(99) /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/rcc.qrc
DEBU[0001] Execute                                       _func=RunCmd cmd="go list -tags= -find -e -f {{.ImportPath}}" dir=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application env="TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners LC_TERMINAL_VERSION=3.3.2 Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render COLORFGBG=12;8 ITERM_PROFILE=Default XPC_FLAGS=0x0 LANG=zh_CN.UTF-8 PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application SHELL=/bin/zsh TERM_PROGRAM_VERSION=3.3.2 TERM_PROGRAM=iTerm.app PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS LC_TERMINAL=iTerm2 COLORTERM=truecolor TERM=xterm-256color HOME=/Users/wkj89 TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ USER=wkj89 XPC_SERVICE_NAME=0 LOGNAME=wkj89 ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 SHLVL=1 OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS ZSH=/Users/wkj89/.oh-my-zsh PAGER=less LESS=-R LSCOLORS=Gxfxcxdxbxegedabagacad ETCDCTL_API=3 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 DATASTORE_TYPE=kubernetes KUBECONFIG=/Users/wkj89/.kube/config GOPATH=/Users/wkj89/go PYENV_ROOT=/Users/wkj89/.pyenv PYENV_SHELL=zsh PYENV_VIRTUALENV_INIT=1 HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles GOPROXY=https://goproxy.cn PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig LDFLAGS=-L/usr/local/opt/qt/lib QT_DIR=/usr/local/Cellar/qt QT_VERSION=5.13.0 CPPFLAGS=-I/usr/local/opt/qt/include QT_HOMEBREW=true http_proxy=http://127.0.0.1:1087/ https_proxy=http://127.0.0.1:1087/ LC_CTYPE=zh_CN.UTF-8 _=/Users/wkj89/go/bin/qtdeploy GO111MODULE=off CGO_ENABLED=0 LDFLAGS=-L/usr/local/opt/qt/lib PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS SHLVL=1 PAGER=less GOPATH=/Users/wkj89/go TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ QT_DIR=/usr/local/Cellar/qt ITERM_PROFILE=Default COLORTERM=truecolor SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners GO111MODULE=off KUBECONFIG=/Users/wkj89/.kube/config QT_HOMEBREW=true LC_TERMINAL_VERSION=3.3.2 HOME=/Users/wkj89 OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D LC_TERMINAL=iTerm2 LOGNAME=wkj89 PYENV_SHELL=zsh GOROOT=/usr/local/go LANG=zh_CN.UTF-8 GOARCH=amd64 PYENV_VIRTUALENV_INIT=1 GOPROXY=https://goproxy.cn ZSH=/Users/wkj89/.oh-my-zsh LSCOLORS=Gxfxcxdxbxegedabagacad TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D XPC_SERVICE_NAME=0 ETCDCTL_API=3 PYENV_ROOT=/Users/wkj89/.pyenv GOOS=darwin TERM=xterm-256color https_proxy=http://127.0.0.1:1087/ _=/Users/wkj89/go/bin/qtdeploy PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application SHELL=/bin/zsh LESS=-R DATASTORE_TYPE=kubernetes XPC_FLAGS=0x0 CPPFLAGS=-I/usr/local/opt/qt/include LC_CTYPE=zh_CN.UTF-8 Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render USER=wkj89 __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 QT_VERSION=5.13.0 http_proxy=http://127.0.0.1:1087/ CGO_ENABLED=1 COLORFGBG=12;8 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig TERM_PROGRAM_VERSION=3.3.2 TERM_PROGRAM=iTerm.app" name="run go list"
DEBU[0002] Execute                                       _func=RunCmd cmd="/usr/local/opt/qt5/bin/rcc -name rcc_github_com_therecipe_qt_internal_examples_qml_application -o /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/rcc.cpp /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/rcc.qrc" dir= env= name="execute rcc *.cpp on darwin for darwin"
DEBU[0002] start Moc                                     path=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application target=darwin
DEBU[0002] Execute                                       _func=RunCmdOptional cmd="go list -e -f {{.Stale}}|{{.StaleReason}} -tags=minimal" dir=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application env="TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners LC_TERMINAL_VERSION=3.3.2 Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render COLORFGBG=12;8 ITERM_PROFILE=Default XPC_FLAGS=0x0 LANG=zh_CN.UTF-8 PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application SHELL=/bin/zsh TERM_PROGRAM_VERSION=3.3.2 TERM_PROGRAM=iTerm.app PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS LC_TERMINAL=iTerm2 COLORTERM=truecolor TERM=xterm-256color HOME=/Users/wkj89 TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ USER=wkj89 XPC_SERVICE_NAME=0 LOGNAME=wkj89 ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 SHLVL=1 OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS ZSH=/Users/wkj89/.oh-my-zsh PAGER=less LESS=-R LSCOLORS=Gxfxcxdxbxegedabagacad ETCDCTL_API=3 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 DATASTORE_TYPE=kubernetes KUBECONFIG=/Users/wkj89/.kube/config GOPATH=/Users/wkj89/go PYENV_ROOT=/Users/wkj89/.pyenv PYENV_SHELL=zsh PYENV_VIRTUALENV_INIT=1 HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles GOPROXY=https://goproxy.cn PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig LDFLAGS=-L/usr/local/opt/qt/lib QT_DIR=/usr/local/Cellar/qt QT_VERSION=5.13.0 CPPFLAGS=-I/usr/local/opt/qt/include QT_HOMEBREW=true http_proxy=http://127.0.0.1:1087/ https_proxy=http://127.0.0.1:1087/ LC_CTYPE=zh_CN.UTF-8 _=/Users/wkj89/go/bin/qtdeploy GO111MODULE=off CGO_ENABLED=0 SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners XPC_FLAGS=0x0 PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application PAGER=less DATASTORE_TYPE=kubernetes ITERM_PROFILE=Default SHELL=/bin/zsh GOPATH=/Users/wkj89/go QT_HOMEBREW=true GO111MODULE=off CGO_ENABLED=1 LC_TERMINAL=iTerm2 USER=wkj89 ZSH=/Users/wkj89/.oh-my-zsh TERM_PROGRAM_VERSION=3.3.2 COLORTERM=truecolor LSCOLORS=Gxfxcxdxbxegedabagacad PYENV_VIRTUALENV_INIT=1 QT_DIR=/usr/local/Cellar/qt GOARCH=amd64 GOROOT=/usr/local/go Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render HOME=/Users/wkj89 ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles CPPFLAGS=-I/usr/local/opt/qt/include https_proxy=http://127.0.0.1:1087/ XPC_SERVICE_NAME=0 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 GOOS=darwin TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D LOGNAME=wkj89 ETCDCTL_API=3 _=/Users/wkj89/go/bin/qtdeploy TERM=xterm-256color TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig LANG=zh_CN.UTF-8 LESS=-R GOPROXY=https://goproxy.cn COLORFGBG=12;8 LC_CTYPE=zh_CN.UTF-8 LC_TERMINAL_VERSION=3.3.2 TERM_PROGRAM=iTerm.app QT_VERSION=5.13.0 KUBECONFIG=/Users/wkj89/.kube/config http_proxy=http://127.0.0.1:1087/ PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 SHLVL=1 OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS PYENV_ROOT=/Users/wkj89/.pyenv PYENV_SHELL=zsh LDFLAGS=-L/usr/local/opt/qt/lib" name="go check stale for darwin on darwin"
DEBU[0002] skipping already cached moc                   path=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application
DEBU[0002] Execute                                       _func=RunCmdOptional cmd="go list -e -f {{.Stale}}|{{.StaleReason}} -tags=minimal" dir=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application env="TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners LC_TERMINAL_VERSION=3.3.2 Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render COLORFGBG=12;8 ITERM_PROFILE=Default XPC_FLAGS=0x0 LANG=zh_CN.UTF-8 PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application SHELL=/bin/zsh TERM_PROGRAM_VERSION=3.3.2 TERM_PROGRAM=iTerm.app PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS LC_TERMINAL=iTerm2 COLORTERM=truecolor TERM=xterm-256color HOME=/Users/wkj89 TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ USER=wkj89 XPC_SERVICE_NAME=0 LOGNAME=wkj89 ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 SHLVL=1 OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS ZSH=/Users/wkj89/.oh-my-zsh PAGER=less LESS=-R LSCOLORS=Gxfxcxdxbxegedabagacad ETCDCTL_API=3 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 DATASTORE_TYPE=kubernetes KUBECONFIG=/Users/wkj89/.kube/config GOPATH=/Users/wkj89/go PYENV_ROOT=/Users/wkj89/.pyenv PYENV_SHELL=zsh PYENV_VIRTUALENV_INIT=1 HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles GOPROXY=https://goproxy.cn PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig LDFLAGS=-L/usr/local/opt/qt/lib QT_DIR=/usr/local/Cellar/qt QT_VERSION=5.13.0 CPPFLAGS=-I/usr/local/opt/qt/include QT_HOMEBREW=true http_proxy=http://127.0.0.1:1087/ https_proxy=http://127.0.0.1:1087/ LC_CTYPE=zh_CN.UTF-8 _=/Users/wkj89/go/bin/qtdeploy GO111MODULE=off CGO_ENABLED=0 LSCOLORS=Gxfxcxdxbxegedabagacad ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS TERM_PROGRAM_VERSION=3.3.2 SHELL=/bin/zsh LC_CTYPE=zh_CN.UTF-8 TERM_PROGRAM=iTerm.app USER=wkj89 SHLVL=1 GO111MODULE=off _=/Users/wkj89/go/bin/qtdeploy LC_TERMINAL=iTerm2 OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS PYENV_VIRTUALENV_INIT=1 https_proxy=http://127.0.0.1:1087/ GOROOT=/usr/local/go TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D COLORFGBG=12;8 PAGER=less KUBECONFIG=/Users/wkj89/.kube/config PYENV_SHELL=zsh GOARCH=amd64 CGO_ENABLED=1 SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners HOME=/Users/wkj89 DATASTORE_TYPE=kubernetes QT_HOMEBREW=true PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 TERM=xterm-256color ZSH=/Users/wkj89/.oh-my-zsh QT_VERSION=5.13.0 GOOS=darwin Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render COLORTERM=truecolor HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles LDFLAGS=-L/usr/local/opt/qt/lib LC_TERMINAL_VERSION=3.3.2 ITERM_PROFILE=Default XPC_FLAGS=0x0 LESS=-R ETCDCTL_API=3 PYENV_ROOT=/Users/wkj89/.pyenv QT_DIR=/usr/local/Cellar/qt CPPFLAGS=-I/usr/local/opt/qt/include http_proxy=http://127.0.0.1:1087/ LANG=zh_CN.UTF-8 XPC_SERVICE_NAME=0 LOGNAME=wkj89 GOPROXY=https://goproxy.cn TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig GOPATH=/Users/wkj89/go" name="go check stale for darwin on darwin"
DEBU[0002] skipping already cached minimal               path=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application
DEBU[0002] Execute                                       _func=RunCmd cmd="go build -p 4 -v -ldflags=all=\"-w\" \"-extldflags=-v\" -o /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS/application -x -tags=minimal" dir=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application env="CGO_ENABLED=1 SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8HtZXQLL3y/Listeners Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IdXOoygF1H/Render ITERM_PROFILE=Default COLORTERM=truecolor PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig QT_VERSION=5.13.0 TERM_PROGRAM=iTerm.app LC_TERMINAL=iTerm2 XPC_SERVICE_NAME=0 OLDPWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS LSCOLORS=Gxfxcxdxbxegedabagacad QT_DIR=/usr/local/Cellar/qt QT_HOMEBREW=true KUBECONFIG=/Users/wkj89/.kube/config PWD=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application PYENV_VIRTUALENV_INIT=1 GOROOT=/usr/local/go COLORFGBG=12;8 HOME=/Users/wkj89 LOGNAME=wkj89 PAGER=less PYENV_SHELL=zsh TERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D LANG=zh_CN.UTF-8 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=10 SHELL=/bin/zsh LESS=-R CPPFLAGS=-I/usr/local/opt/qt/include http_proxy=http://127.0.0.1:1087/ LC_CTYPE=zh_CN.UTF-8 GOPATH=/Users/wkj89/go XPC_FLAGS=0x0 ITERM_SESSION_ID=w0t3p0:EC4FA4D1-71AA-40DB-BE70-B11B30459C8D GOPROXY=https://goproxy.cn https_proxy=http://127.0.0.1:1087/ _=/Users/wkj89/go/bin/qtdeploy LC_TERMINAL_VERSION=3.3.2 __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34 ETCDCTL_API=3 PYENV_ROOT=/Users/wkj89/.pyenv GO111MODULE=off GOARCH=amd64 TERM=xterm-256color DATASTORE_TYPE=kubernetes USER=wkj89 LDFLAGS=-L/usr/local/opt/qt/lib TERM_PROGRAM_VERSION=3.3.2 SHLVL=1 GOOS=darwin HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles PATH=/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/opt/qt/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/Cellar/qemu/4.1.0/bin:/usr/local/opt/binutils/bin:/usr/local/Cellar/pyenv-virtualenv/1.0.0/shims:/Users/wkj89/.pyenv/shims:/Users/wkj89/go/bin:/Users/wkj89/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS TMPDIR=/var/folders/k9/d2cbbxbj17g618pj32hjr_r40000gn/T/ ZSH=/Users/wkj89/.oh-my-zsh" name="build for darwin on darwin"
DEBU[0003] Execute                                       _func=RunCmd cmd="strip -x /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS/application" dir=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application env= name="strip binary for darwin on darwin"
DEBU[0003] saved file len(983) /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/Info.plist
DEBU[0003] saved file len(9) /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/PkgInfo
DEBU[0003] saved file len(0) /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/Resources/empty.lproj
DEBU[0003] Execute                                       _func=RunCmd cmd="cp -R /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/darwin/. /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app" dir= env= name="copy . to application.app for darwin on darwin"
DEBU[0004] Execute                                       _func=RunCmd cmd="/usr/local/opt/qt5/bin/macdeployqt /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app -qmldir=/Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/qml/application" dir=/usr/local/opt/qt5/bin env= name="deploy for darwin on darwin"

pwd:~/go/src/github.com/therecipe/qt/internal/examples/qml/application/deploy/darwin/application.app/Contents/MacOS

cmd:

./application
[1]    74026 killed     ./application

widgets err

pwd: ~/go/src/github.com/therecipe/examples/basic/widgets/deploy/darwin/widgets.app/Contents/MacOS cmd: qtdeploy test desktop

dyld: Library not loaded: @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets
  Referenced from: /Users/wkj89/go/src/github.com/therecipe/examples/basic/widgets/deploy/darwin/widgets.app/Contents/MacOS/./widgets
  Reason: no suitable image found.  Did find:
    /Users/wkj89/go/src/github.com/therecipe/examples/basic/widgets/deploy/darwin/widgets.app/Contents/MacOS/./../Frameworks/QtWidgets.framework/Versions/5/QtWidgets: malformed mach-o image: dylib load command #7 string extends beyond end of load command
    /Users/wkj89/go/src/github.com/therecipe/examples/basic/widgets/deploy/darwin/widgets.app/Contents/MacOS/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets: malformed mach-o image: dylib load command #7 string extends beyond end of load command
[1]    76937 abort      ./widgets

otool -L widgets

widgets:
    @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.13.0, current version 5.13.0)
    @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.13.0, current version 5.13.0)
    /usr/local/opt/qt/lib/QtCore.framework/Versions/5/QtCore/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 5.13.0, current version 5.13.0)
    /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.50.2)
    @executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg (compatibility version 5.13.0, current version 5.13.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 307.5.0)

also tried:

install_name_tool -change @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets /Users/wkj89/go/src/github.com/therecipe/examples/basic/widgets/deploy/darwin/widgets.app/Contents/Frameworks/QtWidgets.framework/QtWidgets widgets

install_name_tool -change @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui /Users/wkj89/go/src/github.com/therecipe/examples/basic/widgets/deploy/darwin/widgets.app/Contents/Frameworks/QtGui.framework/QtGui widgets

install_name_tool -change @executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg /Users/wkj89/go/src/github.com/therecipe/examples/basic/widgets/deploy/darwin/widgets.app/Contents/Frameworks/QtSvg.framework/QtSvg widgets

got err

dyld: Library not loaded: /Users/wkj89/go/src/github.com/therecipe/examples/basic/widgets/deploy/darwin/widgets.app/Contents/Frameworks/QtWidgets.framework/QtWidgets
  Referenced from: /Users/wkj89/go/src/github.com/therecipe/examples/basic/widgets/deploy/darwin/widgets.app/Contents/MacOS/./widgets
  Reason: no suitable image found.  Did find:
    /Users/wkj89/go/src/github.com/therecipe/examples/basic/widgets/deploy/darwin/widgets.app/Contents/Frameworks/QtWidgets.framework/QtWidgets: malformed mach-o image: dylib load command #7 string extends beyond end of load command
    /Users/wkj89/go/src/github.com/therecipe/examples/basic/widgets/deploy/darwin/widgets.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets: malformed mach-o image: dylib load command #7 string extends beyond end of load command
[1]    86341 abort      ./widgets

but ’go run ~/go/src/github.com/therecipe/examples/basic/widgets/main.go‘ works

conanchen commented 5 years ago

me too :-

$ pwd /Users/conanchen/git/therecipe/examples/basic $ qtdeploy test desktop qml WARN[0002] parser.LoadModule error=EOF module=QuickControls2 WARN[0002] parser.LoadModule error=EOF module=Qml WARN[0002] parser.LoadModule error=EOF module=Network WARN[0002] parser.LoadModule error=EOF module=Core WARN[0002] parser.LoadModule error=EOF module=Gui ERRO[0003] failed to run command _func=RunCmd cmd="bash -c /usr/local/bin/go build -p 4 -v -o /Users/conanchen/git/therecipe/examples/basic/qml/deploy/darwin/qml_project.app/Contents/MacOS/qml_project -tags=minimal -ldflags=all=\"-w\"" dir=/Users/conanchen/git/therecipe/examples/basic/qml env="LANG=zh_CN.UTF-8 ITERM_PROFILE=Default LOGNAME=conanchen GOARCH=amd64 GOFLAGS=-mod=vendor CPPFLAGS=-I/usr/local/opt/qt/include LDFLAGS=-L/usr/local/opt/qt/lib TERM_PROGRAM=iTerm.app OSTYPE=darwin SHLVL=1 LC_TERMINAL_VERSION=3.3.2 HTTP_PROXY=127.0.0.1:1087 GOOS=darwin PUB_HOSTED_URL=https://pub.flutter-io.cn __CF_USER_TEXT_ENCODING=0x0:25:52 TERM_PROGRAMVERSION=3.3.2 =/Users/conanchen/go/bin/qtdeploy CGO_ENABLED=1 USER=conanchen COLORTERM=truecolor HTTPS_PROXY=127.0.0.1:1087 XPC_SERVICE_NAME=0 ITERM_SESSION_ID=w0t0p0:CEFA65FB-B0DD-4C5D-BC43-ACFC0E870C40 OLDPWD=/Users/conanchen/git/therecipe/examples/basic/qml SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.CbslYBimHQ/Listeners XPC_FLAGS=0x0 QT_DIR=/usr/local/Cellar/qt LC_TERMINAL=iTerm2 Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.RMOJ9UYPA6/Render PWD=/Users/conanchen/git/therecipe/examples/basic COLORFGBG=7;0 TERM=xterm-256color SHELL=/bin/bash TMPDIR=/var/folders/td/0ny4r8md2vg9lz2t2knwr7yr0000gn/T/ TERM_SESSION_ID=w0t0p0:CEFA65FB-B0DD-4C5D-BC43-ACFC0E870C40 QT_HOMEBREW=true PATH=/usr/local/opt/qt/bin:/Users/conanchen/go/bin:/Users/conanchen/Library/flutter/bin:/usr/local/opt/qt/bin:/Users/conanchen/go/bin:/Users/conanchen/Library/flutter/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin GOPATH=/Users/conanchen/go GOROOT=/usr/local/Cellar/go/1.13/libexec FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn HOME=/Users/conanchen" error="exit status 2" name="build for darwin on darwin" github.com/therecipe/examples/basic/qml

github.com/therecipe/examples/basic/qml

./main.go:17:2: undefined: core.QCoreApplication_SetAttribute ./main.go:17:37: undefined: core.Qt__AA_EnableHighDpiScaling ./main.go:20:2: undefined: gui.NewQGuiApplication ./main.go:25:2: undefined: quickcontrols2.QQuickStyle_SetStyle ./main.go:28:12: undefined: qml.NewQQmlApplicationEngine ./main.go:32:14: undefined: core.NewQUrl3 ./main.go:39:2: undefined: gui.QGuiApplication_Exec

$ qtsetup check darwin INFO[0000] running: 'qtsetup check darwin' [docker=false] [vagrant=false] INFO[0000] GOOS: 'darwin' INFO[0000] GOARCH: 'amd64' INFO[0000] GOVERSION: 'go1.13' INFO[0000] GOROOT: '/usr/local/Cellar/go/1.13/libexec' INFO[0000] GOPATH: '/Users/conanchen/git/therecipe/examples/vendor/github.com/therecipe/qt' INFO[0000] GOBIN: '/Users/conanchen/git/therecipe/examples/vendor/github.com/therecipe/qt/bin' INFO[0000] GOMOD: '/Users/conanchen/git/therecipe/examples/go.mod' INFO[0000] QT_HASH: '5b89e5062c99ac96cf0da217c00ff7d1f442a7eb' INFO[0000] QT_API: '' INFO[0000] QT_VERSION: '5.13.0' INFO[0000] QT_DIR: '/usr/local/Cellar/qt' INFO[0000] QT_STUB: 'false' INFO[0000] QT_DEBUG: 'false' INFO[0000] QT_QMAKE_DIR: '' INFO[0000] QT_WEBKIT: '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'

therecipe commented 5 years ago

Hey

@wkj89

go run application.go QQmlApplicationEngine failed to load component qrc:/qml/application.qml:-1 No such file or directory

You will need to either use qtrcc && go run . to bundle the *.qml file so that the qml engine can load it later. Or change app.Load(core.NewQUrl3("qrc:/qml/application.qml", 0)) to app.Load(core.NewQUrl3("./qml/application.qml", 0)) to let the qml engine load the file from the disk instead.

cmd: qtdeploy -debug test desktop (well, nothing happened)

This should have worked though

widgets err

This seems to be caused by malformed mach-o image: dylib load command #7 string extends beyond end of load command maybe your HomeBrew Qt installation is broken somehow.

Does $(go env GOPATH)/bin/qtsetup test work for you?

@conanchen

It seems like the *.index files couldn't be found:

WARN[0002] parser.LoadModule error=EOF module=Core WARN[0002] parser.LoadModule error=EOF module=Gui

Maybe try running: go get -v github.com/therecipe/qt/internal/binding/files/docs/5.13.0

wkj89 commented 5 years ago

change app.Load(core.NewQUrl3("qrc:/qml/application.qml", 0)) to app.Load(core.NewQUrl3("./qml/application.qml", 0))

well,it worked for me! TKS~


$(go env GOPATH)/bin/qtsetup test
GOT Error when testing quick/calc some info about the test:

INFO[0000] running: 'qtsetup test darwin' [docker=false] [vagrant=false]
INFO[0000] testing qml/gallery
INFO[0020] testing quick/calc
INFO[0039] testing widgets/textedit
INFO[0077] testing showcases/wallet

err for calc test:

Dyld Error Message:
  Library not loaded: @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui
  Referenced from: /Users/USER/*/calc.app/Contents/MacOS/calc
  Reason: no suitable image found.  Did find:
    /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/quick/calc/deploy/darwin/calc.app/Contents/MacOS/../Frameworks/QtGui.framework/Versions/5/QtGui: malformed mach-o image: dylib load command #21 string extends beyond end of load command
    /Users/wkj89/go/src/github.com/therecipe/qt/internal/examples/quick/calc/deploy/darwin/calc.app/Contents/MacOS/../Frameworks/QtGui.framework/Versions/5/QtGui: malformed mach-o image: dylib load command #21 string extends beyond end of load command
therecipe commented 5 years ago

Hm, maybe try to re-install HomeBrews Qt version with something like: brew uninstall qt && brew install qt and then try to run $(go env GOPATH)/bin/qtsetup test again.

conanchen commented 5 years ago

How to test/run individual sample? I run "qtsetup test darwin" sucessfully, but failed to run "qtdeploy test darwin showcases/wallet" or "qtdeploy test desktop showcases/wallet"


ConandeMacBook-Pro:examples conanchen$ pwd /Users/conanchen/go/src/github.com/therecipe/qt/internal/examples


ConandeMacBook-Pro:examples conanchen$ qtsetup test darwin INFO[0000] running: 'qtsetup test darwin' [docker=false] [vagrant=false] INFO[0000] testing showcases/wallet INFO[0052] testing qml/gallery


ConandeMacBook-Pro:examples conanchen$ qtdeploy test darwin showcases/wallet/ ERRO[0023] failed to run command _func=RunCmd cmd="go build -p 4 -v -ldflags=all=\"-w\" -o /Users/conanchen/go/src/github.com/therecipe/qt/internal/examples/showcases/wallet/deploy/darwin/wallet.app/Contents/MacOS/wallet -tags=minimal" dir=/Users/conanchen/go/src/github.com/therecipe/qt/internal/examples/showcases/wallet env="CGO_ENABLED=1 TMPDIR=/var/folders/td/0ny4r8md2vg9lz2t2knwr7yr0000gn/T/ Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.RMOJ9UYPA6/Render USER=conanchen ITERM_PROFILE=Default XPC_FLAGS=0x0 XPC_SERVICE_NAME=0 ITERM_SESSION_ID=w1t0p0:D36B5F33-CC1F-46B7-B33F-754303136620 GOOS=darwin GOROOT=/usr/local/Cellar/go/1.13/libexec FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn HTTPS_PROXY=127.0.0.1:1087 HTTP_PROXY=127.0.0.1:1087 PATH=/usr/local/opt/qt/bin:/Users/conanchen/go/bin:/Users/conanchen/Library/flutter/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin TERM_PROGRAM=iTerm.app TERM=xterm-256color LOGNAME=conanchen OLDPWD=/Users/conanchen/go/src TERM_PROGRAM_VERSION=3.3.2 OSTYPE=darwin LC_TERMINAL=iTerm2 GOARCH=amd64 GOPATH=/Users/conanchen/go __CF_USER_TEXT_ENCODING=0x0:25:52 QT_HOMEBREW=true TERM_SESSION_ID=w1t0p0:D36B5F33-CC1F-46B7-B33F-754303136620 SHLVL=1 LC_TERMINAL_VERSION=3.3.2 LDFLAGS=-L/usr/local/opt/qt/lib PWD=/Users/conanchen/go/src/github.com/therecipe/qt/internal/examples LANG=zh_CN.UTF-8 COLORTERM=truecolor SHELL=/bin/bash CPPFLAGS=-I/usr/local/opt/qt/include SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.CbslYBimHQ/Listeners PUB_HOSTEDURL=https://pub.flutter-io.cn HOME=/Users/conanchen COLORFGBG=7;0 =/Users/conanchen/go/bin/qtdeploy GO111MODULE=off" error="exit status 2" name="build for darwin on darwin" github.com/therecipe/qt/internal/examples/showcases/wallet/dashboard github.com/therecipe/qt/internal/examples/showcases/wallet/hosting github.com/therecipe/qt/internal/examples/showcases/wallet/assets

github.com/therecipe/qt/widgets

widgets-minimal.cpp:1337:41: warning: 'resolveSymlinks' is deprecated: Use !testOption(DontResolveSymlinks) instead [-Wdeprecated-declarations] /usr/local/Cellar/qt/5.13.1/lib/QtWidgets.framework/Headers/qfiledialog.h:163:5: note: 'resolveSymlinks' has been explicitly marked deprecated here /usr/local/Cellar/qt/5.13.1/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X' /usr/local/Cellar/qt/5.13.1/lib/QtCore.framework/Headers/qcompilerdetection.h:649:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'

github.com/therecipe/qt/internal/examples/showcases/wallet/assets

Undefined symbols for architecture x86_64: "QQmlPrivate::qmlregister(QQmlPrivate::RegistrationType, void*)", referenced from: QGlobalStatic<(anonymous namespace)::Registry, (anonymous namespace)::(anonymous namespace)::Q_QGS_unitRegistry::innerFunction(), (anonymous namespace)::(anonymous namespace)::Q_QGS_unitRegistry::guard>::operator()() in _x004.o "QQmlPrivate::qmlunregister(QQmlPrivate::RegistrationType, unsigned long long)", referenced from: (anonymous namespace)::(anonymous namespace)::Q_QGS_unitRegistry::innerFunction()::Cleanup::~Cleanup() in _x004.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

github.com/therecipe/qt/internal/examples/showcases/wallet/dashboard

Undefined symbols for architecture x86_64: "QQmlPrivate::qmlregister(QQmlPrivate::RegistrationType, void*)", referenced from: QGlobalStatic<(anonymous namespace)::Registry, (anonymous namespace)::(anonymous namespace)::Q_QGS_unitRegistry::innerFunction(), (anonymous namespace)::(anonymous namespace)::Q_QGS_unitRegistry::guard>::operator()() in _x004.o "QQmlPrivate::qmlunregister(QQmlPrivate::RegistrationType, unsigned long long)", referenced from: (anonymous namespace)::(anonymous namespace)::Q_QGS_unitRegistry::innerFunction()::Cleanup::~Cleanup() in _x004.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

github.com/therecipe/qt/internal/examples/showcases/wallet/hosting

Undefined symbols for architecture x86_64: "QQmlPrivate::qmlregister(QQmlPrivate::RegistrationType, void*)", referenced from: QGlobalStatic<(anonymous namespace)::Registry, (anonymous namespace)::(anonymous namespace)::Q_QGS_unitRegistry::innerFunction(), (anonymous namespace)::(anonymous namespace)::Q_QGS_unitRegistry::guard>::operator()() in _x004.o "QQmlPrivate::qmlunregister(QQmlPrivate::RegistrationType, unsigned long long)", referenced from: (anonymous namespace)::(anonymous namespace)::Q_QGS_unitRegistry::innerFunction()::Cleanup::~Cleanup() in _x004.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

therecipe commented 5 years ago

@conanchen sorry, this is probably because these examples where build with qtdeploy -quickcompiler test desktop during the test step of the setup. And if you now build them without the -quickcompiler flag, things might break. I wrote a bit about this here: https://github.com/therecipe/qt/issues/278#issuecomment-488170961

To make it work for now, either remove all the rcc* files or use the -quickcompiler flag.

I will change the setup so that it won't use the -quickcompiler flag any longer, and enable it again once I solved the issues I wrote about in the linked comment.

conanchen commented 5 years ago

NOW got: ./main.go:17:2: undefined: core.QCoreApplication_SetAttribute

ConandeMacBook-Pro:examples conanchen$ $(go env 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' [docker=false] [vagrant=false] INFO[0000] GOOS: 'darwin' INFO[0000] GOARCH: 'amd64' INFO[0000] GOVERSION: 'go1.13' INFO[0000] GOROOT: '/usr/local/Cellar/go/1.13/libexec' INFO[0000] GOPATH: '/Users/conanchen/git/therecipe/examples/vendor/github.com/therecipe/qt' INFO[0000] GOBIN: '/Users/conanchen/git/therecipe/examples/vendor/github.com/therecipe/qt/bin' INFO[0000] GOMOD: '/Users/conanchen/git/therecipe/examples/go.mod' INFO[0000] QT_HASH: '5b89e5062c99ac96cf0da217c00ff7d1f442a7eb' INFO[0000] QT_API: '' INFO[0000] QT_VERSION: '5.13.0' INFO[0000] QT_DIR: '/usr/local/opt/qt' INFO[0000] QT_STUB: 'false' INFO[0000] QT_DEBUG: 'false' INFO[0000] QT_QMAKE_DIR: '' INFO[0000] QT_WEBKIT: '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=Gui WARN[0000] parser.LoadModule error=EOF module=QuickControls2

INFO[0019] installing full qt/core INFO[0019] installing full qt/androidextras github.com/therecipe/qt/androidextras

INFO[0019] installing full qt/gui INFO[0019] installing full qt/network INFO[0019] installing full qt/xml

----- and found qt installed sucessfully:

/Users/conanchen/go/pkg/mod/github.com/therecipe/qt@v0.0.0-20190914193131-4c875570321e/webengine /Users/conanchen/go/pkg/mod/github.com/therecipe/qt@v0.0.0-20190925233643-383164b95068/webengine /Users/conanchen/go/pkg/mod/github.com/therecipe/qt@v0.0.0-20190904000911-d6c64b2b9081/webengine /Users/conanchen/go/pkg/mod/github.com/therecipe/qt@v0.0.0-20190924211142-521980c88788/webengine /Users/conanchen/git/therecipe/examples/vendor/github.com/therecipe/qt/webengine find: /dev/fd/3: Not a directory

--------- tried to run example:

ConandeMacBook-Pro:examples conanchen$ qtdeploy -quickcompiler test desktop ./basic/qml WARN[0001] parser.LoadModule error=EOF module=Core WARN[0001] parser.LoadModule error=EOF module=QuickControls2 WARN[0001] parser.LoadModule error=EOF module=Gui WARN[0001] parser.LoadModule error=EOF module=Qml ERRO[0003] failed to run command _func=RunCmd cmd="bash -c /usr/local/bin/go build -p 4 -v -trimpath -o /Users/conanchen/git/therecipe/examples/basic/qml/deploy/darwin/qml_project.app/Contents/MacOS/qml_project -tags=minimal -ldflags=all=\"-w\"" dir=/Users/conanchen/git/therecipe/examples/basic/qml env="PWD=/Users/conanchen/git/therecipe/examples GOPATH=/Users/conanchen/go GO111MODULE=on QT_HOMEBREW=true GOPROXY=https://goproxy.io HOME=/Users/conanchen TERM=xterm-256color TERM_PROGRAM_VERSION=3.3.2 XPC_SERVICE_NAME=0 SHLVL=1 LDFLAGS=-L/usr/local/opt/qt/lib SHELL=/bin/bash TMPDIR=/var/folders/td/0ny4r8md2vg9lz2t2knwr7yr0000gn/T/ QTDIR=/usr/local/opt/qt =/Users/conanchen/go/bin/qtdeploy GOARCH=amd64" error="exit status 2" name="build for darwin on darwin"

github.com/therecipe/examples/basic/qml

./main.go:17:2: undefined: core.QCoreApplication_SetAttribute ./main.go:17:37: undefined: core.Qt__AA_EnableHighDpiScaling ./main.go:20:2: undefined: gui.NewQGuiApplication ./main.go:25:2: undefined: quickcontrols2.QQuickStyle_SetStyle ./main.go:28:12: undefined: qml.NewQQmlApplicationEngine ./main.go:32:14: undefined: core.NewQUrl3 ./main.go:39:2: undefined: gui.QGuiApplication_Exec

conanchen commented 5 years ago

OK,use GOPATH mode, it works now. refer to https://github.com/therecipe/qt/issues/948

therecipe commented 5 years ago

Just for the reference, in case someone else is running into this as well:

./main.go:17:2: undefined: core.QCoreApplication_SetAttribute

This is related to

WARN[0001] parser.LoadModule error=EOF module=Core WARN[0001] parser.LoadModule error=EOF module=QuickControls2

and can be solved by running go get -v github.com/therecipe/qt/internal/binding/files/docs/5.13.0 (I will update the example repo in the future to get rid of the need to run this though)