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

Failure to compile project after MSVC Update

XMLWordPrintable

    • Windows
    • 11df2309f (15.0)

      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.
      

        For Gerrit Dashboard: QTCREATORBUG-32165
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes