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

Project "Clean" causes an error for Qt for MCUs device

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 12.0.0-beta1
    • MCU Support

    Description

      Cleaning project (Build > Clean, or 'Clean' in the project context menu) caused an error for Qt for MCUs device. In the build console, 'install' was appended at the end of the cmake command like below.

      19:02:35: Starting: "C:\Developer\CMake\3.21.1\bin\cmake.exe" --build C:/Qt/QtMCUs/2.6.0/demos/build-motor_cluster-Qt_for_MCUs_2_6_STM32F769I_DISCOVERY_BAREMETAL_32bpp_ARMGCC-Debug --target clean install
      Error: Building 'clean' and other targets together is not supported.
      Usage: cmake --build <dir>             [options] [-- [native-options]]
             cmake --build --preset <preset> [options] [-- [native-options]]
      Options:
        <dir>          = Project binary directory to be built.
        --preset <preset>, --preset=<preset>
                       = Specify a build preset.
        --list-presets
                       = List available build presets.
        --parallel [<jobs>], -j [<jobs>]
                       = Build in parallel using the given number of jobs. 
                         If <jobs> is omitted the native build tool's 
                         default number is used.
                         The CMAKE_BUILD_PARALLEL_LEVEL environment variable
                         specifies a default parallel level when this option
                         is not given.
        --target <tgt>..., -t <tgt>... 
                       = Build <tgt> instead of default targets.
        --config <cfg> = For multi-configuration tools, choose <cfg>.
        --clean-first  = Build target 'clean' first, then build.
                         (To clean only, use --target 'clean'.)
        --verbose, -v  = Enable verbose output - if supported - including
                         the build commands to be executed. 
        --             = Pass remaining options to the native tool.
      19:02:35: The process "C:\Developer\CMake\3.21.1\bin\cmake.exe" exited with code 1.
      19:02:35: Elapsed time: 00:00. 

      For desktop backend, project clean works correctly.

      19:04:50: Running steps for project motor_cluster...
      19:04:50: Starting: "C:\Developer\CMake\3.21.1\bin\cmake.exe" --build C:/Qt/QtMCUs/2.6.0/demos/build-motor_cluster-Qt_for_MCUs_2_6_Desktop_32bpp_MINGW-Debug --target clean
      [1/1 7.9/sec] Cleaning all built files...
      Cleaning... 200 files.
      19:04:50: The process "C:\Developer\CMake\3.21.1\bin\cmake.exe" exited normally.
      19:04:50: Elapsed time: 00:00. 

      Attachments

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

        Activity

          People

            ylopes Yoann Lopes
            kwkim Kwangsub Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes