Closed renannprado closed 8 years ago
Hey
The MacOSX10.11.sdk got replaced by MacOSX10.12.sdk in Xcode 8 and I changed the path to the generic MacOSX.sdk which probably only exists in Xcode 8. (I assumed it would already exist in 7.x but didn't checked that...) I will fix it.
https://github.com/therecipe/qt/commit/1e89b32ea29706e47263645118db9df8a71d3d5c should make the binding work again with Xcode 7.2 and 7.3 Also you can now define a custom Xcode location with XCODE_DIR
And I created a slack channel as you suggested #qt-binding
@therecipe I don't have the time to retest this issue, but I guess we can close it, right?
@renannprado Yes, it's solved :)
I suffer from the same problem right now, a blank MacOSX sierra with Xcode latest version and it still refers to SDKs/MacOSX10.11.sdk
which don't exists anymore
@therecipe where this value is made from, because this function https://github.com/therecipe/qt/blob/master/internal/utils/darwin.go#L17 isn't used
so, how that path is built with?
left over from a previous build
I'm getting this error too with macOS Catalina 10.15.1 (19B88 and Brew installed qt
For example:
prologic@Jamess-MacBook
Sat Nov 16 08:11:57
~/tmp/qt/internal/examples/webkit/browser
(master) 0
$ go build
# github.com/therecipe/qt/core
/Users/prologic/go/src/github.com/therecipe/qt/core/core.go:6:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
^~~~~~~~~~
1 error generated.
Do I need to set an export XCODE_DIR
?
I can get past the stdlib.h: No such file or directory
error by passing some CGO_
flags; but then I run into a whole pile of different build errors I have no clue about :/
prologic@Jamess-MacBook
Sat Nov 16 08:31:06
~/tmp/qt/internal/examples/webkit/browser
(master) 2
$ export XCODE_DIR=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prologic@Jamess-MacBook
Sat Nov 16 08:31:18
~/tmp/qt/internal/examples/webkit/browser
(master) 0
$ CGO_CFLAGS="-I $XCODE_DIR/usr/include" go build
# runtime/cgo
In file included from _cgo_export.c:3:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:134:25: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:134:25: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:134:25: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:135:22: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:135:22: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:135:22: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:136:23: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:136:23: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:136:23: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:139:20: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:139:20: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:139:20: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:141:26: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:141:26: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:141:26: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:141:45: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:141:45: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:141:45: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:142:59: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:142:59: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:142:59: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:142:73: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:142:73: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:142:73: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:141:6: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:141:6: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:141:6: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:147:25: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:147:25: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:147:25: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:147:6: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:147:6: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:147:6: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:156:23: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:156:23: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:156:23: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:157:26: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:157:26: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:157:26: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:157:52: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:157:52: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:157:52: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:158:21: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:158:21: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:158:21: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:158:46: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:158:46: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:158:46: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:160:18: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:160:18: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:160:18: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:161:43: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:161:43: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:161:43: note: insert '_Nonnull' if the pointer should never be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:161:57: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:161:57: note: insert '_Nullable' if the pointer may be null
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:161:57: note: insert '_Nonnull' if the pointer should never be null
fatal error: too many errors emitted, stopping now [-ferror-limit=]
I feel like I'm doing something horribly wrong here.
@prologic I think you will just need to install Xcode
You can download it here: https://itunes.apple.com/us/app/xcode/id497799835
Then just unset XCODE_DIR and run $(go env GOPATH)/bin/qtsetup
And sorry, it seems like I got the instruction wrong in the wiki and the setup. I updated the wiki to make things more clear. And will update the setup soon as well.
@therecipe So... I don't know what you did because I didn't do anything. I already had Xcode installed prior and ran into the above problems.
All I did now was go back to your instructions and re-run whatever you posted (copy/pasta) and the end result is "no errors", "every demo worked" and I assume now I can go build what I want to build :)
prologic@Jamess-MacBook
Wed Nov 20 18:31:12
~
0
$ export GO111MODULE=off; xcode-select --install; go get -v github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
INFO[0000] running: 'qtsetup test darwin' [docker=false] [vagrant=false]
INFO[0000] testing showcases/wallet
INFO[0236] testing qml/gallery
INFO[0273] testing quick/calc
INFO[0308] testing widgets/textedit
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/prologic/go'
INFO[0000] GOBIN: '/Users/prologic/go/bin'
INFO[0000] GOMOD: ''
INFO[0000] QT_HASH: '5875595329414c48b873354749feb95e4d10fa99'
INFO[0000] QT_API: ''
INFO[0000] QT_VERSION: '5.13.0'
INFO[0000] QT_DIR: * '/Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513'
INFO[0000] QT_STUB: 'false'
INFO[0000] QT_DEBUG: 'false'
INFO[0000] QT_QMAKE_DIR: ''
INFO[0000] QT_WEBKIT: 'false'
INFO[0000] QT_HOMEBREW: 'false'
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]
INFO[0009] generating full qt/core
INFO[0027] generating full qt/androidextras
INFO[0027] generating full qt/gui
INFO[0050] generating full qt/network
INFO[0056] generating full qt/xml
INFO[0059] generating full qt/dbus
INFO[0061] generating full qt/nfc
INFO[0063] generating full qt/script
INFO[0065] generating full qt/sensors
INFO[0070] generating full qt/positioning
INFO[0072] generating full qt/widgets
INFO[0121] generating full qt/sql
INFO[0125] generating full qt/macextras
INFO[0126] generating full qt/qml
INFO[0129] generating full qt/websockets
INFO[0131] generating full qt/xmlpatterns
INFO[0132] generating full qt/bluetooth
INFO[0136] generating full qt/webchannel
INFO[0137] generating full qt/svg
INFO[0139] generating full qt/multimedia
INFO[0159] generating full qt/quick
INFO[0165] generating full qt/help
INFO[0171] generating full qt/location
INFO[0173] generating full qt/scripttools
INFO[0174] generating full qt/uitools
INFO[0175] generating full qt/webengine
INFO[0178] generating full qt/testlib
INFO[0179] generating full qt/serialport
INFO[0180] generating full qt/serialbus
INFO[0183] generating full qt/printsupport
INFO[0186] generating full qt/designer
INFO[0192] generating full qt/scxml
INFO[0194] generating full qt/gamepad
INFO[0196] generating full qt/purchasing
INFO[0197] generating full qt/datavisualization [GPLv3]
INFO[0203] generating full qt/charts [GPLv3]
INFO[0215] generating full qt/virtualkeyboard [GPLv3]
INFO[0218] generating full qt/speech
INFO[0219] generating full qt/quickcontrols2
INFO[0220] generating full qt/sailfish
INFO[0220] generating full qt/webview
INFO[0221] generating full qt/remoteobjects
INFO[0223] running: 'qtsetup install darwin' [docker=false] [vagrant=false]
INFO[0223] installing full qt/core
INFO[0283] installing full qt/androidextras
INFO[0284] installing full qt/gui
INFO[0352] installing full qt/network
INFO[0376] installing full qt/xml
INFO[0385] installing full qt/dbus
INFO[0396] installing full qt/nfc
INFO[0403] installing full qt/script
INFO[0409] installing full qt/sensors
INFO[0427] installing full qt/positioning
INFO[0436] installing full qt/widgets
INFO[0572] installing full qt/sql
INFO[0584] installing full qt/macextras
INFO[0589] installing full qt/qml
INFO[0601] installing full qt/websockets
INFO[0607] installing full qt/xmlpatterns
INFO[0614] installing full qt/bluetooth
INFO[0626] installing full qt/webchannel
INFO[0631] installing full qt/svg
INFO[0638] installing full qt/multimedia
INFO[0692] installing full qt/quick
INFO[0709] installing full qt/help
INFO[0726] installing full qt/location
INFO[0736] installing full qt/scripttools
INFO[0740] installing full qt/uitools
INFO[0745] installing full qt/webengine
INFO[0769] installing full qt/testlib
INFO[0774] installing full qt/serialport
INFO[0779] installing full qt/serialbus
INFO[0788] installing full qt/printsupport
INFO[0788] installing full qt/designer
INFO[0805] installing full qt/scxml
INFO[0813] installing full qt/gamepad
INFO[0820] installing full qt/purchasing
INFO[0825] installing full qt/datavisualization [GPLv3]
INFO[0862] installing full qt/charts [GPLv3]
INFO[0896] installing full qt/virtualkeyboard [GPLv3]
INFO[0906] installing full qt/speech
INFO[0912] installing full qt/quickcontrols2
INFO[0914] installing full qt/sailfish
INFO[0914] installing full qt/webview
INFO[0918] installing full qt/remoteobjects
@therecipe Please excuse my ignorance here; QT is a rather complex piece of machinery :)
The setup as per above works flawlessly on my Mac now; But I still cannot build one of the examples I'm interested in:
prologic@Jamess-MacBook
Wed Nov 20 19:41:01
~/tmp/qt/internal/examples/webkit/browser
(master) 0
$ go build
# github.com/therecipe/qt/webkit
/Users/prologic/go/src/github.com/therecipe/qt/webkit/webkit.go:6:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
^~~~~~~~~~
1 error generated.
prologic@Jamess-MacBook
Wed Nov 20 19:41:03
~/tmp/qt/internal/examples/webkit/browser
(master) 2
$ git rev-parse HEAD
93eff24f3013c28b41abc516b97df6cd22c42936
What am I doing wrong?
@prologic
No worries :) The webkit module is one of the few modules, that need to be downloaded separately at the moment.
To do so you can run something like
curl -sL https://github.com/annulen/webkit/releases/download/qtwebkit-5.212.0-alpha2/qtwebkit-5.212.0_alpha2-qt59-darwin-x64.tar.xz | tar -xz --strip 1 -C /Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64
then export QT_WEBKIT=true
and run $(go env GOPATH)/bin/qtsetup -test=false
If you run into this issue
webkit.cpp:1062:1: error: redefinition of 'QMetaTypeId<QWebElement>'
then just open /Users/prologic/go/src/github.com/therecipe/qt/webkit/webkit.cpp
and remove or comment out line 1062 (Q_DECLARE_METATYPE(QWebElement)
).
Then simply run $(go env GOPATH)/bin/qtsetup install
to finish the installation.
(I just fixed this with the latest commit)
Also btw, there is also https://github.com/therecipe/qt/tree/master/internal/examples/widgets/webengine
which is the example for the other "full" browser engine of Qt based on Chromium, and which should work out of the box already. But for this example to work you will need to either update the binding to the latest version or build it with go run/build
instead of qtdeploy
, because I just recently fixed a bug that caused some trouble when running qtdeploy-ed binaries that make use of the webengine on the same machine that the application was developed on.
So that got a bit further now; but there was a warning/error at the end and there are some build errors:
INFO[0240] installing full qt/webkit
github.com/therecipe/qt/webkit
# github.com/therecipe/qt/webkit
webkit.cpp:1062:1: error: redefinition of 'QMetaTypeId<QWebElement>'
/Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/lib/QtCore.framework/Headers/qmetatype.h:1938:34: note: expanded from macro 'Q_DECLARE_METATYPE'
/Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/lib/QtCore.framework/Headers/qmetatype.h:1942:12: note: expanded from macro 'Q_DECLARE_METATYPE_IMPL'
/Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/lib/QtWebKit.framework/Headers/qwebelement.h:270:1: note: previous definition is here
/Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/lib/QtCore.framework/Headers/qmetatype.h:1938:34: note: expanded from macro 'Q_DECLARE_METATYPE'
/Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/lib/QtCore.framework/Headers/qmetatype.h:1942:12: note: expanded from macro 'Q_DECLARE_METATYPE_IMPL'
WARN[0248] failed to install:
WARN[0248] webkit
And:
prologic@Jamess-MacBook
Thu Nov 21 06:27:05
~/go/src/github.com/therecipe/qt/internal/examples/webkit/browser
(master) 0
$ go build
# github.com/therecipe/qt/webkit
webkit.cpp:1062:1: error: redefinition of 'QMetaTypeId<QWebElement>'
/Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/lib/QtCore.framework/Headers/qmetatype.h:1938:34: note: expanded from macro 'Q_DECLARE_METATYPE'
/Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/lib/QtCore.framework/Headers/qmetatype.h:1942:12: note: expanded from macro 'Q_DECLARE_METATYPE_IMPL'
/Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/lib/QtWebKit.framework/Headers/qwebelement.h:270:1: note: previous definition is here
/Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/lib/QtCore.framework/Headers/qmetatype.h:1938:34: note: expanded from macro 'Q_DECLARE_METATYPE'
/Users/prologic/go/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/lib/QtCore.framework/Headers/qmetatype.h:1942:12: note: expanded from macro 'Q_DECLARE_METATYPE_IMPL'
Would you prefer I open a separate issue for this specifically?
@prologic Sorry for the delay, to solve this simply comment out QMetaTypeId<QWebElement>
and run $(go env GOPATH)/bin/qtsetup install
again.
This is already fixed in the latest version.
Brilliant this works :) Thank you :D
I was trying to setup the environment to start playing with Qt in go, but I got the following error while executing the
setup.sh
script.go env
The actual path I have here is:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
I updated my OS to Sierra yesterday, so I'm updating my xcode version 8 and hopefully the path needed for the setup will be there after that.
Maybe there should a parameter to set custom SDK path?
Meanwhile I have created a symbolic link to the SDK.
Thanks