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

MSVC19 builds not working with CMake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 4.15.2
    • C/C++/Obj-C++ Support
    • None
    • Windows

    Description

      I was first trying the one coming along Qt release, and Ninja.  It looks the log I sent you is not I was supposed to send: there is another bug: If I change CMake generator to Ninja and/or cmake app (using Kits), they really wont change unless I remove  CMakeLists.txt.user file.  Here is updated log

       

      Running C:\Qt\Tools\CMake_64\bin\cmake.exe -S C:/Users/mmert/Developent/EnumIterator -B C:/Users/mmert/AppData/Local/Temp/QtCreator-qrZVHg/qtc-cmake-SbodgSiW -GNinja "-DCMAKE_BUILD_TYPE:STRING=Debug" "-DCMAKE_PROJECT_INCLUDE_BEFORE:PATH=C:/Qt/Tools/QtCreator/share/qtcreator/package-manager/auto-setup.cmake" "-DCMAKE_CXX_COMPILER:STRING=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/HostX64/x64/cl.exe" "-DCMAKE_C_COMPILER:STRING=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/HostX64/x64/cl.exe" "-DCMAKE_PREFIX_PATH:STRING=C:/Qt/6.1.2/msvc2019_64;C/Qt/Tools/QtCreator/bin;C:\Qt\6.1.2\msvc2019_64\bin;C:\Program Files (x86)\gempyre" "-DQT_QMAKE_EXECUTABLE:STRING=C:/Qt/6.1.2/msvc2019_64/bin/qmake.exe" in C:\Users\mmert\AppData\Local\Temp\QtCreator-qrZVHg\qtc-cmake-SbodgSiW.
      – The CXX compiler identification is MSVC 19.26.28806.0
      – Detecting CXX compiler ABI info
      – Detecting CXX compiler ABI info - failed
      – Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/HostX64/x64/cl.exe
      – Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/HostX64/x64/cl.exe - broken
      CMake Error at C:/Qt/Tools/CMake_64/share/cmake-3.19/Modules/CMakeTestCXXCompiler.cmake:59 (message):
      The C++ compiler

      "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/HostX64/x64/cl.exe"

      is not able to compile a simple test program.

      It fails with the following output:

      Change Dir: C:/Users/mmert/AppData/Local/Temp/QtCreator-qrZVHg/qtc-cmake-SbodgSiW/CMakeFiles/CMakeTmp

      Run Build Command(s):C:/msys64/usr/bin/ninja.exe cmTC_1700a && [1/2] Building CXX object 'CMakeFiles\cmTC_1700a.dir\testCXXCompiler.cxx.obj'
      FAILED: CMakeFiles\cmTC_1700a.dir\testCXXCompiler.cxx.obj
      C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1426~1.288\bin\HostX64\x64\cl.exe /nologo /TP /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /Fo'CMakeFiles\cmTC_1700a.dir\testCXXCompiler.cxx.obj' /FdCMakeFiles\cmTC_1700a.dir\ /FS -c testCXXCompiler.cxx
      /bin/sh: line 1: C:PROGRA~2MICROS~22019COMMUN~1VCToolsMSVC1426~1.288binHostX64x64cl.exe: command not found
      ninja: build stopped: subcommand failed.

       

      CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
      CMakeLists.txt:3 (project)

      – Configuring incomplete, errors occurred!
      See also "C:/Users/mmert/AppData/Local/Temp/QtCreator-qrZVHg/qtc-cmake-SbodgSiW/CMakeFiles/CMakeOutput.log".
      See also "C:/Users/mmert/AppData/Local/Temp/QtCreator-qrZVHg/qtc-cmake-SbodgSiW/CMakeFiles/CMakeError.log".
      CMake process exited with exit code 1.
      Elapsed time: 00:01.

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes