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

qtbase and qtxmlpatterns do not build if GUI module disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.5, 5.13.0, 5.14.0, 5.15
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      When building Qt in developer mode with unit testing enabled and configured with

      -no-gui -no-widgets

      , qtbase does not compile because the unit test in qtbase/tests/auto/corelib/serialization/qdatastream_core_pixmap requires the GUI module. 

      This can be fixed by modified the lines 13-14 of qtbase/tests/auto/corelib/serialization/serialization.pro like this: 

      !qtHaveModule(gui): SUBDIRS -= \
          qdatastream \
          qdatastream_core_pixmap

      The same appears in all unit tests in the module qtxmlpatterns because of QT += gui in qtxmlpatterns/tests/auto/xmlpatterns.pri. It seems that this dependency is not detected in the configure script.

      I've discovered this problem when building 5.12 but the serialization.pro is the same in 5.15, so I guess the problem still exists in the development branch

        Attachments

        For Gerrit Dashboard: QTBUG-79353
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            Eddy Edward Welbourne
            Reporter:
            dpurgin Dmitriy Purgin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: