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

[REG v6.0.0-beta3 -> dev] configure -no-gui still wants to build GUI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.0.0 RC, 6.1.0
    • 6.0.0 Beta5
    • Build System: CMake
    • $ lsb_release -d
      Description: openSUSE Leap 15.2
      $ uname -a
      Linux localhost.localdomain 5.3.18-lp152.47-default #1 SMP Thu Oct 15 16:05:25 UTC 2020 (41f7396) x86_64 x86_64 x86_64 GNU/Linux
    • Linux/X11
    • 85f0792d2b10994e9e5fa70de50aa0ac39e98e20 (qt/qtbase/dev) 3965eb230523a2d90d65b8ebaf8de9399fa899d7 (qt/qtbase/6.0) 02c6d57cabecb0624768eeb31e74ec2e9c93f59e (qt/qtbase/6.0.0)

    Description

      Found when building Qt from CI-approved commit 4e2e65c7 in the dev branch of qt5.git.

      When running the old qmake-based configure with -no-gui, the configure output correctly shows that both GUI and Widgets modules will not be built.

      $ git clone git://code.qt.io/qt/qt5.git
      ...
      $ cd qt5
      $ perl init-repository -f
      ...
      $ mkdir ../qt-build
      $ cd ../qt-build
      $ ../qt5/configure -qmake -opensource -confirm-license -no-gui
      ...
      Qt modules and options:
        Qt Concurrent .......................... yes
        Qt D-Bus ............................... yes
        Qt D-Bus directly linked to libdbus .... yes
        Qt Gui ................................. no
        Qt Network ............................. yes
        Qt Sql ................................. yes
        Qt Testlib ............................. yes
        Qt Widgets ............................. no
        Qt Xml ................................. yes
      ...

      When doing the same with the new cmake-based configure, the configure output erroneously shows that both GUI and Widgets will be built. Furthermore, the CMakeCache.txt also says that GUI is still ON.

      $ git clone git://code.qt.io/qt/qt5.git
      ...
      $ cd qt5
      $ perl init-repository -f
      ...
      $ mkdir ../qt-build
      $ cd ../qt-build
      $ ../qt5/configure -no-gui
      ...
      Qt modules and options:
        Qt Concurrent .......................... yes
        Qt D-Bus ............................... yes
        Qt D-Bus directly linked to libdbus .... yes
        Qt Gui ................................. yes
        Qt Network ............................. yes
        Qt Sql ................................. yes
        Qt Testlib ............................. yes
        Qt Widgets ............................. yes
        Qt Xml ................................. yes
      ...
      $ cat CMakeCache.txt
      ...
      //Qt Gui
      FEATURE_gui:BOOL=ON
      ...

      Attachments

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

        Activity

          People

            semlanik Alexey Edelev
            macadder Jason McDonald
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes