Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26375

[REG 5.0.2 -> 6.0.0] Cannot build Qt Quick Application with CMake and Qt 6.2

    XMLWordPrintable

    Details

    • Commits:
      691e340b81dcb8550913e91eeef41f62cc24ca51 (qt-creator/qt-creator/6.0)

      Description

      1. Create a new Qt Quick Application project using Creator's wizard.
        • Select CMake as build system for the project.
        • Set the minimum Qt version to 6.2.
        • Keep defaults for the other settings.
      2. Try build the project.
        It fails:
        14:34:21: Running steps for project untitled4...
        14:34:21: Starting: "/home/qtrob/qt-cmake/Tools/CMake/bin/cmake" --build /tmp/projekte/build-untitled4-Desktop-Debug --target all
        [1/17 319.8/sec] Generating untitled4/main.qml
        [2/17 135.1/sec] Generating .rcc/qmlcache/untitled4_qmlcache_loader.cpp
        [3/17 87.5/sec] Automatic MOC for target untitled4
        [4/17 105.3/sec] Running AUTOMOC file extraction for target untitled4
        [5/17 130.3/sec] Running rcc for resource qmake_untitled4
        [6/17 155.2/sec] Running rcc for resource untitled4_raw_qml_0
        [7/17 159.0/sec] Running moc --collect-json for target untitled4
        [8/17 89.7/sec] Automatic QML type registration for target untitled4
        [9/17 85.6/sec] Generating .rcc/qmlcache/untitled4_main_qml.cpp
        [10/17 78.7/sec] Building CXX object CMakeFiles/untitled4.dir/untitled4_autogen/mocs_compilation.cpp.o
        [11/17 77.8/sec] Building CXX object CMakeFiles/untitled4.dir/.rcc/qrc_qmake_untitled4.cpp.o
        [12/17 84.8/sec] Building CXX object CMakeFiles/untitled4.dir/.rcc/qrc_untitled4_raw_qml_0.cpp.o
        [13/17 5.9/sec] Building CXX object CMakeFiles/untitled4.dir/.rcc/qmlcache/untitled4_main_qml.cpp.o
        [14/17 6.3/sec] Building CXX object CMakeFiles/untitled4.dir/untitled4_qmltyperegistrations.cpp.o
        [15/17 5.5/sec] Building CXX object CMakeFiles/untitled4.dir/main.cpp.o
        [16/17 5.7/sec] Building CXX object CMakeFiles/untitled4.dir/.rcc/qmlcache/untitled4_qmlcache_loader.cpp.o
        [17/17 6.0/sec] Linking CXX executable untitled4
        FAILED: untitled4 
        : && /usr/bin/g++ -g  CMakeFiles/untitled4.dir/untitled4_autogen/mocs_compilation.cpp.o CMakeFiles/untitled4.dir/main.cpp.o CMakeFiles/untitled4.dir/untitled4_qmltyperegistrations.cpp.o CMakeFiles/untitled4.dir/.rcc/qrc_qmake_untitled4.cpp.o CMakeFiles/untitled4.dir/.rcc/qmlcache/untitled4_qmlcache_loader.cpp.o CMakeFiles/untitled4.dir/.rcc/qmlcache/untitled4_main_qml.cpp.o CMakeFiles/untitled4.dir/.rcc/qrc_untitled4_raw_qml_0.cpp.o -o untitled4  -Wl,-rpath,/home/qtrob/dev/g++-9.3.0/qt-6.2.0-nowebengine-r/qtbase/lib  /home/qtrob/dev/g++-9.3.0/qt-6.2.0-nowebengine-r/qtbase/lib/libQt6Quick.so.6.2.0  /home/qtrob/dev/g++-9.3.0/qt-6.2.0-nowebengine-r/qtbase/lib/libQt6QmlModels.so.6.2.0  /home/qtrob/dev/g++-9.3.0/qt-6.2.0-nowebengine-r/qtbase/lib/libQt6Qml.so.6.2.0  /home/qtrob/dev/g++-9.3.0/qt-6.2.0-nowebengine-r/qtbase/lib/libQt6Network.so.6.2.0  /home/qtrob/dev/g++-9.3.0/qt-6.2.0-nowebengine-r/qtbase/lib/libQt6OpenGL.so.6.2.0  /home/qtrob/dev/g++-9.3.0/qt-6.2.0-nowebengine-r/qtbase/lib/libQt6Gui.so.6.2.0  /home/qtrob/dev/g++-9.3.0/qt-6.2.0-nowebengine-r/qtbase/lib/libQt6Core.so.6.2.0  -pthread  /usr/lib/x86_64-linux-gnu/libGLX.so  /usr/lib/x86_64-linux-gnu/libOpenGL.so && :
        /usr/bin/ld: cannot open output file untitled4: Is a directory
        collect2: error: ld returned 1 exit status
        ninja: build stopped: subcommand failed.
        14:34:24: The process "/home/qtrob/qt-cmake/Tools/CMake/bin/cmake" exited with code 1.
        Error while building/deploying project untitled4 (kit: Desktop)
        When executing step "Build"
        14:34:24: Elapsed time: 00:03.
        

      This worked correctly in Creator 5.0.2. Creator 6.0 successfully builds the project when using qmake or setting the minimum Qt version to 5.15.

        Attachments

        1. CMakeLists.txt
          0.5 kB
        2. portale_agrees.png
          portale_agrees.png
          223 kB

          Issue Links

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

            Activity

              People

              Assignee:
              artem.sokolovskii Artem Sokolovskii
              Reporter:
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes