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

configuring basicdrawing example standalone fails in Qt 6.5.5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • None
    • 6.5.5
    • Build System: CMake
    • None
    • Linux/X11

    Description

      Steps to reproduce

      • install Qt 6.5.5 from the maintenance tool
      • open Qt Creator
      • select basicdrawing example
      • choose to copy it to a local directory
      • remove CMakeLists.txt
      • run pro2cmake.py basicdrawing.pro
      • build (and run CMake) in Qt Creator

      Expected result

      • example can be configured
      • example compiles
      • example runs

      Actual result

      CMake fails with

      axel@axelsqt:~/QtDev/basicdrawing/build/Qt_6_5_5_6_5-Debug> cmake . --trace-expand --trace-redirect=cmake.trace
      Put cmake in trace mode, but with variables expanded.
      Put cmake in trace mode and redirect trace output to a file instead of stderr.
      Trace will be written to cmake.trace
      CMake Error at CMakeLists.txt:19 (qt_add_executable):
        Unknown CMake command "qt_add_executable".
      

      Workaround

      • qmake basicdrawing works
      • selecting 6.6.1 from the installer makes CMake work

      Attachments

        1. cmake.trace
          135 kB
          Axel Spoerl
        2. cmake-1.trace
          148 kB
          Axel Spoerl
        3. CMakeLists.txt
          1 kB
          Axel Spoerl
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            axelspoerl Axel Spoerl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes