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

Failure to compile project after MSVC Update

    XMLWordPrintable

Details

    • Windows
    • 11df2309f (15.0)

    Description

      When upgrading the MSVC Compiler, which can happen pretty often, Qt Creator is detecting that the compiler and linker do not exist on disk and try to set the new value as seen in the dialog below:

      Things seem to be back on track. Project compiles, until it stops.

      The system cannot find the path specified
      

      Is the error.

      By adding --verbose to the build step, we can see the command failing:

      [9/55 11,2/sec] Linking CXX static library src\shared\qtsingleapplication\shared_qtsingleapplication.lib
      FAILED: src/shared/qtsingleapplication/shared_qtsingleapplication.lib 
      C:\Windows\system32\cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34433\bin\Hostarm64\arm64\lib.exe" /nologo /machine:ARM64 /out:src\shared\qtsingleapplication\shared_qtsingleapplication.lib src\shared\qtsingleapplication\CMakeFiles\shared_qtsingleapplication.dir\shared_qtsingleapplication_autogen\mocs_compilation.cpp.obj src\shared\qtsingleapplication\CMakeFiles\shared_qtsingleapplication.dir\qtsingleapplication.cpp.obj src\shared\qtsingleapplication\CMakeFiles\shared_qtsingleapplication.dir\qtlocalpeer.cpp.obj && cd ."
      The system cannot find the path specified.
      

      Attachments

        1. qtcreator-comipler-linker-update.png
          67 kB
          Cristian Adam
        2. qtcreator-failure-to-build.png
          10 kB
          Cristian Adam
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cadam Cristian Adam
            cadam Cristian Adam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes