qml-go
qml-go copied to clipboard
Fatal error: 'QtCore/private/qglobal_p.h' file not found
I've installed go on Mac OS 10.12.4: https://storage.googleapis.com/golang/go1.8.1.darwin-amd64.pkg
Then I did the following steps, but got an error when trying to install qml-go:
$ brew install qt5 pkg-config
$ brew link --force qt5
$ go get github.com/limetext/qml-go
# github.com/limetext/qml-go
In file included from go/src/github.com/limetext/qml-go/all.cpp:2:
In file included from go/src/github.com/limetext/qml-go/cpp/capi.cpp:11:
In file included from ./cpp/govalue.h:7:
In file included from ./cpp/private/qmetaobject_p.h:2:
In file included from /usr/local/Cellar/qt/5.8.0_2/include/QtCore/5.8.0/QtCore/private/qmetaobject_p.h:58:
In file included from ./cpp/private/qobject_p.h:2:
/usr/local/Cellar/qt/5.8.0_2/include/QtCore/5.8.0/QtCore/private/qobject_p.h:55:10: fatal error: 'QtCore/private/qglobal_p.h' file not found
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
I've managed to resolve this issue with this patch in linux:
diff --git a/bridge.go b/bridge.go
index fa11261..794c145 100644
--- a/bridge.go
+++ b/bridge.go
@@ -1,6 +1,7 @@
package qml
// #cgo CPPFLAGS: -I./cpp
+// #cgo CPPFLAGS: -I /usr/include/qt/QtCore/5.9.3
// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
// #cgo LDFLAGS: -lstdc++
// #cgo pkg-config: Qt5Core Qt5Widgets Qt5Quick
you could use the same for now, until we find a better solution or commit this patch.
Is there a solution on this issue?
maybe sudo apt-get install qtbase5-private-dev