Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
0.2
-
None
-
QBS e91a5a73cfc8c11e0384817b9dd2cf78766a1e9a (Oct 9th, 2012)
Kubuntu 12.04.1 x64
Qt 4.8.2 x64 (from ubuntu repo)
GCC 4.6.3
-
6254235df9e2895281a2dea38752db4a9547abc4
Description
An header containing #include <QObject> used as PCH will fail compilation due to missing include paths (and possibly defines) that are normally added to the compiler command line when adding "Qt.core" as a dependency.
I have attached a small project that show this issue. While the defines and cxxFlags explicitly added to the project are added to the PCH compilation command line, the defines and include paths added by Qt.core (ex: -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4/QtCore) are missing.