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

add_executable cannot create target "RobotArmApp" because another target with the same name already exists.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • 6.6.0 FF
    • 6.6.0 FF
    • Quick: 3D
    • None

    Description

      CMake Error at qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:596 (add_executable):
         add_executable cannot create target "RobotArmApp" because another target
         with the same name already exists.  The existing target is an executable
         created in source directory
         "/home/qt/work/qt/qt5/qtquick3d/examples/quick3d/robotarm".  See
         documentation for policy CMP0002 for more details.
       Call Stack (most recent call first):
         qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:557 (_qt_internal_create_executable)
         qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:770 (qt6_add_executable)
         qtdoc/examples/demos/robotarm/CMakeLists.txt:16 (qt_add_executable)
       CMake Error at qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:2474 (message):
         Target backendmodule already has a qmltypes file set.
       Call Stack (most recent call first):
         qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:555 (_qt_internal_qml_type_registration)
         qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:714 (qt6_add_qml_module)
         qtdoc/examples/demos/robotarm/Backend/CMakeLists.txt:3 (qt_add_qml_module)
       -- Configuring incomplete, errors occurred!
       See also "/home/qt/work/qt/qt5/CMakeFiles/CMakeOutput.log".
       See also "/home/qt/work/qt/qt5/CMakeFiles/CMakeError.log".
      CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:995 (message):
        CMake exited with code 1.
      

      Build log: http://coin/coin/api/log/qt/qt5/a83b5642b8ac1db852110cb0f62fd744944218bb/LinuxUbuntu_22_04x86_64LinuxUbuntu_22_04x86_64GCCqtci-linux-Ubuntu-22.04-x86_64-51-6f8fcaDocumentation_Sccache_TestDocs_UseConfigure/7edf7ddaee54317b3c7e0f6029264a258a960df8/build_1689366901/log.txt.gz
      Details: http://coin/coin/integration/qt/qt5/tasks/1689366860

      Tested changes (refs/builds/qtci/dev/1683472564): https://codereview.qt-project.org/c/qt/qt5/+/477425

      Attachments

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

        Activity

          People

            kileppal Kimmo Leppälä
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes