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

qtbase and qtxmlpatterns do not build if GUI module disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.12.5, 5.13.0, 5.14.0, 5.15
    • Build System
    • None
    • Windows
    • d40a73ba5 (dev)

    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

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: