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

macOS failed to run command #260

Closed zhaoyibo closed 7 years ago

zhaoyibo commented 7 years ago

Hello, my os is macOS Sierra 10.12.3, Go version is 1.8. I followed the Instructions of macOS, but failed.

My Qt is installed by HomeBrew, I also tried to install it by the dmg, but there are more errors.

 ~  go get -u -v github.com/therecipe/qt/cmd/...
github.com/therecipe/qt (download)
github.com/Sirupsen/logrus (download)
Fetching https://golang.org/x/crypto/ssh?go-get=1
Parsing meta tags from https://golang.org/x/crypto/ssh?go-get=1 (status code 200)
get "golang.org/x/crypto/ssh": found meta tag main.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/ssh?go-get=1
get "golang.org/x/crypto/ssh": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
Fetching https://golang.org/x/crypto/curve25519?go-get=1
Parsing meta tags from https://golang.org/x/crypto/curve25519?go-get=1 (status code 200)
get "golang.org/x/crypto/curve25519": found meta tag main.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/curve25519?go-get=1
get "golang.org/x/crypto/curve25519": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto/ed25519?go-get=1
Parsing meta tags from https://golang.org/x/crypto/ed25519?go-get=1 (status code 200)
get "golang.org/x/crypto/ed25519": found meta tag main.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/ed25519?go-get=1
get "golang.org/x/crypto/ed25519": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto/ed25519/internal/edwards25519?go-get=1
Parsing meta tags from https://golang.org/x/crypto/ed25519/internal/edwards25519?go-get=1 (status code 200)
get "golang.org/x/crypto/ed25519/internal/edwards25519": found meta tag main.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/ed25519/internal/edwards25519?go-get=1
get "golang.org/x/crypto/ed25519/internal/edwards25519": verifying non-authoritative meta tag
github.com/therecipe/qt/internal/utils
github.com/therecipe/qt/internal/binding/parser
github.com/therecipe/qt/internal/cmd
github.com/therecipe/qt/internal/binding/converter
github.com/therecipe/qt/internal/binding/templater
github.com/therecipe/qt/internal/cmd/minimal
github.com/therecipe/qt/internal/cmd/moc
github.com/therecipe/qt/internal/cmd/rcc
github.com/therecipe/qt/cmd/qtrcc
github.com/therecipe/qt/cmd/qtminimal
github.com/therecipe/qt/internal/cmd/deploy
github.com/therecipe/qt/cmd/qtmoc
github.com/therecipe/qt/cmd/qtdeploy
github.com/therecipe/qt/internal/cmd/setup
github.com/therecipe/qt/cmd/qtsetup

 ~  /Users/yibo/golang/lib/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]
INFO[0000] GOOS:                        'darwin'
INFO[0000] GOARCH:                      'amd64'
INFO[0000] GOVERSION:                   'go1.8'
INFO[0000] GOROOT:                      '/usr/local/go'
INFO[0000] GOPATH:                   *  '/Users/yibo/golang/lib'
INFO[0000] GOBIN:                       '/Users/yibo/golang/lib/bin'
INFO[0000] QT_HASH:                     '19b9f87854765d5f0baa5840397428e8bae4bc57'
INFO[0000] QT_VERSION:               *  '5.8.0'
INFO[0000] QT_VERSION_MAJOR:            '5.8'
INFO[0000] QT_DIR:                   *  '/usr/local/opt/qt5'
INFO[0000] QT_STUB:                     'false'
INFO[0000] QT_DEBUG:                    'false'
INFO[0000] QT_QMAKE_DIR:                ''
INFO[0000] QT_HOMEBREW:              *  'true'
INFO[0000] XCODE_DIR:                   '/Applications/Xcode.app'
INFO[0000] running: 'qtsetup generate darwin' [docker=false]
INFO[0009] generating full qt/core
INFO[0018] generating full qt/androidextras
INFO[0018] generating full qt/gui
INFO[0028] generating full qt/network
INFO[0032] generating full qt/xml
INFO[0034] generating full qt/dbus
INFO[0036] generating full qt/nfc
INFO[0038] generating full qt/script
INFO[0040] generating full qt/sensors
INFO[0044] generating full qt/positioning
INFO[0046] generating full qt/widgets
INFO[0069] 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[0080] generating full qt/bluetooth
INFO[0083] generating full qt/webchannel
INFO[0085] generating full qt/svg
INFO[0088] generating full qt/multimedia
INFO[0107] generating full qt/quick
INFO[0115] generating full qt/help
INFO[0123] generating full qt/location
INFO[0126] generating full qt/scripttools
INFO[0127] generating full qt/uitools
INFO[0129] generating full qt/webengine
INFO[0131] generating full qt/testlib
INFO[0133] generating full qt/serialport
INFO[0134] generating full qt/serialbus
INFO[0136] generating full qt/printsupport
INFO[0141] generating full qt/designer
INFO[0148] generating full qt/scxml
INFO[0151] generating full qt/gamepad
INFO[0154] generating full qt/purchasing
INFO[0156] generating full qt/datavisualization
INFO[0161] generating full qt/charts
INFO[0168] generating full qt/speech
INFO[0170] generating full qt/quickcontrols2
INFO[0172] generating full qt/sailfish
INFO[0172] generating full qt/webview
INFO[0175] running: 'qtsetup install darwin' [docker=false]
INFO[0175] installing full qt/core
INFO[0232] installing full qt/androidextras
INFO[0233] installing full qt/gui
INFO[0268] installing full qt/network
INFO[0285] installing full qt/xml
INFO[0291] installing full qt/dbus
INFO[0297] installing full qt/nfc
INFO[0302] installing full qt/script
INFO[0306] installing full qt/sensors
INFO[0314] installing full qt/positioning
INFO[0319] installing full qt/widgets
INFO[0399] installing full qt/sql
INFO[0408] installing full qt/macextras
INFO[0411] installing full qt/qml
INFO[0417] installing full qt/websockets
INFO[0421] installing full qt/xmlpatterns
INFO[0426] installing full qt/bluetooth
INFO[0433] installing full qt/webchannel
INFO[0435] installing full qt/svg
INFO[0440] installing full qt/multimedia
INFO[0467] installing full qt/quick
INFO[0477] installing full qt/help
INFO[0488] installing full qt/location
INFO[0494] installing full qt/scripttools
INFO[0498] installing full qt/uitools
INFO[0503] installing full qt/webengine
INFO[0513] installing full qt/testlib
INFO[0517] installing full qt/serialport
INFO[0521] installing full qt/serialbus
INFO[0527] installing full qt/printsupport
INFO[0535] installing full qt/designer
INFO[0549] installing full qt/scxml
INFO[0555] installing full qt/gamepad
INFO[0558] installing full qt/purchasing
INFO[0561] installing full qt/datavisualization
INFO[0586] installing full qt/charts
INFO[0614] installing full qt/speech
INFO[0618] installing full qt/quickcontrols2
INFO[0619] installing full qt/sailfish
INFO[0620] installing full qt/webview
INFO[0621] running: 'qtsetup test darwin' [docker=false]
INFO[0621] testing qml/application     (/Users/yibo/golang/lib/src/github.com/therecipe/qt/internal/examples/qml/application)
INFO[0698] testing qml/drawer_nav_x    (/Users/yibo/golang/lib/src/github.com/therecipe/qt/internal/examples/qml/drawer_nav_x)
INFO[0766] testing qml/gallery         (/Users/yibo/golang/lib/src/github.com/therecipe/qt/internal/examples/qml/gallery)
INFO[0833] testing quick/calc          (/Users/yibo/golang/lib/src/github.com/therecipe/qt/internal/examples/quick/calc)
INFO[0908] testing widgets/line_edits  (/Users/yibo/golang/lib/src/github.com/therecipe/qt/internal/examples/widgets/line_edits)
INFO[0979] testing widgets/pixel_editor(/Users/yibo/golang/lib/src/github.com/therecipe/qt/internal/examples/widgets/pixel_editor)
INFO[1046] testing widgets/textedit    (/Users/yibo/golang/lib/src/github.com/therecipe/qt/internal/examples/widgets/textedit)
ERRO[1159] failed to run command                         cmd="go build -p 4 -v -ldflags="-w" "-r=/usr/local/opt/qt5/lib" -o /Users/yibo/golang/lib/src/github.com/therecipe/qt/internal/examples/widgets/textedit/deploy/darwin/textedit.app/Contents/MacOS/textedit -tags="minimal"" env= error="exit status 2" func=RunCmd name="build for darwin on darwin"
github.com/therecipe/qt/core
# github.com/therecipe/qt/core
../../../../core/core-minimal.cpp:181:40: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:355:61: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:562:35: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:577:43: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:592:42: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:627:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:642:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:664:40: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:997:46: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1069:55: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1084:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1149:56: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1169:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1189:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1209:61: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1224:60: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1239:59: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1254:58: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1434:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1449:40: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1469:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1484:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1544:46: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1559:38: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1817:42: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1832:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1847:45: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1862:45: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1877:44: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:1892:40: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2197:41: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2212:40: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2227:41: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2638:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2668:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2683:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2698:42: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2763:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2778:55: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2793:55: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2808:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2823:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2922:43: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2937:46: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:2952:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:3227:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:3247:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:3262:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:3282:39: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:3302:39: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:3317:38: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:3337:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:3352:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:3367:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../core/core-minimal.cpp:3382:48: warning: unused parameter 'ptr' [-Wunused-parameter]
# github.com/therecipe/qt/core
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/core/_obj/_cgo_main.c:2:23: warning: unused parameter 'fn' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/core/_obj/_cgo_main.c:2:61: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/core/_obj/_cgo_main.c:2:68: warning: unused parameter 'c' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/core/_obj/_cgo_main.c:2:85: warning: unused parameter 'ctxt' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/core/_obj/_cgo_main.c:4:41: warning: unused parameter 'ctxt' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/core/_obj/_cgo_main.c:6:26: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/core/_obj/_cgo_main.c:6:33: warning: unused parameter 'c' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/core/_obj/_cgo_main.c:7:23: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/core/_obj/_cgo_main.c:7:30: warning: unused parameter 'c' [-Wunused-parameter]
github.com/therecipe/qt/gui
# github.com/therecipe/qt/gui
../../../../gui/gui-minimal.cpp:299:55: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:314:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:329:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:344:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:359:43: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:561:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:576:43: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:591:43: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:606:42: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:621:38: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:930:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:945:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:960:51: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1068:58: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1083:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1098:60: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1113:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1128:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1143:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1158:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1269:44: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1311:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1351:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1429:51: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1434:58: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1439:41: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1521:57: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1536:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1551:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1566:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1581:45: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1730:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1745:51: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1760:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1924:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:1927:1: warning: control reaches end of non-void function [-Wreturn-type]
../../../../gui/gui-minimal.cpp:1948:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2030:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2121:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2136:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2151:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2166:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2181:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2196:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2337:44: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2352:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2367:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2382:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2397:37: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2412:41: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2427:46: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2442:46: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2457:46: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2472:43: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2487:39: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2502:36: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2552:37: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2617:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2632:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2647:45: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2662:45: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2677:44: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2692:40: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2799:46: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2829:61: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2834:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:2874:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3219:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3234:58: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3249:51: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3264:51: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3279:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3294:46: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3384:68: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3444:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3459:46: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3479:56: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3494:56: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3534:46: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3638:56: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3653:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3668:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3683:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../gui/gui-minimal.cpp:3698:44: warning: unused parameter 'ptr' [-Wunused-parameter]
# github.com/therecipe/qt/gui
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/gui/_obj/_cgo_main.c:2:23: warning: unused parameter 'fn' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/gui/_obj/_cgo_main.c:2:61: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/gui/_obj/_cgo_main.c:2:68: warning: unused parameter 'c' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/gui/_obj/_cgo_main.c:2:85: warning: unused parameter 'ctxt' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/gui/_obj/_cgo_main.c:4:41: warning: unused parameter 'ctxt' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/gui/_obj/_cgo_main.c:6:26: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/gui/_obj/_cgo_main.c:6:33: warning: unused parameter 'c' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/gui/_obj/_cgo_main.c:7:23: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/gui/_obj/_cgo_main.c:7:30: warning: unused parameter 'c' [-Wunused-parameter]
github.com/therecipe/qt/widgets
# github.com/therecipe/qt/widgets
../../../../widgets/widgets-minimal.cpp:321:60: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:613:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:628:57: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:643:41: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:658:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:673:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:696:45: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:719:45: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:742:44: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:765:40: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:920:44: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:935:57: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:958:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:981:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:1004:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:1027:45: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:1165:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:1180:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:1195:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:1210:44: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:1225:57: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:1248:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:1271:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:1294:49: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:1317:45: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:2167:51: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:2182:55: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:2197:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:2212:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:2227:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:2853:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:3139:66: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:3651:1: warning: control may reach end of non-void function [-Wreturn-type]
../../../../widgets/widgets-minimal.cpp:3660:1: warning: control may reach end of non-void function [-Wreturn-type]
../../../../widgets/widgets-minimal.cpp:3829:63: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:3852:56: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:3875:56: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:3898:55: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:3921:51: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:4194:58: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:4209:61: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:4224:47: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:4403:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:4418:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:4433:55: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:4590:43: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:4875:43: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:4977:48: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:6920:40: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:7000:51: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:7023:44: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:7046:44: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:7069:43: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:7092:39: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:7553:46: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:10697:50: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:10712:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:10727:39: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:10742:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:10765:45: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:10788:45: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:10811:44: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../widgets/widgets-minimal.cpp:10834:40: warning: unused parameter 'ptr' [-Wunused-parameter]
# github.com/therecipe/qt/widgets
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/widgets/_obj/_cgo_main.c:2:23: warning: unused parameter 'fn' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/widgets/_obj/_cgo_main.c:2:61: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/widgets/_obj/_cgo_main.c:2:68: warning: unused parameter 'c' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/widgets/_obj/_cgo_main.c:2:85: warning: unused parameter 'ctxt' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/widgets/_obj/_cgo_main.c:4:41: warning: unused parameter 'ctxt' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/widgets/_obj/_cgo_main.c:6:26: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/widgets/_obj/_cgo_main.c:6:33: warning: unused parameter 'c' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/widgets/_obj/_cgo_main.c:7:23: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/widgets/_obj/_cgo_main.c:7:30: warning: unused parameter 'c' [-Wunused-parameter]
github.com/therecipe/qt/printsupport
# github.com/therecipe/qt/printsupport
../../../../printsupport/printsupport-minimal.cpp:145:63: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:160:63: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:175:66: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:190:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:205:65: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:220:58: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:235:58: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:250:57: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:265:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1073:62: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1088:65: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1103:51: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1118:64: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1133:57: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1148:57: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1163:56: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1178:52: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1560:53: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1610:54: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1625:55: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1640:57: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1655:56: warning: unused parameter 'ptr' [-Wunused-parameter]
../../../../printsupport/printsupport-minimal.cpp:1670:57: warning: unused parameter 'ptr' [-Wunused-parameter]
# github.com/therecipe/qt/printsupport
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/printsupport/_obj/_cgo_main.c:2:23: warning: unused parameter 'fn' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/printsupport/_obj/_cgo_main.c:2:61: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/printsupport/_obj/_cgo_main.c:2:68: warning: unused parameter 'c' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/printsupport/_obj/_cgo_main.c:2:85: warning: unused parameter 'ctxt' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/printsupport/_obj/_cgo_main.c:4:41: warning: unused parameter 'ctxt' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/printsupport/_obj/_cgo_main.c:6:26: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/printsupport/_obj/_cgo_main.c:6:33: warning: unused parameter 'c' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/printsupport/_obj/_cgo_main.c:7:23: warning: unused parameter 'a' [-Wunused-parameter]
/var/folders/1b/fpz1fkh15zs0wtx7h8r6d7500000gn/T/go-build765945549/github.com/therecipe/qt/printsupport/_obj/_cgo_main.c:7:30: warning: unused parameter 'c' [-Wunused-parameter]
github.com/therecipe/qt/internal/examples/widgets/textedit
# github.com/therecipe/qt/internal/examples/widgets/textedit
./moc.cpp:152:25: error: 'TextEdit' does not refer to a value
./moc.cpp:52:7: note: declared here
./moc.cpp:152:9: error: use of undeclared identifier 'qmlRegisterType'
./moc.cpp:152:35: error: expected expression
./moc.cpp:165:50: warning: unused parameter 'ptr' [-Wunused-parameter]
./moc.cpp:180:50: warning: unused parameter 'ptr' [-Wunused-parameter]
./moc.cpp:195:52: warning: unused parameter 'ptr' [-Wunused-parameter]
./moc.cpp:210:51: warning: unused parameter 'ptr' [-Wunused-parameter]
./moc.cpp:225:54: warning: unused parameter 'ptr' [-Wunused-parameter]
./moc.cpp:240:40: warning: unused parameter 'ptr' [-Wunused-parameter]
./moc.cpp:255:53: warning: unused parameter 'ptr' [-Wunused-parameter]
./moc.cpp:270:46: warning: unused parameter 'ptr' [-Wunused-parameter]
./moc.cpp:285:46: warning: unused parameter 'ptr' [-Wunused-parameter]
./moc.cpp:300:45: warning: unused parameter 'ptr' [-Wunused-parameter]
./moc.cpp:315:41: warning: unused parameter 'ptr' [-Wunused-parameter]
therecipe commented 7 years ago

Hey

Sorry, this was a bug in qtmoc caused by the changes required for: https://github.com/therecipe/qt/issues/258

It should be fixed with: https://github.com/therecipe/qt/commit/03ca38c3b8583f06b7f3da2c5caab5eb59c841ad

You should be able to get it working now by running: $GOPATH/bin/qtsetup upgrade && $GOPATH/bin/qtsetup

jeanlucmongrain commented 7 years ago

by the way, don't upgrade Xcode on your mac until Go 1.8.1

https://github.com/golang/go/issues/19734#event-1018867685

zhaoyibo commented 7 years ago

@therecipe @bclermont thank you, it works.