Free BSD <qtguiglobal.h> missing
-
hello, I'm installing Qt Creator on FreeBSD 12 current, I'm missing a file <qtguiglobal.h> that I do not locate in the FreeBSD repository.
here is my output:-I../../libs -I/usr/ports/devel/qtcreator/work/qt-creator-opensource-src-4.5.0/tools -I../../plugins -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtQuick -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtQml -I/usr/local/include/qt5/QtNetwork -I/usr/local/include/qt5/QtConcurrent -I/usr/local/include/qt5/QtCore -I.moc/release-shared -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o .obj/release-shared/flamegraph.o flamegraph.cpp In file included from flamegraph.cpp:26: In file included from ./flamegraph.h:31: In file included from /usr/local/include/qt5/QtQuick/QQuickItem:1: In file included from /usr/local/include/qt5/QtQuick/qquickitem.h:43: /usr/local/include/qt5/QtQuick/qtquickglobal.h:44:10: fatal error: 'QtGui/qtguiglobal.h' file not found #include <QtGui/qtguiglobal.h> ^~~~~~~~~~~~~~~~~~~~~ 1 error generated. *** Error code 1 Stop. make[6]: stopped in /usr/ports/devel/qtcreator/work/qt-creator-opensource-src-4.5.0/src/libs/flamegraph *** Error code 1 Stop. make[5]: stopped in /usr/ports/devel/qtcreator/work/qt-creator-opensource-src-4.5.0/src/libs *** Error code 1 Stop. make[4]: stopped in /usr/ports/devel/qtcreator/work/qt-creator-opensource-src-4.5.0/src *** Error code 1 Stop. make[3]: stopped in /usr/ports/devel/qtcreator/work/qt-creator-opensource-src-4.5.0 *** Error code 1 Stop. make[2]: stopped in /usr/ports/devel/qtcreator *** Error code 1 Stop. make[1]: stopped in /usr/ports/devel/qtcreator *** Error code 1 Stop. make: stopped in /usr/ports/devel/qtcreator root@hpc-bella:/usr/ports/devel/qtcreator #
How to solve this problem
Regards
philippe -
Hi and welcome to devnet,
Warning I'm no *BSD specialist.
That said, how did you install Qt ?
-
Did you install all of Qt ?
[edit: added missing "all" SGaist]
-
I just fixed the question from my post above.
Do you mean that you didn't install Qt on the machine where you are trying to build Qt Creator ?
-
I ask you this question because you seem to want to build Qt Creator without having Qt installed on your machine. Qt Creator being an independent project using Qt, it's going to be pretty complicated.
-
yes indeed it was missing the base of QT4, I compile the latter.
but after this manipulation I am always in error with this missing file, here is my output:I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtQml -I/usr/local/include/qt5/QtNetwork -I/usr/local/include/qt5/QtConcurrent -I/usr/local/include/qt5/QtCore -I.moc/release-shared -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o .obj/release-shared/flamegraph.o flamegraph.cpp In file included from flamegraph.cpp:26: In file included from ./flamegraph.h:31: In file included from /usr/local/include/qt5/QtQuick/QQuickItem:1: In file included from /usr/local/include/qt5/QtQuick/qquickitem.h:43: /usr/local/include/qt5/QtQuick/qtquickglobal.h:44:10: fatal error: 'QtGui/qtguiglobal.h' file not found #include <QtGui/qtguiglobal.h> ^~~~~~~~~~~~~~~~~~~~~ 1 error generated. *** Error code 1 Stop.
this file qtguiglobal.h how can i found it and patch it ?
-
yes indeed it was missing the base of QT4, I compile the latter.
but after this manipulation I am always in error with this missing file, here is my output:I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtQml -I/usr/local/include/qt5/QtNetwork -I/usr/local/include/qt5/QtConcurrent -I/usr/local/include/qt5/QtCore -I.moc/release-shared -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o .obj/release-shared/flamegraph.o flamegraph.cpp In file included from flamegraph.cpp:26: In file included from ./flamegraph.h:31: In file included from /usr/local/include/qt5/QtQuick/QQuickItem:1: In file included from /usr/local/include/qt5/QtQuick/qquickitem.h:43: /usr/local/include/qt5/QtQuick/qtquickglobal.h:44:10: fatal error: 'QtGui/qtguiglobal.h' file not found #include <QtGui/qtguiglobal.h> ^~~~~~~~~~~~~~~~~~~~~ 1 error generated. *** Error code 1 Stop.
this file qtguiglobal.h how can i found it and patch it ?
@philo_neo You need to install QtGui module as well.
-
You wrote Qt4, is that a typo ?
In any case, Qt Creator has a hard requirement on Qt 5 to build since a few versions. IIRC the lowest version if 5.6.2. However that doesn't have any influence on which version of Qt you can use to build your applications/libraries.