Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-53312

[windows] MySQL include dir precedes INCLUDEPATH of Qt module project in compiler command-line args

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.6.2
    • 5.6.0, 5.6
    • Build System
    • None
    • eff3a7ded138e5f73fe716efae9e4bf74c71a8a4

      Combination of the following conditions result in wrong include paths order:

      • mkspecs/qmodule.pri appends some paths to INCLUDEPATH, e.g. this is the case on Windows for MySql and PostgreSql include dirs, when they are provided via configure -I flags
      • qmake project is Qt module with typical .qmake.conf

      In this case, INCLUDEPATH from qmodule.pri take priority over INCLUDEPATH defined in project. This breaks compilation of QtWebKit on Windows in CI (see [1]), where header "decimal.h" from MySQL is erroneously included instead of local "Decimal.h" header.

      In attachment there is simple Qt module, reproducing this bug.

      [1] http://testresults.qt.io/logs/qt/qtwebkit/8b1cd48bda010279ef2a2333e0f4f4b1fd43a29b/WindowsWindows_8_1x86_64WindowsWindows_8_1x86_64MSVC2013DebugAndRelease_Release_OpenGLDynamic/f9c78239237300336bf7587e54954be7299a13ab/buildlog.txt.gz

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

            buddenha Oswald Buddenhagen
            annulen Konstantin Tokarev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes