Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-143

PCH compilation command is missing include paths and defines from dependencies

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 0.2
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            acossette Alexandre Cossette-Pacheco
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes