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

Configuring Qt with -no-gui fails

    XMLWordPrintable

Details

    • 3aa871b9c9 (qt/qtquick3dphysics/dev) c69bc3f8b3 (qt/qtquick3dphysics/6.4) c69bc3f8b3 (qt/qtquick3dphysics/6.4.1)

    Description

      Configuring a qt top-level build with -no-gui argument results in a configure error:

      + exec /home/vagrant/qt-everywhere-src-6.4.0/qtbase/configure -top-level -prefix /home/vagrant/qt-everywhere-src-6.4.0/qtbase -no-gui
      '/snap/cmake/1156/bin/cmake' '-DCMAKE_INSTALL_PREFIX=/home/vagrant/qt-everywhere-src-6.4.0/qtbase' '-DINPUT_gui=no' '-G' 'Ninja' '/home/vagrant/qt-everywhere-src-6.4.0'
      -- The CXX compiler identification is GNU 9.4.0
      -- The C compiler identification is GNU 9.4.0
      -- The ASM compiler identification is GNU
      -- Found assembler: /usr/bin/cc
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      Checking dependencies of submodule 'qtbase'
      Checking dependencies of submodule 'qtimageformats'
      Checking dependencies of submodule 'qtlanguageserver'
      Checking dependencies of submodule 'qtshadertools'
      Checking dependencies of submodule 'qtsvg'
      Checking dependencies of submodule 'qtdeclarative'
      Checking dependencies of submodule 'qtmultimedia'
      Checking dependencies of submodule 'qt3d'
      Checking dependencies of submodule 'qt5compat'
      Checking dependencies of submodule 'qtactiveqt'
      Checking dependencies of submodule 'qtcharts'
      Checking dependencies of submodule 'qtcoap'
      Checking dependencies of submodule 'qtconnectivity'
      Checking dependencies of submodule 'qtdatavis3d'
      Checking dependencies of submodule 'qttools'
      Checking dependencies of submodule 'qtdoc'
      Checking dependencies of submodule 'qtwebsockets'
      Checking dependencies of submodule 'qthttpserver'
      Checking dependencies of submodule 'qtlottie'
      Checking dependencies of submodule 'qtmqtt'
      Checking dependencies of submodule 'qtnetworkauth'
      Checking dependencies of submodule 'qtopcua'
      Checking dependencies of submodule 'qtserialport'
      Checking dependencies of submodule 'qtpositioning'
      Checking dependencies of submodule 'qtquicktimeline'
      Checking dependencies of submodule 'qtquick3d'
      Checking dependencies of submodule 'qtquick3dphysics'
      Checking dependencies of submodule 'qtremoteobjects'
      Checking dependencies of submodule 'qtscxml'
      Checking dependencies of submodule 'qtsensors'
      Checking dependencies of submodule 'qtserialbus'
      Checking dependencies of submodule 'qtspeech'
      Checking dependencies of submodule 'qttranslations'
      Checking dependencies of submodule 'qtvirtualkeyboard'
      Checking dependencies of submodule 'qtwayland'
      Checking dependencies of submodule 'qtwebchannel'
      Checking dependencies of submodule 'qtwebengine'
      Checking dependencies of submodule 'qtwebview'
      Configuring submodule 'qtbase'
      QtCore: WARNING: /home/vagrant/qt-everywhere-src-6.4.0/qtbase/src/corelib/tools/qatomicscopedvaluerollback_p.h does not have the "We mean it." warning
      Configuring submodule 'qtimageformats'
      -- Check if compiler accepts -pthread
      -- Check if compiler accepts -pthread - yes
      Skipping the build as the condition "TARGET Qt::Gui" is not met.
      Configuring submodule 'qtlanguageserver'
      Configuring submodule 'qtshadertools'
      Skipping the build as the condition "TARGET Qt::Gui" is not met.
      Configuring submodule 'qtsvg'
      Configuring submodule 'qtdeclarative'
      -- Could NOT find Qt6ShaderTools (missing: Qt6ShaderTools_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "ShaderTools".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6ShaderTools/Qt6ShaderToolsConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtdeclarative/CMakeLists.txt:41 (find_package)
      
      
      QtQmlDom: WARNING: /home/vagrant/qt-everywhere-src-6.4.0/qtdeclarative/src/qmldom/standalone/private/qtqmlcompilerexports_p.h does not have the "We mean it." warning
      Configuring submodule 'qtmultimedia'
      Skipping the build as the condition "TARGET Qt::Gui" is not met.
      Configuring submodule 'qt3d'
      Skipping the build as the condition "TARGET Qt::Gui" is not met.
      Configuring submodule 'qt5compat'
      Configuring submodule 'qtactiveqt'
      Condition "WIN32" is not met, enabling documentation build only.
      Configuring submodule 'qtcharts'
      -- Could NOT find Qt6Gui (missing: Qt6Gui_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Gui".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtcharts/CMakeLists.txt:17 (find_package)
      
      
      -- Could NOT find Qt6Widgets (missing: Qt6Widgets_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Widgets".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtcharts/CMakeLists.txt:17 (find_package)
      
      
      -- Could NOT find Qt6OpenGL (missing: Qt6OpenGL_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "OpenGL".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6OpenGL/Qt6OpenGLConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtcharts/CMakeLists.txt:17 (find_package)
      
      
      -- Could NOT find Qt6OpenGLWidgets (missing: Qt6OpenGLWidgets_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "OpenGLWidgets".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6OpenGLWidgets/Qt6OpenGLWidgetsConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtcharts/CMakeLists.txt:17 (find_package)
      
      
      -- Could NOT find Qt6Quick (missing: Qt6Quick_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Quick".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtcharts/CMakeLists.txt:17 (find_package)
      
      
      -- Could NOT find Qt6QuickTest (missing: Qt6QuickTest_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "QuickTest".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6QuickTest/Qt6QuickTestConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtcharts/CMakeLists.txt:17 (find_package)
      
      
      Skipping the build as the condition "TARGET Qt::Gui" is not met.
      Configuring submodule 'qtcoap'
      -- Could NOT find Qt6Gui (missing: Qt6Gui_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Gui".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtcoap/CMakeLists.txt:14 (find_package)
      
      
      -- Could NOT find Qt6Widgets (missing: Qt6Widgets_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Widgets".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtcoap/CMakeLists.txt:14 (find_package)
      
      
      -- Could NOT find Qt6Quick (missing: Qt6Quick_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Quick".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtcoap/CMakeLists.txt:14 (find_package)
      
      
      Configuring submodule 'qtconnectivity'
      -- Could NOT find Qt6Gui (missing: Qt6Gui_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Gui".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtconnectivity/CMakeLists.txt:13 (find_package)
      
      
      -- Could NOT find Qt6Widgets (missing: Qt6Widgets_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Widgets".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtconnectivity/CMakeLists.txt:13 (find_package)
      
      
      -- Could NOT find Qt6Quick (missing: Qt6Quick_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Quick".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtconnectivity/CMakeLists.txt:13 (find_package)
      
      
      Configuring submodule 'qtdatavis3d'
      -- Could NOT find Qt6OpenGL (missing: Qt6OpenGL_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "OpenGL".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6OpenGL/Qt6OpenGLConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtdatavis3d/CMakeLists.txt:12 (find_package)
      
      
      -- Could NOT find Qt6Quick (missing: Qt6Quick_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Quick".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtdatavis3d/CMakeLists.txt:12 (find_package)
      
      
      -- Could NOT find Qt6Gui (missing: Qt6Gui_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Gui".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtdatavis3d/CMakeLists.txt:12 (find_package)
      
      
      -- Could NOT find Qt6Widgets (missing: Qt6Widgets_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Widgets".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtdatavis3d/CMakeLists.txt:12 (find_package)
      
      
      -- Could NOT find Qt6QuickTest (missing: Qt6QuickTest_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "QuickTest".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6QuickTest/Qt6QuickTestConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtdatavis3d/CMakeLists.txt:12 (find_package)
      
      
      Skipping the build as the condition "TARGET Qt::Gui" is not met.
      Configuring submodule 'qttools'
      -- Could NOT find Clang (missing: Clang_DIR)
      -- Could NOT find Clang (missing: Clang_DIR)
      Configuring submodule 'qtdoc'
      Configuring submodule 'qtwebsockets'
      -- Could NOT find Qt6Quick (missing: Qt6Quick_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Quick".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtwebsockets/CMakeLists.txt:17 (find_package)
      
      
      -- Could NOT find Qt6QuickTest (missing: Qt6QuickTest_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "QuickTest".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6QuickTest/Qt6QuickTestConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtwebsockets/CMakeLists.txt:17 (find_package)
      
      
      Configuring submodule 'qthttpserver'
      Configuring submodule 'qtlottie'
      Skipping the build as Qt6::Gui cannot be found.
      Configuring submodule 'qtmqtt'
      -- Could NOT find Qt6Quick (missing: Qt6Quick_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Quick".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtmqtt/CMakeLists.txt:14 (find_package)
      
      
      -- Could NOT find Qt6Gui (missing: Qt6Gui_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Gui".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtmqtt/CMakeLists.txt:14 (find_package)
      
      
      -- Could NOT find Qt6Widgets (missing: Qt6Widgets_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Widgets".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtmqtt/CMakeLists.txt:14 (find_package)
      
      
      Configuring submodule 'qtnetworkauth'
      Configuring submodule 'qtopcua'
      -- Could NOT find Qt6Gui (missing: Qt6Gui_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Gui".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtopcua/CMakeLists.txt:15 (find_package)
      
      
      -- Could NOT find Qt6Quick (missing: Qt6Quick_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Quick".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtopcua/CMakeLists.txt:15 (find_package)
      
      
      -- Could NOT find Qt6QuickTest (missing: Qt6QuickTest_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "QuickTest".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6QuickTest/Qt6QuickTestConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtopcua/CMakeLists.txt:15 (find_package)
      
      
      -- Could NOT find Qt6Widgets (missing: Qt6Widgets_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Widgets".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtopcua/CMakeLists.txt:15 (find_package)
      
      
      Configuring submodule 'qtserialport'
      -- Could NOT find Qt6Gui (missing: Qt6Gui_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Gui".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtserialport/CMakeLists.txt:14 (find_package)
      
      
      -- Could NOT find Qt6Widgets (missing: Qt6Widgets_DIR)
      CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:270 (message):
        Failed to find optional Qt component "Widgets".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
        does NOT exist
      
      Call Stack (most recent call first):
        qtserialport/CMakeLists.txt:14 (find_package)
      
      
      Configuring submodule 'qtpositioning'
      Configuring submodule 'qtquicktimeline'
      Skipping the build as the condition "TARGET Qt::Quick" is not met.
      Configuring submodule 'qtquick3d'
      Skipping the build as the condition "TARGET Qt::Quick" is not met.
      Configuring submodule 'qtquick3dphysics'
      -- Could NOT find Qt6Gui (missing: Qt6Gui_DIR)
      CMake Error at qtquick3dphysics/CMakeLists.txt:17 (find_package):
        Found package configuration file:
      
          /home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6/Qt6Config.cmake
      
        but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
        FOUND.  Reason given by package:
      
        Failed to find required Qt component "Gui".
      
        Expected Config file at
        "/home/vagrant/qt-everywhere-src-6.4.0/qtbase/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake"
        does NOT exist
      
      
      
        Configuring with --debug-find-pkg=Qt6Gui might reveal details why the
        package was not found.
      
        Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
        of the path variables that find_package uses to try and find the package.
      
      
      
      -- Configuring incomplete, errors occurred!
      See also "/home/vagrant/qt-everywhere-src-6.4.0/CMakeFiles/CMakeOutput.log".
      See also "/home/vagrant/qt-everywhere-src-6.4.0/CMakeFiles/CMakeError.log".
      CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:965 (message):
        CMake exited with code 1.
      
      

      Attachments

        Issue Links

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

          Activity

            People

              kkohne Kai Köhne
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes