Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: 'QtCore/private/qglobal_p.h' file not found #9

Open
anandgraves opened this issue Apr 24, 2017 · 3 comments
Open

Fatal error: 'QtCore/private/qglobal_p.h' file not found #9

anandgraves opened this issue Apr 24, 2017 · 3 comments

Comments

@anandgraves
Copy link

anandgraves commented Apr 24, 2017

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.

@zoli
Copy link
Member

zoli commented Dec 19, 2017

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.

@zoli zoli changed the title Error installing qml-go on MacOS 10.12.4 Qt fatal error: 'QtCore/private/qglobal_p.h' file not found Dec 19, 2017
@zoli zoli changed the title Qt fatal error: 'QtCore/private/qglobal_p.h' file not found Fatal error: 'QtCore/private/qglobal_p.h' file not found Dec 19, 2017
@edgarhsanchez
Copy link

Is there a solution on this issue?

@estatistics
Copy link

maybe sudo apt-get install qtbase5-private-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants