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

Configuring with the wrong -submodules argument give unobvious error as the result

    XMLWordPrintable

Details

    • All
    • bb13b7dad (dev), ba16228de (6.5), 235cb3b7b (6.6)

    Description

      The following command leads to strange error output:

      ../qt6/configure -prefix ../install -submodules scxml -nomake tests -nomake examples
      

      The error output when using not-known Qt submodule:

      + mkdir -p qtbase
      + cd qtbase
      + exec /home/semlanik/Projects/Qt/qt6_dev/qt6/qtbase/configure -top-level -prefix ../install -submodules scxml -nomake tests -nomake examples
      CMake Warning (dev) at /home/semlanik/Projects/Qt/qt6_dev/qt6/qtbase/cmake/QtBuildInformation.cmake:270 (set):
        Cannot set "__qt_configure_reports": current scope has no parent.
      Call Stack (most recent call first):
        /home/semlanik/Projects/Qt/qt6_dev/qt6/qtsensors/src/sensors/configure.cmake:48 (qt_configure_add_report)
        /home/semlanik/Projects/Qt/qt6_dev/qt6/qtbase/cmake/QtProcessConfigureArgs.cmake:272 (include)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      '/usr/bin/cmake' '-DQT_BUILD_SUBMODULES=scxml' '-DCMAKE_INSTALL_PREFIX=../install' '-DQT_BUILD_TESTS=FALSE' '-DQT_BUILD_EXAMPLES=FALSE' '-G' 'Ninja' '/home/semlanik/Projects/Qt/qt6_dev/qt6'
      -- The CXX compiler identification is GNU 12.2.1
      -- The C compiler identification is GNU 12.2.1
      -- 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 'scxml'
      -- Configuring submodule 'scxml'
      CMake Error at qtbase/cmake/QtBuildInformation.cmake:6 (qt_internal_set_message_log_level):
        Unknown CMake command "qt_internal_set_message_log_level".
      Call Stack (most recent call first):
        CMakeLists.txt:115 (qt_print_feature_summary)
      

      We should point to the not-known submodule name explicitly instead.

      Attachments

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

        Activity

          People

            mrmsdbdl Amir Masoud Abdol
            semlanik Alexey Edelev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes